Fix converting dbt projects that have ProjectConfig.dbt_project_path set as strings #601
Labels
bug
Something isn't working
good first issue
Good for newcomers
priority:high
High priority issues are blocking or critical issues without a workaround and large impact
Milestone
Our documentation has examples of configuring a project using a project path that is a string:
https://astronomer.github.io/astronomer-cosmos/configuration/project-config.html
However, if users attempt to use this, they will face an error:
Because of:
https://github.com/astronomer/astronomer-cosmos/blob/main/cosmos/converter.py#L109-L110
This issue was originally reported in the #airflow-dbt slack channel by Sai:
https://apache-airflow.slack.com/archives/C059CC42E9W/p1697234106298499?thread_ts=1697209691.193499&cid=C059CC42E9W
Acceptance criteria
As part of the fix, we should improve the converter tests by adding unit tests similar to:
https://github.com/astronomer/astronomer-cosmos/blob/main/tests/test_converter.py#L49-L69
We should validate at least the two following use-cases:
ProjectConfig.dbt_project_path
as stringProjectConfig.dbt_project_path
, to have a broader test of the improvement Make the arg dbt_project_path in the ProjectConfig optional #581The text was updated successfully, but these errors were encountered: