-
Notifications
You must be signed in to change notification settings - Fork 185
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
Support multiple projects' dbt docs #862
Comments
🤖 Hey there @dwreeves! Long time no chat on GitHub issues, huh? 😄 To support multiple projects' dbt docs in the Cosmos repository without complicating the API, you could consider creating multiple instances of the The Each instance of Here is an example of how you can create multiple project_config1 = ProjectConfig(
dbt_project_path="/path/to/dbt/project1",
project_name="project1",
env_vars={"DBT_ENV_VAR1": "value1"},
dbt_vars={"dbt_var1": "value1"},
)
project_config2 = ProjectConfig(
dbt_project_path="/path/to/dbt/project2",
project_name="project2",
env_vars={"DBT_ENV_VAR2": "value2"},
dbt_vars={"dbt_var2": "value2"},
) In this example, This approach allows you to support multiple dbt projects without complicating the API or dealing with the limitations of ini file format and environment variables for configuration. Each For more details, you can refer to the Sources
|
So one implementation that is fully compatible with the existing API would be to do something like this:
The main challenge here is getting the names of the dbt projects. This requires downloading each If reading from The issue with creating a new menu item for dbt docs is twofold. First, it's not appropriate for most users with just one project. Two, dbt project names cannot realistically be automated in this context as loading the I'm not a happy camper setting any of this up because |
@dwreeves, we aim to release Cosmos 1.6 by the end of the month. Do you think you may have the bandwidth to work on this before? If not, what do you think about moving it to the 1.7 release or after? |
Hi, @dwreeves. I'm Dosu, and I'm helping the Cosmos team manage their backlog. I'm marking this issue as stale. Issue Summary:
Next Steps:
Thank you for your understanding and contribution! |
I would be interested by this feature, any progress on it? |
Discussion here: #737 (comment)
Better to get this done now before 1.4 ships than after, I think.
tldr: The main worry I have is that the API for supporting multiple projects' docs can get very convoluted. Ini file format / env vars for config do not natively support arrays of objects, so you need to do something that isn't pretty or is complicated (e.g. read from a yaml file) basically no matter what.
I'm leaving this as an open ended issue to discuss solutions.
The text was updated successfully, but these errors were encountered: