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

Fix logging for default selector #3892

Merged
merged 3 commits into from
Sep 17, 2021
Merged

Conversation

jtcohen6
Copy link
Contributor

@jtcohen6 jtcohen6 commented Sep 16, 2021

Follow-on to #3875, the actual functionality of which I was eager to get into v0.21 :)

In particular, this fixes #3875 (comment). Only log "Using default selector" when the default selector is in fact being used, not every time one has been defined.

While we're here: Acknowledging that the get_selection_spec method is now 99% the same across the three tasks that implement it, move the method definition up to GraphRunnableTask (replacing the abstract method), and remove the duplicated code from the child tasks.

  • 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 16, 2021
@jtcohen6 jtcohen6 requested a review from leahwicz September 16, 2021 14:46
@jtcohen6 jtcohen6 requested a review from kwigley September 17, 2021 15:41
Copy link
Contributor

@kwigley kwigley left a comment

Choose a reason for hiding this comment

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

nice! love deleting code

@jtcohen6 jtcohen6 merged commit 76c59a5 into develop Sep 17, 2021
@jtcohen6 jtcohen6 deleted the fix/default-selector-logging branch September 17, 2021 16:00
iknox-fa pushed a commit that referenced this pull request Feb 8, 2022
* Fix logging for default selector

* Fix flake8, mypy

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

2 participants