AltimateAI / AltimateAI/vscode-dbt-power-user

New columns added to bottom of yaml file instead of in order

Open
#1,542 0 comments 1 reaction 0 assignees View on GitHub
bug
Dominant language
JavaScript
Stars
585
Forks
121
Avg merge
5d 39m
Merged PRs (30d)
4

Description

### Expected behavior

When saving in the documentation editor to an existing yaml file, I expected that the columns would be in the order they're stored in the database.

### Actual behavior

Instead, new columns are appended to the bottom of yaml file.

### Steps To Reproduce

1. Have an existing schema.yaml for a dbt model
2. Add a column to the middle of the model
3. Run model
4. In the documentation editor, sync with database
5. Save to the yaml file

### Log output/Screenshots

_No response_

### Operating System

OS Sequoia 15.1.1

### dbt version

1.8.7

### dbt Adapter

bigquery

### dbt Power User version

v0.50.5

### Are you willing to submit PR?

- [X] Yes I am willing to submit a PR!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.