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

[#4253] Support partial parsing of env_vars in metrics definitions #4322

Merged
merged 1 commit into from
Nov 23, 2021

Conversation

gshank
Copy link
Contributor

@gshank gshank commented Nov 22, 2021

resolves #4253

Description

Because of parallel development of the metrics feature and partial parsing with environment variables, some code was missing to support re-parsing metrics when env_vars change.

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

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.

Code change makes sense - one question for rendering of other top-level metric properties (non-meta fields)

CHANGELOG.md Outdated
### Fixes
- Correct definition of 'created_at' in ParsedMetric nodes ([#4298](http://github.com/dbt-labs/dbt-core/issues/4298), [#4299](https://github.com/dbt-labs/dbt-core/pull/4299))
- Correct definition of 'created_at' in ParsedMetric nodes ([#4298](https://github.com/dbt-labs/dbt-core/issues/4298), [#4299](https://github.com/dbt-labs/dbt-core/pull/4299))
- Support partial parsing of env_vars in metrics ([#4253](https://github.com/dbt-labs/dbt-core/issues/4293), [#4322](https://github.com/dbt-labs/dbt-core/pull/4322))
Copy link
Contributor

Choose a reason for hiding this comment

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

Note for future, doesn't need to happen in this PR: move changelog entry up since this wasn't included in rc2

@gshank gshank force-pushed the pp_metrics_env_vars branch from 23cc2c2 to 7c9d0a1 Compare November 23, 2021 19:44
@gshank gshank merged commit d046ae0 into main Nov 23, 2021
@gshank gshank deleted the pp_metrics_env_vars branch November 23, 2021 20:02
iknox-fa pushed a commit that referenced this pull request Feb 8, 2022
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.

Support partial parsing with env_vars in metrics definition
3 participants