-
Notifications
You must be signed in to change notification settings - Fork 177
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
Make the arg dbt_project_path in the ProjectConfig optional #581
Conversation
👷 Deploy Preview for amazing-pothos-a3bca0 processing.
|
Codecov ReportAll modified lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #581 +/- ##
==========================================
+ Coverage 93.09% 93.13% +0.04%
==========================================
Files 51 51
Lines 2041 2053 +12
==========================================
+ Hits 1900 1912 +12
Misses 141 141
☔ View full report in Codecov by Sentry. |
hello @tatiana I have this MR to a point where i think it is just about ready to go, and would like to seek some review from you and / or your team. I have read though the contributing guide, and believe i've done whats needed based on my understanding. The version of code currently pushed to this MR has passed all coverage tests (hatch run tests:test-cov) I think the only item left here is to complete the docs updates, however before i complete that i want to make sure the logic is acceptable. Please let me know if you have any feedback. *latest commit fixing coverage will be pushed shortly |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great, @MrBones757. Thank you very much for improving this! It will be especially useful to K8s users.
I left minor comments in the code/docs.
It would also be great if you could update the correspondent docs, which previously stated this property was required:
https://github.com/astronomer/astronomer-cosmos/blob/main/docs/configuration/project-config.rst
https://astronomer.github.io/astronomer-cosmos/configuration/project-config.html
It would probably be safer if we could also add the behavior/a test to make sure that if the user does not specify dbt_project_path
they are using LoadMethod.DBT_MANIFEST
- otherwise, Cosmos should raise an exception.
…o properties. Fixed spelling
Please let me know if there is anything else that needs doing on this MR! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you very much for working on this and addressing all the feedback, @MrBones757 !
**Features** * Add support to model versioning available since dbt 1.6 by @binhnq94 in #516 * Add AWS Athena profile mapping by @benjamin-awd in #578 * Support customizing how dbt nodes are converted to Airflow by @tatiana in #503 * Make the arg ``dbt_project_path`` in the ``ProjectConfig`` optional by @MrBones757 in #581 **Bug fixes** * Fix Cosmos custom selector to support filtering a single model by @jlaneve and @harels in #576 * Fix using ``GoogleCloudServiceAccountDictProfileMapping`` together with ``LoadMethod.DBT_LS`` by @joppevos in #587 * Fix using the ``full_refresh`` argument in projects that contain tests by @EgorSemenov and @tatiana in #590 * Stop creating symbolic links for ``dbt_packages`` (solves ``LocalExecutor`` concurrency issue) by @tatiana in #600 **Others** * Docs: add reference to original Jaffle Shop project by @erdos2n in #583 * Docs: retries & note about DagBag error by @TJaniF in #592 * pre-commit updates in #575 and #585
@MrBones757 we'll probably need further changes in |
…port dbt_project_path=None (#605) As part of the changes made #581, some downstream logic was missed relating to the handling of a None and String-based project dir. This MR attempts to remedy this issue by adding down steam support for the project dir being None (including generation of exceptions and guarding), as well as some property reference changes in the converter. Closes: #601 Co-authored-by: tabmra <[email protected]>
…port dbt_project_path=None (#605) As part of the changes made #581, some downstream logic was missed relating to the handling of a None and String-based project dir. This MR attempts to remedy this issue by adding down steam support for the project dir being None (including generation of exceptions and guarding), as well as some property reference changes in the converter. Closes: #601 Co-authored-by: tabmra <[email protected]> (cherry picked from commit 2f8d0e2)
Description
This change allows the dbt_project_path argument from ProjectConfig to be optional, and adds the ability to provide manifest_path alone. It also adds the ability for the user to (optionally) define project_name when dbt_project_path is defined, and requires project_name to be defined when dbt_project_path is not defined
Related Issue(s)
closes #569
Breaking Change?
Checklist