AltimateAI / AltimateAI/vscode-dbt-power-user

"Children models" block empty when model has exposures

Ouverte
#802 0 commentaires 0 réactions 1 personne assignée Réclamée par @svipulrao98 Voir sur GitHub
bug
Langage dominant
JavaScript
Étoiles
585
Forks
121
Merge moyen
5 j 39 min
PR mergées (30 j)
4

Description

### Expected behavior

When a model is opened in VS Code and this model is linked to the exposures, the block "Children Models" shows a list of models (possibly also exposures?)

### Actual behavior

When a model is opened in VS Code and it is linked to the exposure, the block "Children Models" is empty and an error "Cannot read properties of undefined (reading '0')"

### Steps To Reproduce

1. Open dbt repository in VS Code
2. Open model that has exposures in a new tab
3. Open the extension "dbt Power User" in the sidebar
4. extend the tab "children models", if it is hidden

### Log output/Screenshots

![CleanShot 2024-01-03 at 12 47 17@2x](https://github.com/AltimateAI/vscode-dbt-power-user/assets/79406976/23d29cae-2779-45e6-a609-558483cc5d35)

![CleanShot 2024-01-03 at 12 46 26@2x](https://github.com/AltimateAI/vscode-dbt-power-user/assets/79406976/d748aa4c-43a1-4bc2-a121-0aeeb0366eb4)

![CleanShot 2024-01-03 at 12 51 52@2x](https://github.com/AltimateAI/vscode-dbt-power-user/assets/79406976/5b357da2-3a40-4366-bb85-68b8f50c148c)

### Operating System

Mac OS

### dbt version

1.7.4

### dbt Adapter

bigquery

### dbt Power User version

0.28.4

### Are you willing to submit PR?

- [ ] 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.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.