vscode-dbt-power-user
vscode-dbt-power-user copied to clipboard
Documentation Editor removes data-tests
Expected behavior
Documentation editor should handle data-tests properly
Actual behavior
The editor seems to have problem with the combination of data-tests and quote setting. When quote is present, the editor does not identify that there are tests present. And if a comment is edited and saved, the tests will be removed from yml file.
Steps To Reproduce
models:
- name: model_tests_works_in_editor
description: xx
columns:
- name: id
description: primary key
data_type: string
data_tests:
- not_null
- unique
- name: model_tests_does_not_work_in_editor
description: xx
columns:
- name: id
description: primary key
data_type: string
data_tests:
- not_null
- unique
quote: true
Log output/Screenshots
No response
Operating System
Windows 10
dbt version
1.8.5
dbt Adapter
dbt-databricks
dbt Power User version
0.47.2
Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!