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 to and to_column(s) to ColumnLevelConstraint and ModelLevelConstraint contracts #163

Merged
merged 6 commits into from
Jul 16, 2024

Conversation

MichelleArk
Copy link
Collaborator

@MichelleArk MichelleArk commented Jul 5, 2024

resolves #168

Description

as part of dbt-labs/dbt-core#8062, we will need to extend these contracts to optionally include to and to_columns fields.

Checklist

@cla-bot cla-bot bot added the cla:yes label Jul 5, 2024
Copy link

github-actions bot commented Jul 5, 2024

Thank you for your pull request! We could not find a changelog entry for this change. For details on how to document a change, see the contributing guide.

@codecov-commenter
Copy link

codecov-commenter commented Jul 5, 2024

Codecov Report

Attention: Patch coverage is 0% with 2 lines in your changes missing coverage. Please review.

Project coverage is 64.31%. Comparing base (71f4d53) to head (d516a4e).

Files Patch % Lines
dbt_common/contracts/constraints.py 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #163      +/-   ##
==========================================
- Coverage   64.34%   64.31%   -0.04%     
==========================================
  Files          51       51              
  Lines        3223     3225       +2     
==========================================
  Hits         2074     2074              
- Misses       1149     1151       +2     
Flag Coverage Δ
unit 64.31% <0.00%> (-0.04%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@MichelleArk MichelleArk force-pushed the foreign-ref-column-constraint branch from ed9ee13 to f5e2c35 Compare July 5, 2024 18:26
Copy link
Member

@aranke aranke left a comment

Choose a reason for hiding this comment

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

LGTM!

@MichelleArk MichelleArk changed the title add to and to_column(s) to ColumnLevelConstraint and ModelLevelConstr… add to and to_column(s) to ColumnLevelConstraint and ModelLevelConstraint contracts Jul 16, 2024
@MichelleArk MichelleArk marked this pull request as ready for review July 16, 2024 14:26
@MichelleArk MichelleArk requested a review from a team as a code owner July 16, 2024 14:26
@MichelleArk MichelleArk added this pull request to the merge queue Jul 16, 2024
Merged via the queue into main with commit 8edae92 Jul 16, 2024
20 checks passed
@MichelleArk MichelleArk deleted the foreign-ref-column-constraint branch July 16, 2024 14:40
vperron added a commit to gip-inclusion/data-inclusion that referenced this pull request Jul 22, 2024
The 'services' table has an implicit dependency to the 'structures' mart
as its contracy enforces a check on its structure_id key towards that
table.

Make sure DBT knows about it so it generates the structures first.

Referenced by dbt-labs/dbt-core#8062,
might be fixed in dbt-labs/dbt-common#163
last week but:
- not released
- not documented
- not sure the commit will actually help when I read it, needs more
  changes I suppose
vperron added a commit to gip-inclusion/data-inclusion that referenced this pull request Jul 25, 2024
The 'services' table has an implicit dependency to the 'structures' mart
as its constraint enforces a check on its structure_id key towards that
table.

Make sure DBT knows about it so it generates the structures first.

Referenced by dbt-labs/dbt-core#8062,
might be fixed in dbt-labs/dbt-common#163
last week but:
- not released
- not documented
- not sure the commit will actually help when I read it, needs more
  changes I suppose
vperron added a commit to gip-inclusion/data-inclusion that referenced this pull request Jul 26, 2024
The 'services' table has an implicit dependency to the 'structures' mart
as its constraint enforces a check on its structure_id key towards that
table.

Make sure DBT knows about it so it generates the structures first.

Referenced by dbt-labs/dbt-core#8062,
might be fixed in dbt-labs/dbt-common#163
last week but:
- not released
- not documented
- not sure the commit will actually help when I read it, needs more
  changes I suppose
vperron added a commit to gip-inclusion/data-inclusion that referenced this pull request Aug 2, 2024
The 'services' table has an implicit dependency to the 'structures' mart
as its constraint enforces a check on its structure_id key towards that
table.

Make sure DBT knows about it so it generates the structures first.

Referenced by dbt-labs/dbt-core#8062,
might be fixed in dbt-labs/dbt-common#163
last week but:
- not released
- not documented
- not sure the commit will actually help when I read it, needs more
  changes I suppose
vperron added a commit to gip-inclusion/data-inclusion that referenced this pull request Aug 5, 2024
The 'services' table has an implicit dependency to the 'structures' mart
as its constraint enforces a check on its structure_id key towards that
table.

Make sure DBT knows about it so it generates the structures first.

Referenced by dbt-labs/dbt-core#8062,
might be fixed in dbt-labs/dbt-common#163
last week but:
- not released
- not documented
- not sure the commit will actually help when I read it, needs more
  changes I suppose
vperron added a commit to gip-inclusion/data-inclusion that referenced this pull request Aug 6, 2024
The 'services' table has an implicit dependency to the 'structures' mart
as its constraint enforces a check on its structure_id key towards that
table.

Make sure DBT knows about it so it generates the structures first.

Referenced by dbt-labs/dbt-core#8062,
might be fixed in dbt-labs/dbt-common#163
last week but:
- not released
- not documented
- not sure the commit will actually help when I read it, needs more
  changes I suppose
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add to and to_columns to ColumnLevelConstraint and ModelLevelConstraint contracts
3 participants