vscode-dbt-power-user icon indicating copy to clipboard operation
vscode-dbt-power-user copied to clipboard

pass profile, target and vars via env vars

Open syucream opened this issue 1 year ago • 1 comments

Overview

Problem

https://github.com/AltimateAI/vscode-dbt-power-user/issues/1340

I have a complicated dbt project requires specifying profile, target and vars explicitly on dbt-compile. So currently some features run dbt-compile (e.g. compiled sql preview, lineage) don't work.

Solution

Allow to provide these parameters via environment variables.

Screenshot/Demo

A picture is worth a thousand words. Please highlight the changes if applicable.

How to test

  • Steps to be followed to verify the solution or code changes
  • Mention if there is any settings configuration added/changed/deleted

Checklist

  • [x] I have run this code and it appears to resolve the stated issue
  • [ ] README.md updated and added information about my change

syucream avatar Aug 06 '24 14:08 syucream

Thanks for your contribution @syucream . We will review it soon.

anandgupta42 avatar Aug 10 '24 01:08 anandgupta42

@syucream, can you propose a change in the docs for this feature as well?

docs.myaltimate.com

anandgupta42 avatar Aug 12 '24 16:08 anandgupta42

@anandgupta42 Sure. Which is the doc files?

syucream avatar Aug 17 '24 16:08 syucream