AltimateAI / AltimateAI/vscode-dbt-power-user
Show model information when inside .yml file
- 主要言語
- JavaScript
- スター
- 585
- フォーク
- 121
- 平均マージ
- 5日 39分
- マージ済み PR(30日)
- 4
説明
### 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!
コントリビューションガイド
評価
この issue はまだ評価されていません。