Skip to content

Fixes #37256: dbt applies only Approved glossary terms from dbt meta - #37435

Closed
Vamsi-klu wants to merge 1 commit into
open-metadata:mainfrom
Vamsi-klu:fix/37256-dbt-approved-glossary-terms
Closed

Vamsi-klu wants to merge 1 commit into
open-metadata:mainfrom
Vamsi-klu:fix/37256-dbt-approved-glossary-terms

Conversation

@Vamsi-klu

Copy link
Copy Markdown
Contributor

get_tag_label checked only that a glossary term exists, so Draft, In Review, Rejected and Deprecated terms from meta.openmetadata.glossary were applied to tables and columns.

The glossary branch now skips a term whose entityStatus is anything other than Approved, and logs a warning. The term is already fetched, so this adds no API call. A missing entityStatus, from a server that predates the field, is still applied so version skew cannot silently drop every glossary label. The dbt call sites name the table or column each skipped term was left off. Tags, tier, owners and descriptions on the same asset are unaffected.

Describe your changes:

Fixes #

I worked on ... because ...

Type of change:

  • Bug fix
  • Improvement
  • New feature
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation

High-level design:

N/A — small change.

Tests:

Use cases covered

Unit tests

Backend integration tests

Ingestion integration tests

Playwright (UI) tests

Manual testing performed

UI screen recording:

Checklist:

  • I have read the CONTRIBUTING document.
  • My PR title is Fixes <issue-number>: <short explanation>
  • My PR is linked to a GitHub issue via Fixes #<issue-number> above.
  • I have commented on my code, particularly in hard-to-understand areas.
  • For JSON Schema changes: I updated the migration scripts or explained why it is not needed.
  • For a UI feature or feature task: as part of PR creation, I ran the PR build in Docker with sample data and embedded a verified GitHub-hosted recording plus build/health evidence above (or explained why this requirement is not applicable).
  • I have added tests (unit / integration / Playwright as applicable) and listed them above.
  • Self-review: I reviewed the final diff against REVIEW.md (the pr-checklist skill runs it) and fixed every 🔴 finding, or answered it on the line below.
  • Decision check: if this PR decides something the next contributor could undo — a schema field, REST path or format another component or repo must agree with, a new default or limit, an ordering that must hold, or a rule stated only in this description — it adds a record under docs/decisions/ (see its README.md). This description is gone from git log after the squash-merge.

…rom dbt meta

get_tag_label checked only that a glossary term exists, so Draft, In
Review, Rejected and Deprecated terms from meta.openmetadata.glossary
were applied to tables and columns.

The glossary branch now skips a term whose entityStatus is anything other
than Approved, and logs a warning. The term is already fetched, so this
adds no API call. A missing entityStatus, from a server that predates the
field, is still applied so version skew cannot silently drop every
glossary label. The dbt call sites name the table or column each skipped
term was left off. Tags, tier, owners and descriptions on the same asset
are unaffected.
@Vamsi-klu
Vamsi-klu requested a review from a team as a code owner November 9, 2026 17:34
@gitar-bot

gitar-bot Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Code Review ✅ Approved

🟡 Medium risk · Filtering dbt glossary labels by Approved status may omit intended asset associations when a term’s status is stale or misreported.

Glossary terms applied from dbt meta.openmetadata.glossary are now filtered to Approved status only, so Draft, In Review, Rejected and Deprecated terms are skipped with a warning naming the affected table or column. Terms without an entityStatus (older servers) are still applied. No issues found.

Verification

Rules No rules evaluated

Functional validation Not enabled

Set up

Auto-approval Not enabled

Set up

For more verification details, comment gitar display:verbose.

Options

Display: compact → Showing compact verification results.

Comment with these commands to change the behavior for this request:

Compact
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source

@akashverma0786

Copy link
Copy Markdown
Collaborator

Already fixed in #37571

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants