AltimateAI / AltimateAI/vscode-dbt-power-user

Show model information when inside .yml file

Aperta
#607 0 commenti 0 reazioni 1 assegnatario Rivendicata da @ralphstodomingo Vedi su GitHub
enhancement
Lingua principale
JavaScript
Stelle
585
Fork
121
Merge medio
5g 39m
PR unite (30g)
4

Descrizione

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

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.