vscode-dbt-power-user icon indicating copy to clipboard operation
vscode-dbt-power-user copied to clipboard

Documentation Editor removes data-tests

Open septponf opened this issue 1 year ago • 0 comments

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!

septponf avatar Oct 16 '24 08:10 septponf