-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
deprecations.buffer: respect --quiet and --warn-error-options for deprecations #10534
Conversation
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. |
@@ -355,6 +355,8 @@ def fire_deprecations(self): | |||
# not get pickled when written to disk as json. |
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.
I'd like to refactor the deprecated_env_var_warnings mechanism above to use the new deprecations.buffer pattern but will defer that to a follow-up PR
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #10534 +/- ##
==========================================
- Coverage 88.84% 88.82% -0.02%
==========================================
Files 180 180
Lines 22717 22720 +3
==========================================
- Hits 20182 20181 -1
- Misses 2535 2539 +4
Flags with carried forward coverage won't be shown. Click here to find out more.
|
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.
A nice neat solution!
The backport to
To backport manually, run these commands in your terminal: # Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add .worktrees/backport-1.8.latest 1.8.latest
# Navigate to the new working tree
cd .worktrees/backport-1.8.latest
# Create a new branch
git switch --create backport-10534-to-1.8.latest
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 1dd26e79af721a5a3fc6ed8d464f9b4cb761ddad
# Push it to GitHub
git push --set-upstream origin backport-10534-to-1.8.latest
# Go back to the original working tree
cd ../..
# Delete the working tree
git worktree remove .worktrees/backport-1.8.latest Then, create a pull request where the |
Resolves #10105
Problem
new deprecations in dbt config parsing does not respect
--quiet
or--warn-error-options
Solution
provide a way to buffer deprecations, and fire them once flags are initialized
Checklist
🎩