Repository navigation
[2.0] Fixes #37256: Apply only Approved glossary terms from dbt meta - #37719
Conversation
get_tag_label() only checked that a glossary term exists, so dbt meta.openmetadata.glossary attached Draft, In Review, Rejected and Deprecated terms to tables and columns. Skip any term whose entityStatus is set and not Approved, with a warning; the rest of the asset's metadata is still ingested. (cherry picked from commit 4403dab)
…ort rule (cherry picked from commit e969c11)
(cherry picked from commit ab80fc0)
❌ PR checklist incompleteThis PR cannot be merged until the following are addressed on its linked issue:
The fields live on the linked issue in the Shipping project (open the issue → right sidebar → Projects). After you set them, re-run this check (or push a commit) — issue/project changes do not re-trigger it automatically. Maintainers can bypass this check by adding the |
Code Review ✅ Approved 🟡 Medium riskFiltering dbt glossary terms to Approved could omit useful draft or review terminology from ingested assets, leaving their metadata incomplete. Backport of the dbt ingestion fix that applies glossary terms from VerificationRules No rules evaluated Functional validation Not enabledAuto-approval Not enabledFor more verification details, comment OptionsDisplay: compact → Showing compact verification results. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
Describe your changes:
Fixes #37256
Backport of #37571 to
2.0: three commits cherry-picked with-x, applied cleanly. dbt ingestion now applies a glossary term frommeta.openmetadata.glossary(table and column level) only when itsentityStatusisApproved. Draft, In Review, Rejected, Deprecated and status-less terms are skipped with a warning, and the rest of the asset's metadata is still ingested. This pairs with the server-side Approved-only check backported in #37689, so dbt runs on 2.0 don't start failing once that check lands.Type of change:
High-level design:
N/A — small change, identical to #37571.
Tests:
Unit tests
ingestion/tests/unit/test_dbt.py:test_dbt_table_meta_glossary_applies_only_approved_terms,test_dbt_column_meta_glossary_applies_only_approved_terms).python -m pytest tests/unit/test_dbt.py tests/unit/utils/test_tag_utils.py -k "only_approved or glossary or TestTagUtils"→ 9 passed.ruff format --checkandruff checkpass on the changed files.Backend integration tests
Ingestion integration tests
Playwright (UI) tests
UI screen recording:
Not applicable — ingestion-only bug fix.
Checklist:
Fixes #<issue-number>above.REVIEW.mdwith no 🔴 findings.🤖 Generated with Claude Code