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

add generate_database_name macro (#1695) #2143

Merged
merged 2 commits into from
Feb 24, 2020

Conversation

beckjake
Copy link
Contributor

@beckjake beckjake commented Feb 17, 2020

resolves #1695

Description

Add a generate_database_name macro
Unify the various node update things so there's some level of enforced consistency in behavior.

Tests:

  • Remove old deprecation tests
  • Add new tests
  • Fix all the existing tests that do manifest things

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 Feb 17, 2020
@beckjake beckjake changed the title add generate_database_name macro add generate_database_name macro (#1695) Feb 18, 2020
Copy link
Contributor

@drewbanin drewbanin left a comment

Choose a reason for hiding this comment

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

One comment regarding the changelog, but otherwise LGTM!

CHANGELOG.md Outdated
@@ -2,6 +2,7 @@

### Features
- Add a "docs" field to models, with a "show" subfield ([#1671](https:/fishtown-analytics/dbt/issues/1671), [#2107](https:/fishtown-analytics/dbt/pull/2107))
- Add support for generating database name macro ([#1695](https:/fishtown-analytics/dbt/issues/1695), [#2143](https:/fishtown-analytics/dbt/pull/2143))
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we add a separate entry for the breaking change that 1-arg generate_schema_name macros are no longer supported?

@beckjake beckjake force-pushed the feature/generate-database-name branch from b257056 to 4b14311 Compare February 19, 2020 21:45
Jacob Beck added 2 commits February 24, 2020 08:39
Remove old deprecation tests
Add new tests
Fix all the integration tests that do manifest things
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.

Add a generate_database_name() macro
2 participants