Skip to content

[2.0] Fixes #37256: Apply only Approved glossary terms from dbt meta - #37719

Merged
ulixius9 merged 3 commits into
2.0from
backport/37256-2.0
Nov 13, 2026
Merged

ulixius9 merged 3 commits into
2.0from
backport/37256-2.0

Conversation

@ulixius9

Copy link
Copy Markdown
Member

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 from meta.openmetadata.glossary (table and column level) only when its entityStatus is Approved. 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:

  • Bug fix

High-level design:

N/A — small change, identical to #37571.

Tests:

Unit tests

  • Includes the unit tests from Fixes 37256: Apply only Approved glossary terms from dbt meta #37571 (ingestion/tests/unit/test_dbt.py: test_dbt_table_meta_glossary_applies_only_approved_terms, test_dbt_column_meta_glossary_applies_only_approved_terms).
  • Run on this branch, with Python models regenerated from 2.0's schemas: 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 --check and ruff check pass on the changed files.

Backend integration tests

  • Not applicable (no backend API changes).

Ingestion integration tests

  • Not applicable (no connector source changes).

Playwright (UI) tests

  • Not applicable (no UI changes).

UI screen recording:

Not applicable — ingestion-only bug fix.

Checklist:

🤖 Generated with Claude Code

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)
@ulixius9
ulixius9 requested a review from a team as a code owner November 13, 2026 06:04
@ulixius9
ulixius9 requested review from Khairajani and removed request for a team November 13, 2026 06:04
@github-actions

Copy link
Copy Markdown
Contributor

❌ PR checklist incomplete

This PR cannot be merged until the following are addressed on its linked issue:

  • No GitHub issue is linked. Link an issue in the Development section of the PR (or add Fixes #12345 to the description). For a same-org cross-repo issue, add Fixes open-metadata/<repo>#123 to the description.

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 skip-pr-checks label.

@gitar-bot

gitar-bot Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Code Review ✅ Approved 🟡 Medium risk

Filtering 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 meta.openmetadata.glossary (table and column level) only when their entityStatus is Approved, skipping Draft, In Review, Rejected, Deprecated and status-less terms with a warning. 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

@ulixius9
ulixius9 merged commit 64279b3 into 2.0 Nov 13, 2026
66 of 68 checks passed
@ulixius9
ulixius9 deleted the backport/37256-2.0 branch November 13, 2026 12:36
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