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

addition: check_snapshot_name_contract #184

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

ryancollingwood
Copy link

check_snapshot_name_contract is similar in behaviour to check_model_name_contract

Impacts to existing code

get_snapshots (in dbt_checkpoint/utils.py) now returns a generator of Model, previously it returned a list of strings detailing the filename of snapshots. In order to evaluate the name for the snapshot additional information is needed. This has resulted in a change to dbt_checkpoint/check_model_has_properties_file.py

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (783ceed) 0.00% compared to head (6a74974) 97.95%.

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

Additional details and impacted files
@@            Coverage Diff            @@
##           main     #184       +/-   ##
=========================================
+ Coverage      0   97.95%   +97.95%     
=========================================
  Files         0       51       +51     
  Lines         0     2497     +2497     
  Branches      0      330      +330     
=========================================
+ Hits          0     2446     +2446     
- Misses        0       32       +32     
- Partials      0       19       +19     

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

@BAntonellini
Copy link
Collaborator

Hey @ryancollingwood, could you please resolve conflicts? We've modified snapshot obtention and some logic on the latest PRs.

Later this week we'll release a new version, and your PR could become part of it.

@ryancollingwood
Copy link
Author

@BAntonellini resolved the conflict, although there are failing tests for dbt_checkpoint/check_model_has_properties_file.py
Potentially related to changes in #181 ?

@BAntonellini
Copy link
Collaborator

BAntonellini commented Apr 1, 2024

@ryancollingwood could you merge main and try to fix such tests?

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

3 participants