Skip to content
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 GoogleCloudServiceAccountDictProfileMapping dataset profile argu… #1017

Merged
merged 4 commits into from
Jun 5, 2024

Conversation

pankajastro
Copy link
Contributor

@pankajastro pankajastro commented Jun 3, 2024

Description

This PR follows the methodology in #683 by modifying the GCP GoogleCloudServiceAccountDictProfileMapping() profile_args not require dataset as a required argument.

DAG RUN
Screenshot 2024-06-05 at 6 50 04 PM

Co-authored-by: Ollie Ma [email protected]
Original PR by @oliverrmaa: #839

Related Issue(s)

Closes #837

Breaking Change?

Not to my knowledge.

Checklist

  • I have made corresponding changes to the documentation (if required)
  • I have added tests that prove my fix is effective or that my feature works

Copy link

netlify bot commented Jun 3, 2024

Deploy Preview for sunny-pastelito-5ecb04 canceled.

Name Link
🔨 Latest commit de1e34c
🔍 Latest deploy log https://app.netlify.com/sites/sunny-pastelito-5ecb04/deploys/6660733d15f8010008e9a54b

@pankajastro pankajastro requested a review from jbandoro June 3, 2024 18:38
@pankajastro pankajastro marked this pull request as ready for review June 3, 2024 18:48
@dosubot dosubot bot added size:S This PR changes 10-29 lines, ignoring generated files. area:profile Related to ProfileConfig, like Athena, BigQuery, Clickhouse, Spark, Trino, etc profile:bigquery Related to BigQuery ProfileConfig labels Jun 3, 2024
Copy link

codecov bot commented Jun 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.70%. Comparing base (8b36b65) to head (b364e39).
Report is 2 commits behind head on main.

Current head b364e39 differs from pull request most recent head de1e34c

Please upload reports for the commit de1e34c to get more accurate results.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1017   +/-   ##
=======================================
  Coverage   95.70%   95.70%           
=======================================
  Files          60       60           
  Lines        2932     2933    +1     
=======================================
+ Hits         2806     2807    +1     
  Misses        126      126           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@pankajastro pankajastro force-pushed the make-gcp-dataset-profile-arg-optional branch from 695ac34 to b364e39 Compare June 5, 2024 13:28
@pankajastro pankajastro requested a review from tatiana June 5, 2024 13:30
Copy link
Collaborator

@tatiana tatiana left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thank you!

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Jun 5, 2024
@tatiana tatiana merged commit f980df1 into main Jun 5, 2024
61 checks passed
@tatiana tatiana deleted the make-gcp-dataset-profile-arg-optional branch June 5, 2024 14:23
tatiana pushed a commit that referenced this pull request Jun 6, 2024
#1017)

This PR follows the methodology in
#683 by modifying
the GCP `GoogleCloudServiceAccountDictProfileMapping()` `profile_args`
not require a dataset as a required argument.

DAG RUN
<img width="1473" alt="Screenshot 2024-06-05 at 6 50 04 PM"
src="https://github.com/astronomer/astronomer-cosmos/assets/98807258/81b127b9-c5e5-4983-9efe-bbf00d81914f">

Co-authored-by: "Ollie Ma" <[email protected]> 
Original PR by @oliverrmaa: #839

Closes #837
@tatiana tatiana mentioned this pull request Jun 6, 2024
tatiana added a commit that referenced this pull request Jun 6, 2024
Bug fixes

* Fix the invocation mode for ``ExecutionMode.VIRTUALENV`` by @marco9663
in #1023
* Fix Cosmos ``enable_cache`` setting by @tatiana in #1025
* Make ``GoogleCloudServiceAccountDictProfileMapping`` dataset profile
arg optional by @oliverrmaa and @pankajastro in #839 and #1017
* Athena profile mapping set ``aws_session_token`` in profile only if it
exists by @pankajastro in #1022

Others

* Update dbt and Airflow conflicts matrix by @tatiana in #1026
* Enable Python 3.12 unittest by @pankajastro in #1018
* Improve error logging in ``DbtLocalBaseOperator`` by @davidsteinar in
#1004
* Add GitHub issue templates for bug reports and feature request by
@pankajkoti in #1009
* Add more fields in bug template to reduce turnaround in issue triaging
by @pankajkoti in #1027
* Fix ``dev/Dockerfile`` + Add ``uv pip install`` for faster build time
by @dwreeves in #997
* Drop support for Airflow 2.3 by @pankajkoti in #994
* Update Astro Runtime image by @RNHTTR in #988 and #989
* Enable ruff F linting by @pankajastro in #985
* Move Cosmos Airflow configuration to settings.py by @pankajastro in
#975
* Fix CI Issues by @tatiana in #1005
* Pre-commit hook updates in #1000, #1019

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Daniel Reeves <[email protected]>
Co-authored-by: Pankaj Koti <[email protected]>
Co-authored-by: davidsteinar <[email protected]>
Co-authored-by: David Steinar Asgrimsson <[email protected]>
Co-authored-by: Marco Yuen <[email protected]>
Co-authored-by: Pankaj Singh <[email protected]>
Co-authored-by: Ollie Ma <[email protected]>
pankajkoti added a commit that referenced this pull request Jun 7, 2024
In PR #1017, we attempted to remove `dataset` from the required
fields list for the BigQuery profile. However, we realised that
this is failing BiqQuery dbt operations as it indeed is a required
field. Hence, bring back the same as a required field. This is
also necessary for building the mock profile where we construct
the profile by taking in consideration only the required fields.

closes: #1031
tatiana pushed a commit that referenced this pull request Jun 7, 2024
In PR #1017, we attempted to remove `dataset` from the required fields
list for the BigQuery profile. However, we realised that this is failing
BiqQuery dbt operations as it indeed is a required field. Hence, bring
back the same as a required field. This is also necessary for building
the mock profile where we construct the profile by taking in
consideration only the required fields.

Closes: #1031
pankajkoti added a commit that referenced this pull request Jun 7, 2024
In PR #1017, we attempted to remove `dataset` from the required fields
list for the BigQuery profile. However, we realised that this is failing
BiqQuery dbt operations as it indeed is a required field. Hence, bring
back the same as a required field. This is also necessary for building
the mock profile where we construct the profile by taking in
consideration only the required fields.

Closes: #1031
(cherry picked from commit 803776a)
arojasb3 pushed a commit to arojasb3/astronomer-cosmos that referenced this pull request Jul 14, 2024
astronomer#1017)

This PR follows the methodology in
astronomer#683 by modifying
the GCP `GoogleCloudServiceAccountDictProfileMapping()` `profile_args`
not require a dataset as a required argument.

DAG RUN
<img width="1473" alt="Screenshot 2024-06-05 at 6 50 04 PM"
src="https://github.com/astronomer/astronomer-cosmos/assets/98807258/81b127b9-c5e5-4983-9efe-bbf00d81914f">

Co-authored-by: "Ollie Ma" <[email protected]> 
Original PR by @oliverrmaa: astronomer#839

Closes astronomer#837
arojasb3 pushed a commit to arojasb3/astronomer-cosmos that referenced this pull request Jul 14, 2024
Bug fixes

* Fix the invocation mode for ``ExecutionMode.VIRTUALENV`` by @marco9663
in astronomer#1023
* Fix Cosmos ``enable_cache`` setting by @tatiana in astronomer#1025
* Make ``GoogleCloudServiceAccountDictProfileMapping`` dataset profile
arg optional by @oliverrmaa and @pankajastro in astronomer#839 and astronomer#1017
* Athena profile mapping set ``aws_session_token`` in profile only if it
exists by @pankajastro in astronomer#1022

Others

* Update dbt and Airflow conflicts matrix by @tatiana in astronomer#1026
* Enable Python 3.12 unittest by @pankajastro in astronomer#1018
* Improve error logging in ``DbtLocalBaseOperator`` by @davidsteinar in
astronomer#1004
* Add GitHub issue templates for bug reports and feature request by
@pankajkoti in astronomer#1009
* Add more fields in bug template to reduce turnaround in issue triaging
by @pankajkoti in astronomer#1027
* Fix ``dev/Dockerfile`` + Add ``uv pip install`` for faster build time
by @dwreeves in astronomer#997
* Drop support for Airflow 2.3 by @pankajkoti in astronomer#994
* Update Astro Runtime image by @RNHTTR in astronomer#988 and astronomer#989
* Enable ruff F linting by @pankajastro in astronomer#985
* Move Cosmos Airflow configuration to settings.py by @pankajastro in
astronomer#975
* Fix CI Issues by @tatiana in astronomer#1005
* Pre-commit hook updates in astronomer#1000, astronomer#1019

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Daniel Reeves <[email protected]>
Co-authored-by: Pankaj Koti <[email protected]>
Co-authored-by: davidsteinar <[email protected]>
Co-authored-by: David Steinar Asgrimsson <[email protected]>
Co-authored-by: Marco Yuen <[email protected]>
Co-authored-by: Pankaj Singh <[email protected]>
Co-authored-by: Ollie Ma <[email protected]>
arojasb3 pushed a commit to arojasb3/astronomer-cosmos that referenced this pull request Jul 14, 2024
…omer#1033)

In PR astronomer#1017, we attempted to remove `dataset` from the required fields
list for the BigQuery profile. However, we realised that this is failing
BiqQuery dbt operations as it indeed is a required field. Hence, bring
back the same as a required field. This is also necessary for building
the mock profile where we construct the profile by taking in
consideration only the required fields.

Closes: astronomer#1031
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:profile Related to ProfileConfig, like Athena, BigQuery, Clickhouse, Spark, Trino, etc lgtm This PR has been approved by a maintainer profile:bigquery Related to BigQuery ProfileConfig size:S This PR changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make GoogleCloudServiceAccountDictProfileMapping dataset profile argument optional
2 participants