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

Filter dbt cloud jobs by environment id #749

Conversation

usefulalgorithm
Copy link
Contributor

🤔 Why?

To filter collected dbt jobs by their environment ID.

🤓 What?

If user specified a list of environment ids to include, and the crawler sees a job with an environment id not in that list, then the job will be ignored.

🧪 Tested?

  • Unit test.
  • Tested locally.

☑️ Checks

  • My PR contains actual code changes, and I have updated the version number in pyproject.toml.

Copy link

This pull request has been linked to Shortcut Story #23561: Filter dbt cloud jobs by environment_id.

Copy link

github-actions bot commented Jan 9, 2024

☂️ Python Coverage

current status: ✅

Overall Coverage

Lines Covered Coverage Threshold Status
15354 14156 92% 85% 🟢

New Files

No new covered files...

Modified Files

File Coverage Status
metaphor/dbt/artifact_parser.py 94% 🟢
metaphor/dbt/cloud/client.py 96% 🟢
metaphor/dbt/cloud/config.py 100% 🟢
metaphor/dbt/cloud/extractor.py 90% 🟢
TOTAL 95% 🟢

updated for commit: d1bd2f3 by action🐍

Copy link

codecov bot commented Jan 9, 2024

Codecov Report

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

Comparison is base (c354d18) 92.01% compared to head (d1bd2f3) 92.19%.

Files Patch % Lines
metaphor/dbt/cloud/client.py 87.50% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #749      +/-   ##
==========================================
+ Coverage   92.01%   92.19%   +0.18%     
==========================================
  Files         185      147      -38     
  Lines       15495    15354     -141     
==========================================
- Hits        14257    14156     -101     
+ Misses       1238     1198      -40     

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

@usefulalgorithm
Copy link
Contributor Author

Yikes, merged another PR into this one and now there's a lot of changes :/

@mars-lan
Copy link
Contributor

mars-lan commented Jan 9, 2024

Yikes, merged another PR into this one and now there's a lot of changes :/

Rebase?

@mars-lan
Copy link
Contributor

mars-lan commented Jan 9, 2024

Yikes, merged another PR into this one and now there's a lot of changes :/

Argh I see. You didn't create #750 against main.

@usefulalgorithm usefulalgorithm enabled auto-merge (squash) January 9, 2024 14:07
metaphor/dbt/cloud/config.py Outdated Show resolved Hide resolved
metaphor/dbt/cloud/client.py Outdated Show resolved Hide resolved
metaphor/dbt/cloud/extractor.py Outdated Show resolved Hide resolved
mars-lan
mars-lan previously approved these changes Jan 10, 2024
@usefulalgorithm usefulalgorithm merged commit b8f9dc2 into main Jan 10, 2024
6 checks passed
@usefulalgorithm usefulalgorithm deleted the tsung-julii/sc-23561/filter-dbt-cloud-jobs-by-environment-id branch January 10, 2024 17:14
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.

2 participants