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

Escape upstream descriptions in generate_model_yaml #159

Merged
merged 5 commits into from
Feb 28, 2024

Conversation

wircho
Copy link
Contributor

@wircho wircho commented Feb 16, 2024

resolves #142

This is a:

  • documentation update
  • bug fix with no breaking changes
  • new functionality
  • a breaking change

All pull requests from community contributors should target the main branch (default).

Description & motivation

JSON-escapes upstream descriptions before inserting them in the YAML in generate_model_yaml.

Checklist

  • This code is associated with an issue which has been triaged and accepted for development.
  • I have verified that these changes work locally
  • I have updated the README.md (if applicable)
  • I have added tests & descriptions to my models (and macros if applicable)
  • I have added an entry to CHANGELOG.md

@gwenwindflower gwenwindflower self-assigned this Feb 28, 2024
Copy link
Contributor

@gwenwindflower gwenwindflower left a comment

Choose a reason for hiding this comment

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

Looks great, thank you for patience on this!

@gwenwindflower
Copy link
Contributor

Had to add some unrelated commits to get the test suite working, nothing to do with your code, it was broken before. LGTM now though and all tests are passing, merging in!

@gwenwindflower gwenwindflower merged commit cb34ce4 into dbt-labs:main Feb 28, 2024
1 check passed
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.

generate_model_yaml does not escape descriptions, leading to invalid and potentially unsafe YAML code
2 participants