AltimateAI / vscode-dbt-power-user

This extension makes vscode seamlessly work with dbt™: Auto-complete, preview, column lineage, AI docs generation, health checks, cost estimation etc
https://www.altimate.ai
MIT License
440 stars 85 forks source link

Documentation editor adds tests to yml #1268

Closed smitsrr closed 2 weeks ago

smitsrr commented 2 months ago

Expected behavior

We converted our ymls to use the new data_tests: syntax that is expected in dbt 1.8, however, when running and saving documentation via the extension it re-adds the tests using the old syntax, which I must then remove.

Actual behavior

What is added to the documentation .yml file:

columns:
      - name: sfdc_user_id
        description: The unique identifier of the SFDC user
        data_tests:
          - not_null:
              severity: error
          - unique:
              severity: error
        data_type: varchar
        tests:
          - not_null
          - unique

Steps To Reproduce

go to model click documentation editor click 'sync with database' click 'save'

Log output/Screenshots

No response

Operating System

mac

dbt version

1.8.3

dbt Adapter

snowflake

dbt Power User version

Published 2020-08-18, 23:09:28 Last released 2024-06-26, 20:37:24 Last updated 2024-07-03, 11:25:38

Are you willing to submit PR?

anandgupta42 commented 2 months ago

We will pick it up soon @smitsrr .

anandgupta42 commented 1 month ago

@smitsrr, a fix was released in version 0.42.0. Could you please confirm?