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 --allow-extra-keys to check-source-has-meta-keys #176

Merged
merged 6 commits into from
Mar 6, 2024

Conversation

BAntonellini
Copy link
Collaborator

@BAntonellini BAntonellini commented Jan 18, 2024

No description provided.

@codecov-commenter
Copy link

codecov-commenter commented Jan 18, 2024

Codecov Report

Attention: 41 lines in your changes are missing coverage. Please review.

Comparison is base (783ceed) 0.00% compared to head (60a738b) 96.32%.

Files Patch % Lines
dbt_checkpoint/check_exposure_has_meta_keys.py 0.00% 39 Missing ⚠️
dbt_checkpoint/check_source_has_meta_keys.py 50.00% 1 Missing and 1 partial ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff            @@
##           main     #176       +/-   ##
=========================================
+ Coverage      0   96.32%   +96.32%     
=========================================
  Files         0       51       +51     
  Lines         0     2505     +2505     
  Branches      0      332      +332     
=========================================
+ Hits          0     2413     +2413     
- Misses        0       72       +72     
- Partials      0       20       +20     

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

@BAntonellini BAntonellini marked this pull request as ready for review January 29, 2024 15:47
)


def has_meta_key(
Copy link
Collaborator

Choose a reason for hiding this comment

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

This function seems pretty similar to what we need to do with models, sources, and exposures. Did you think about generalizing and then adding this functionality as a util?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Hey @JFrackson, sources and exposures ones are in part similar, though sources contain a schema+table meta union.

Modelshas_meta_key is almost entirely different IMO

Copy link
Contributor

@alfredodimassimo alfredodimassimo left a comment

Choose a reason for hiding this comment

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

LGTM!

@BAntonellini BAntonellini merged commit 2e1946a into main Mar 6, 2024
7 checks passed
@BAntonellini BAntonellini deleted the allow-extra-keys-in-sources branch March 6, 2024 17:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants