astronomer / astronomer-cosmos

Run your dbt Core projects as Apache Airflow DAGs and Task Groups with a few lines of code
https://astronomer.github.io/astronomer-cosmos/
Apache License 2.0
767 stars 170 forks source link

Add missing `DbtSourceGcpCloudRunJobOperator` in module `cosmos.operators.gcp_cloud_run_job` #1290

Closed anai-s closed 1 week ago

anai-s commented 3 weeks ago

Description

this PR add a missing attribute DbtSourceGcpCloudRunJobOperator in cosmos.operators.gcp_cloud_run_job.py to be able to use the source_rendering_behavior params in cosmos.config.RenderConfig class with the new GCP_CLOUD_RUN_JOB execution mode (available in 1.7.0) .

Related Issue(s)

closes #1276

Breaking Change?

Checklist

netlify[bot] commented 3 weeks ago

Deploy Preview for sunny-pastelito-5ecb04 canceled.

Name Link
Latest commit c94928e45d3fa5ee830b591420584d9f5345f877
Latest deploy log https://app.netlify.com/sites/sunny-pastelito-5ecb04/deploys/672487aa816f080008bf7445
anai-s commented 3 weeks ago

Hello @tatiana My PR is ready for a review.

anai-s commented 3 weeks ago

@tatiana sure I will add the test! Thank you for the review.

anai-s commented 2 weeks ago

@tatiana I added the test for the module DbtSourceGcpCloudRunJobOperator. Can you review it please?

codecov[bot] commented 2 weeks ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 95.85%. Comparing base (1840c32) to head (311894b). Report is 1 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #1290 +/- ## ======================================= Coverage 95.85% 95.85% ======================================= Files 67 67 Lines 3976 3979 +3 ======================================= + Hits 3811 3814 +3 Misses 165 165 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.