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

Move the contents of dbt.contracts.results to a new dbt.artifacts directory #9350

Merged
merged 6 commits into from
Jan 11, 2024

Conversation

gshank
Copy link
Contributor

@gshank gshank commented Jan 8, 2024

resolves #9193
resolves #9200

Problem

With the goal of eventually having a separate dbt artifacts package, move the result artifacts into a new dbt/artifacts directory.

Solution

Split up the contents of core/dbt/contracts/results.py into various files in dbt/artifacts -- base.py, results.py, freshness.py, run.py and catalog.py.

For temporary use while in the middle of this conversion, core/dbt/contracts/results.py has been turned into a file that imports the various classes from dbt/artifacts.

Checklist

  • I have read the contributing guide and understand what's expected of me
  • I have run this code in development and it appears to resolve the stated issue
  • This PR includes tests, or tests are not required/relevant for this PR
  • This PR has no interface changes (e.g. macros, cli, logs, json artifacts, config files, adapter interface, etc) or this PR has already received feedback and approval from Product or DX
  • This PR includes type annotations for new and modified functions

@gshank gshank requested a review from a team as a code owner January 8, 2024 19:57
@gshank gshank requested a review from aranke January 8, 2024 19:57
@cla-bot cla-bot bot added the cla:yes label Jan 8, 2024
@gshank gshank marked this pull request as draft January 8, 2024 19:57
Copy link
Contributor

github-actions bot commented Jan 8, 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.

@gshank gshank requested review from MichelleArk and removed request for aranke January 8, 2024 19:58
Copy link

codecov bot commented Jan 8, 2024

Codecov Report

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

Comparison is base (1e4286a) 86.59% compared to head (6df056d) 86.62%.

Files Patch % Lines
core/dbt/artifacts/base.py 89.69% 10 Missing ⚠️
core/dbt/artifacts/freshness.py 94.93% 4 Missing ⚠️
core/dbt/contracts/sql.py 0.00% 3 Missing ⚠️
core/dbt/artifacts/results.py 97.97% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #9350      +/-   ##
==========================================
+ Coverage   86.59%   86.62%   +0.02%     
==========================================
  Files         225      230       +5     
  Lines       27024    27059      +35     
==========================================
+ Hits        23402    23440      +38     
+ Misses       3622     3619       -3     
Flag Coverage Δ
integration 83.51% <95.74%> (+0.03%) ⬆️
unit 65.25% <76.95%> (+0.02%) ⬆️

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.

@gshank gshank changed the title Move the contents of dbt.contracts.results to a new dbt.artifacts file Move the contents of dbt.contracts.results to a new dbt.artifacts directory Jan 9, 2024
@gshank gshank marked this pull request as ready for review January 9, 2024 15:42
@gshank gshank requested a review from a team as a code owner January 9, 2024 15:42
Copy link
Contributor

@MichelleArk MichelleArk 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!

@gshank gshank merged commit cff0b65 into main Jan 11, 2024
51 checks passed
@gshank gshank deleted the freshness_artifact_move branch January 11, 2024 19:58
emmyoop added a commit that referenced this pull request Jan 16, 2024
* replace dbt/common with dbt-common

* update requirements, remove colorama

* remove dbt-common unit tests

* WIP

* some cleanup

* update imports from dbt.common to dbt_common

* remove tests/unit/common

* changelog entry

* remove commented out code

* move cache exceptions to dbt/adapters (#9361)

* point to dbt-common main

* Move the contents of dbt.contracts.results to a new dbt.artifacts directory (#9350)

* conflict resolution cleanup

* cleanup

* add ignoreb

---------

Co-authored-by: Michelle Ark <michelle.ark@dbtlabs.com>
Co-authored-by: Michelle Ark <MichelleArk@users.noreply.github.com>
Co-authored-by: Gerda Shank <gerda@dbtlabs.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants