AltimateAI / AltimateAI/vscode-dbt-power-user

Show model information when inside .yml file

Đang mở
#607 0 bình luận 0 reaction 1 người được giao Được @ralphstodomingo nhận Xem trên GitHub
enhancement
Ngôn ngữ chính
JavaScript
Star
585
Fork
121
Merge trung bình
5 ngày 39 phút
Pull request đã merge (30 ngày)
4

Mô tả

### 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!

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.