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

bug/persist-docs #4

Merged
merged 9 commits into from
Jan 4, 2024
Merged

bug/persist-docs #4

merged 9 commits into from
Jan 4, 2024

Conversation

fivetran-catfritz
Copy link
Contributor

@fivetran-catfritz fivetran-catfritz commented Jan 3, 2024

PR Overview

This PR will address the following Issue/Feature: #3

This PR will result in the following new package version:

  • v0.1.1
  • Documentation update only

Please provide the finalized CHANGELOG entry which details the relevant changes included in this PR:

Bug fix

  • Shortened the documentation description for field distribution_status, so no character limit error is generated when persisting docs.

PR Checklist

Basic Validation

Please acknowledge that you have successfully performed the following commands locally:

  • dbt run –full-refresh && dbt test
  • dbt run (if incremental models are present)

Before marking this PR as "ready for review" the following have been applied:

  • The appropriate issue has been linked, tagged, and properly assigned
  • All necessary documentation and version upgrades have been applied
  • docs were regenerated (unless this PR does not include any code or yml updates)
  • BuildKite integration tests are passing
  • Detailed validation steps have been provided below

Detailed Validation

Please share any and all of your validation steps:

  • Was able to re-create the original issue by:
    • using seed data
    • using the below settings in my dbt_project.yml in bigquery:
models:
  +persist_docs:
    relation: true
    columns: true

which resulted in error:

22:24:09  Completed with 1 error and 0 warnings:
22:24:09  
22:24:09    400 PATCH https://bigquery.googleapis.com/bigquery/v2/projects/dbt-package-testing/datasets/zz_dbt_catherine_qualtrics_prod/tables/stg_qualtrics__distribution_contact?prettyPrint=false: The description for field status is too long. The maximum length is 1024 characters.
22:24:09  
  • The updates in this PR resolved the issue.

@fivetran-catfritz fivetran-catfritz self-assigned this Jan 3, 2024
Copy link
Collaborator

@fivetran-joemarkiewicz fivetran-joemarkiewicz left a comment

Choose a reason for hiding this comment

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

@fivetran-catfritz this looks great! I have one suggestion to update the integration_tests/dbt_project.yml to test the persisting of docs. Once that is applied this is read for release review.

@@ -1,5 +1,5 @@
name: 'qualtrics_source_integration_tests'
version: '0.1.0'
version: '0.1.1'
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why don't we also persist the docs in the integration tests to confirm that this works as expected across all other warehouses as well.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@fivetran-joemarkiewicz Good idea! I have added, and it passed integrations tests. One caveat--I had to turn off the persist_docs: columns for databricks to get it to pass. This is not us since I'm seeing there are known issues on dbt's end with persist_docs for databricks.

Copy link

@fivetran-reneeli fivetran-reneeli 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

@fivetran-catfritz fivetran-catfritz merged commit 0db02c9 into main Jan 4, 2024
7 checks passed
@fivetran-catfritz fivetran-catfritz linked an issue Jan 4, 2024 that may be closed by this pull request
4 tasks
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.

[Bug] Bigquery fails on stg_qualtrics__distribution_contact
3 participants