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

Custom environment metadata in JSON artifacts #2764

Closed
beckjake opened this issue Sep 16, 2020 · 0 comments · Fixed by #2785
Closed

Custom environment metadata in JSON artifacts #2764

beckjake opened this issue Sep 16, 2020 · 0 comments · Fixed by #2785
Labels
1.0.0 Issues related to the 1.0.0 release of dbt artifacts enhancement New feature or request

Comments

@beckjake
Copy link
Contributor

Describe the feature

Include custom environment-sourced metadata in the JSON artifacts.

Inside the metadata field (or at the root if #2761 is not done yet), dbt should add a field - tentatively env. This field should be a dictionary, populated from the contents of dbt's environment that start with DBT_ENV_CUSTOM_ENV_. The keys should be the environment variables without the prefix, and the values the values. For example:
DBT_ENV_CUSTOM_ENV_run_id=1 DBT_ENV_CUSTOM_ENV_run_env=ci dbt run
will result in a manifest with {"env": {"run_id": "1", "run_env": "ci"}} in its metadata field.

See this comment for a tiny bit of context.

Split off from #2671

@beckjake beckjake added enhancement New feature or request 1.0.0 Issues related to the 1.0.0 release of dbt artifacts labels Sep 16, 2020
@jtcohen6 jtcohen6 added this to the Kiyoshi Kuromiya milestone Oct 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1.0.0 Issues related to the 1.0.0 release of dbt artifacts enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants