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

enacted deprecation for dispatch-packages, cleaned up deprecations te… #3975

Merged
merged 7 commits into from
Oct 5, 2021

Conversation

emmyoop
Copy link
Member

@emmyoop emmyoop commented Sep 29, 2021

resolves #3895

Description

Raise an exception when using the packages argument in adapter.dispatch() and removed associated tests/warnings.

Still need to remove code that enabled backwards compatibility.

Checklist

  • I have signed the CLA
  • 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
  • I have updated the CHANGELOG.md and added information about my change to the "dbt next" section.

@cla-bot cla-bot bot added the cla:yes label Sep 29, 2021
@emmyoop emmyoop force-pushed the er/3895-dispatch-packages branch from 2b21849 to 41b8929 Compare September 30, 2021 20:16
@emmyoop emmyoop force-pushed the er/3895-dispatch-packages branch from 41b8929 to 7414b4c Compare October 4, 2021 15:58
@emmyoop emmyoop marked this pull request as ready for review October 4, 2021 16:53
Copy link
Contributor

@jtcohen6 jtcohen6 left a comment

Choose a reason for hiding this comment

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

nice work!!

@@ -142,84 +135,20 @@ def statically_parse_adapter_dispatch(func_call, ctx, db_wrapper):
elif packages_arg_type == 'Const':
# This will remain to enable static resolution
macro_namespace = packages_arg.value
elif packages_arg_type == 'Call':
Copy link
Contributor

Choose a reason for hiding this comment

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

adieu ! you served us well

@emmyoop emmyoop merged commit 3caec08 into develop Oct 5, 2021
@emmyoop emmyoop deleted the er/3895-dispatch-packages branch October 5, 2021 14:05
iknox-fa pushed a commit that referenced this pull request Feb 8, 2022
#3975)

* enacted deprecation for dispatch-packages, cleaned up deprecations tests for unused macros/models. still need to clean up unused code.

* more work to catch packages use

* fixed tests for removing packages on adapter.dispatch.

* cleaned out folder for 012_deprecation_tests to remove unused models/data/macros

* removed obsolete code due to patching for packages arg in adapter.dispatch

* updated exception name

* added deprecation change to changelog.

automatic commit by git-black, original commits:
  3caec08
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.

Enable deprecation: dispatch-packages
3 participants