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

convert cli-style strings in selectors to normalized dictionaries #2895

Merged
merged 1 commit into from
Nov 18, 2020

Conversation

gshank
Copy link
Contributor

@gshank gshank commented Nov 17, 2020

[#2879]

resolves #2879

Description

Process the dictionary created from the selectors.yml to convert cli-string-style definitions to dictionaries, for the 'selectors' saved in manifest.json

Checklist

  • [x 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 Nov 17, 2020
@gshank gshank force-pushed the string_selectors branch 2 times, most recently from b82705d to 53f88aa Compare November 17, 2020 22:17
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.

Works great for me in local testing. Thanks so much for the spade work here, it's such a quality-of-life improvement for artifact users (including ourselves over in dbt-labs/dbt-docs#119).

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.

looks good! left some small comments

core/dbt/config/selectors.py Show resolved Hide resolved
test/unit/test_manifest_selectors.py Outdated Show resolved Hide resolved
test/unit/test_manifest_selectors.py Outdated Show resolved Hide resolved
test/unit/test_manifest_selectors.py Show resolved Hide resolved
@gshank gshank force-pushed the string_selectors branch 2 times, most recently from f20954e to 2dcfd0f Compare November 18, 2020 19:25
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.

👍

@gshank gshank merged commit a8765d5 into dev/kiyoshi-kuromiya Nov 18, 2020
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.

Standardize manifest representation of YAML selectors
3 participants