-
Notifications
You must be signed in to change notification settings - Fork 13
Add disabling variables for issue_assignee, issue_label, label, and requested_reviewer_history
#45
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
Conversation
fivetran-joemarkiewicz
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
| ```yml | ||
| vars: | ||
| github__using_repo_team: false # by default this is assumed to be true | ||
| github__using_issue_assignee: false # by default this is assumed to be true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We'll want to modify line 64 with the tables not being synced?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated!
.buildkite/scripts/run_models.sh
Outdated
| dbt deps | ||
| dbt seed --target "$db" --full-refresh | ||
| dbt source freshness --target "$db" || echo "...Only verifying freshness runs..." | ||
| dbt run --vars '{github__using_repo_team: false, github__using_issue_assignee: false, github__using_issue_label: false, github__using_requested_reviewer_history: false}' --target "$db" --full-refresh |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| dbt run --vars '{github__using_repo_team: false, github__using_issue_assignee: false, github__using_issue_label: false, github__using_requested_reviewer_history: false}' --target "$db" --full-refresh | |
| dbt run --vars '{github__using_repo_team: false, github__using_issue_assignee: false, github__using_issue_label: false, github__using_requested_reviewer_history: false, github__using_label: false}' --target "$db" --full-refresh |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah good catch -- updated myself directly
.buildkite/scripts/run_models.sh
Outdated
| dbt seed --target "$db" --full-refresh | ||
| dbt source freshness --target "$db" || echo "...Only verifying freshness runs..." | ||
| dbt run --vars '{github__using_repo_team: false, github__using_issue_assignee: false, github__using_issue_label: false, github__using_requested_reviewer_history: false}' --target "$db" --full-refresh | ||
| dbt test --vars '{github__using_repo_team: false, github__using_issue_assignee: false, github__using_issue_label: false, github__using_requested_reviewer_history: false}' --target "$db" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| dbt test --vars '{github__using_repo_team: false, github__using_issue_assignee: false, github__using_issue_label: false, github__using_requested_reviewer_history: false}' --target "$db" | |
| dbt test --vars '{github__using_repo_team: false, github__using_issue_assignee: false, github__using_issue_label: false, github__using_requested_reviewer_history: false, github__using_label: false}' --target "$db" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated myself directly
fivetran-avinash
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@fivetran-jamie few comments before approval
fivetran-avinash
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@fivetran-jamie lgtm!
PR Overview
Package version introduced in this PR:
v0.9.1
This PR addresses the following Issue/Feature(s):
Summary of changes:
Creates new variables to disable the
issue_assignee,issue_label,label, andrequested_reviewer_historymodels if neededSubmission Checklist
without setting the vars to false,

dbt runproduces 28 modelsSetting all 4 to false produces the expected 20 models

And we don't see the disabled models + sources in the DAG

Changelog