AltimateAI / AltimateAI/vscode-dbt-power-user
Show model information when inside .yml file
- Langage dominant
- JavaScript
- Étoiles
- 585
- Forks
- 121
- Merge moyen
- 5 j 39 min
- PR mergées (30 j)
- 4
Description
### Describe the feature
The dbt power user views are key when working with a model.sql, however when editing the model.yml file the view is empty.
It would be amazing if there would also be information displayed about the models at hand.
For example for defining a column test, that is done in the .yml. Wouldn't it be great if I can run the test from where I just defined it?
As far as I understand each .yml can contain multiple models. I'm not sure what easier/feasible but maybe you could:
- display information about all models in the currently open file (this might be confusing, but in my case we have one .yml per .sql)
- displaying information about the currently selected model at the cursor position (if the there multiple models in the same file, changing the cursor position will change the model shown)
### Describe alternatives you've considered
The first idea I had was to move everything from the .yml into the .sql, but it seems that dbt doesn't support that. For example the model properties like columns: and desc: can not be defined inside a config macro in the .sql file.
### Who will benefit?
Users who work a lot with the .yml for editing descriptions, columns test
### Are you willing to submit PR?
- [X] Yes I am willing to submit a PR!
Guide de contribution
Ouvrir le guide de contribution
Évaluation
Cette issue n'a pas encore été évaluée.