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

Add Compile Model Command Additional Params

Open brettstopher opened this issue 2 years ago • 1 comments

Describe the feature

We have the need to run additional parameters to a DBT compile command to do some authentication with BigQuery. It would be ideal to have an extension setting like "Build Model Command Additional Params" or "Run Model Command Additional Params" which would allow us to feed in extra variables each time without having to run them in the terminal manually.

Describe alternatives you've considered

We can run compile commands in the terminal adding the extra parameters no problem so there is a workaround but it's quicker/easier to be able to right click -> compile dbt model

Who will benefit?

This will benefit anybody that has a custom implementation of DBT in their organisation.

Are you willing to submit PR?

  • [X] Yes I am willing to submit a PR!

brettstopher avatar Aug 30 '23 11:08 brettstopher

@brettstopher This looks like a good idea and will benefit the community. However, I'm unsure about introducing configs per command because it might make the settings too bloated. It would be better to provide a JSON mapping command to the parameters, but that would require additional effort from users, and we will have to validate the JSON as well.

@lionsardesai @mdesmet What are your thoughts?

anandgupta42 avatar Aug 31 '23 02:08 anandgupta42