Coder Social home page Coder Social logo

Comments (7)

VictorVelarde avatar VictorVelarde commented on May 29, 2024

Hi @Clebal!

I like the idea of a /data/sources. Just to have a clear idea of the other folder what contents do you propose for /data/models? can you put also an example?

Regarding to source file contents:

  • 👍🏻 like having the ID, the SOURCE_COLUMNS and the SOURCE itself
  • ❓ I have doubts about including the WIDGETS inside: if the idea is to split backend from front, shouldn't those widget properties be outside, as they are more related to the visual/frontend part? what do you think?

from carto-react-template.

juandjara avatar juandjara commented on May 29, 2024

I'm following this same structure in the site planning product project and in there, data/sources contains functions that return strings (sql strings for sources) while data/models contains functions that call the SQL API directly with executeQuery and return or process those results

from carto-react-template.

aaranadev avatar aaranadev commented on May 29, 2024

@VictorVelarde , KPI_SOURCE_WIDGETS is the interface for the frontend, we don't want to know the column name and the operation about that column. We prefer a key and backend includes the operation and name column like they want

from carto-react-template.

VictorVelarde avatar VictorVelarde commented on May 29, 2024

Ok, if it works for you and it fits the workflow, I'm ok with the SOURCE_WIDGETS side.

@albertoarana do you aggree on keeping the division between data/sources (declarative, for layers & widgets), from data/models (for custom queries against any api?)

from carto-react-template.

aaranadev avatar aaranadev commented on May 29, 2024

I agree, maybe that X_WIDGETS won't be the best suffix. I would try with other name.

Any suggestion?

from carto-react-template.

aaranadev avatar aaranadev commented on May 29, 2024

We will go to remove _WIDGETS from source finally

from carto-react-template.

VictorVelarde avatar VictorVelarde commented on May 29, 2024

Already done

from carto-react-template.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.