-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Proposal: new /sources folder #164
Comments
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:
|
I'm following this same structure in the site planning product project and in there, |
@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 |
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?) |
I agree, maybe that X_WIDGETS won't be the best suffix. I would try with other name. Any suggestion? |
We will go to remove _WIDGETS from source finally |
Already done |
To allow user to define sources easily, the Front-PS team proposes to create a new
/sources
folders where the definition of the sources are setted. This new folder will be encountered inside a new/data
folder that will also contains the/models
. Thedata
folder and its structure is aimed to split the front / back parts of the application.What's inside sources folder?
Inside the
sources
folder, you can find multiple JS files named with the following structure:somethingSource.js
. Each file contains one source definition beside the definition of its related widgets. It's more easy to dive inside with an example:This is the
KpiSource.js
:The text was updated successfully, but these errors were encountered: