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

Feature/catalog relational objects #3922

Merged
merged 5 commits into from
Sep 23, 2021

Conversation

dave-connors-3
Copy link
Contributor

resolves #3920

Description

This PR changes the base behavior for generating the map of schemas used in the dbt docs generate step to only those that contain relational, non-ephemeral nodes. Current behavior checks all nodes, which includes tests, and can result in errors when used in conjunction with custom generate_database_name behavior in a project.

Note: when store_failures is set to true, this logic will interpret tests as relational nodes, and therefore can trigger a similar error depending on the default generate_database_name behavior in the project.

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.

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.

lgtm!

Could you pull develop, and add a note to the changelog under 1.0.0 - Under the hood? As well as adding a Contributors section, and adding yourself to it? :)

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.

thanks for this one, @dave-connors-3 :)

@jtcohen6 jtcohen6 merged commit f4f5d31 into develop Sep 23, 2021
@jtcohen6 jtcohen6 deleted the feature/catalog-relational-objects branch September 23, 2021 15:54
iknox-fa pushed a commit that referenced this pull request Feb 8, 2022
* filter to relational nodes

* cleanup

* flake formatting

* changelog

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

Generate catalog for relational, non-ephemeral nodes only
2 participants