-
-
Notifications
You must be signed in to change notification settings - Fork 20
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
How would we select scope of which projects and tables to document? #13
Comments
@virvirlopez I think this is going to be relevant to your question around where to store paths and stuff. I was thinking of having a central config file that would look something like that: defaults:
sugar_cane: cane_1
target: dev
sugar_canes:
- name: cane_1
dbt_projects:
- name: dwh
path: path
excluded_tables:
- table_a
- name: cane_2
dbt_projects:
- name: dwh
path: path
excluded_tables:
- table_a
- name: prediction
path: path
This gives out the following python dict when parsed: {
"defaults": {
"sugar_cane": "cane_1",
"target": "dev"
},
"sugar_canes": [
{
"dbt_projects": [
{
"path": "path",
"name": "dwh",
"excluded_tables": [
"table_a"
]
}
],
"name": "cane_1"
},
{
"dbt_projects": [
{
"path": "path",
"name": "dwh",
"excluded_tables": [
"table_a"
]
},
{
"path": "path",
"name": "prediction"
}
],
"name": "cane_2"
}
]
} The user would then have to call We could then of course have a "default" config which would sit on top of the I'm sure this is not perfect so I'd like to hear your thoughts. |
#31 should get us in a great state but I think I would want to discuss the following: One thing that is still left to do, I think is to think about where this Right now it assumes a directory provided with CLI but I think we should have one of the following:
@virvirlopez What do you think? |
Done in #31 |
One thing we'll need to worry about fairly soon is how we manage scopes of dbt projects to document.
Some users might have one repo per dbt projects and some might have several dbt projects in one repo (monorepo-like setup).
We'll probably want to offer in a yaml file or so an ability for users to list the dbt projects (and possibly tables) to include or exclude from the documentation task. It would probably look something like this:
It'll probably change and I don't even know if that yaml is even valid but at least this captures the gist of it.
The text was updated successfully, but these errors were encountered: