AltimateAI / AltimateAI/vscode-dbt-power-user

Show model information when inside .yml file

Abierto
#607 0 comentarios 0 reacciones 1 asignado Reclamado por @ralphstodomingo Ver en GitHub
enhancement
Lenguaje dominante
JavaScript
Estrellas
585
Forks
121
Merge medio
5 d 39 min
PR fusionados (30 d)
4

Descripción

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

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.