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

Implement Target Switching Feature in dbt Power User

Open polat-deniz opened this issue 9 months ago • 1 comments

Describe the feature

Please add a feature that allows users to quickly switch between different targets defined in profiles.yml directly within the dbt Power User extension. This feature should be similar to the --target flag in dbt CLI, enabling users to change the target on the fly for functionalities like query results and column-level lineage. This will prevent errors such as "Invalid object name" by allowing users to switch to the appropriate target environment without manually editing files or settings.

Describe alternatives you've considered

As a workaround, I considered maintaining separate profile configurations and manually switching between these profiles by editing profiles.yml. However, this method is error-prone and inconvenient, especially when frequent changes are necessary.

Who will benefit?

This feature will benefit dbt developers who manage multiple environments (e.g., development, production) within their projects. It allows for seamless transitions between these environments, enhancing productivity and reducing the risk of errors due to environment mismatches.

Are you willing to submit PR?

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

polat-deniz avatar May 06 '24 15:05 polat-deniz

Very similar to #124

divenyijanos avatar Aug 02 '24 09:08 divenyijanos

This feature was introduced in version 0.45.0. You can modify the target in the bottom panel next to the "defer" status icon.This feature was introduced in version 0.45.0. You can modify the target in the bottom panel next to the "defer" status icon. Screenshot 2024-09-19 at 11 58 43 AM

anandgupta42 avatar Sep 19 '24 19:09 anandgupta42