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

Remove prefix underscore from slugified schema names #91

Merged
merged 3 commits into from
Aug 24, 2023

Conversation

dfsnow
Copy link
Member

@dfsnow dfsnow commented Aug 23, 2023

This PR updates our schema name generator so that schemas that start with numbers are not prefixed with an underscore. The prefix underscore is designed to prevent invalid schemas (ones that start with numbers), but it is unnecessary for our use case since all dbt-generated schemas for non-main branches are prefixed with dev_ or ci_.

Including the underscore prefix in the name generator results in schema names with repeated underscores when the feature branch is generated from an issue, i.e. ci__70-create-reporting-view-with-most-recent-boundaries_census.

@dfsnow dfsnow requested a review from a team as a code owner August 23, 2023 17:08
@dfsnow
Copy link
Member Author

dfsnow commented Aug 23, 2023

Note that the workflow failure here is another test threshold issue.

Copy link
Contributor

@jeancochrane jeancochrane left a comment

Choose a reason for hiding this comment

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

Makes sense to me!

@dfsnow dfsnow merged commit 7ff51c8 into master Aug 24, 2023
3 checks passed
@dfsnow dfsnow deleted the dansnow/slugify-fix branch August 24, 2023 15:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants