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

Add on_warning_callback to DbtSourceKubernetesOperator and refactor previous operators #1501

Merged

Conversation

LuigiCerone
Copy link
Contributor

@LuigiCerone LuigiCerone commented Feb 3, 2025

Description

It seems that DbtSourceKubernetesOperator is missing some logic for handling the on_warning_callback. This logic was added for DbtTestKubernetesOperator in #673 , I tried to apply the same logic also for the source operator.

Related Issue(s)

closes #1500 1500

Breaking Change?

AFAIK nope

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

@dosubot dosubot bot added the size:L This PR changes 100-499 lines, ignoring generated files. label Feb 3, 2025
@dosubot dosubot bot added area:testing Related to testing, like unit tests, integration tests, etc execution:kubernetes Related to Kubernetes execution environment labels Feb 3, 2025
Copy link

netlify bot commented Feb 3, 2025

Deploy Preview for sunny-pastelito-5ecb04 canceled.

Name Link
🔨 Latest commit 7a59412
🔍 Latest deploy log https://app.netlify.com/sites/sunny-pastelito-5ecb04/deploys/67a0c08c97a24a000813e108

@tatiana tatiana added this to the Cosmos 1.9.0 milestone Feb 3, 2025
@tatiana tatiana changed the title extract commong on_warning_callback logic to operator Add on_warning_callback to DbtSourceKubernetesOperator and refactor previous operators Feb 3, 2025
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.

This looks great, @LuigiCerone , thank you very much for raising the issue and the fix so promptly - the refactor looks great. I'm happy to merge this PR once the CI checks pass - and we'll release this as part of Cosmos 1.9.0.

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Feb 3, 2025
Copy link

codecov bot commented Feb 3, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.13%. Comparing base (9c175f6) to head (7a59412).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1501      +/-   ##
==========================================
+ Coverage   97.11%   97.13%   +0.02%     
==========================================
  Files          77       77              
  Lines        4501     4505       +4     
==========================================
+ Hits         4371     4376       +5     
+ Misses        130      129       -1     

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

@tatiana tatiana merged commit 3eb67bd into astronomer:main Feb 3, 2025
68 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:testing Related to testing, like unit tests, integration tests, etc execution:kubernetes Related to Kubernetes execution environment lgtm This PR has been approved by a maintainer size:L This PR changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] - DbtSourceKubernetesOperator raises Invalid argument 'on_warning_callback'
2 participants