Skip to content

Fixes #28505: replace tags when overriding metadata - #32496

Merged
IceS2 merged 1 commit into
mainfrom
oss-override-metadata-tag-behav
Sep 4, 2026
Merged

IceS2 merged 1 commit into
mainfrom
oss-override-metadata-tag-behav

Conversation

@IceS2

@IceS2 IceS2 commented Sep 2, 2026

Copy link
Copy Markdown
Collaborator

Describe your changes:

Fixes #28505

Honor overrideMetadata when a bot bulk PUT explicitly supplies tags. Explicit tags now replace existing tags instead of being merged, while omitted tags continue to preserve curated metadata.

Type of change:

  • Bug fix

High-level design:

N/A — small change.

Tests:

Use cases covered

  • Override replaces a mutually exclusive table tag without returning HTTP 400.
  • Override replaces a mutually exclusive column tag.
  • Override preserves existing tags when the request omits tags.

Backend integration tests

  • Added integration coverage in BulkOverrideMetadataIT.

Ingestion integration tests

  • Not applicable; no ingestion code changed.

Playwright (UI) tests

  • Not applicable; no UI changes.

Manual testing performed

Ran a custom database metadata ingestion against a local stack with Override Metadata enabled. Replaced the connector tag manually with another mutually exclusive tag, reran ingestion, and verified the connector tag replaced it without HTTP 400.

UI screen recording / screenshots:

Not applicable.

Checklist:

  • My PR title is Fixes <issue-number>: <short explanation>.
  • My PR is linked to a GitHub issue via Fixes #<issue-number> above.
  • I have added tests and listed them above.
  • I have added a test that covers the exact scenario being fixed.

Copilot AI lite review requested due to automatic review settings September 2, 2026 17:09
@IceS2
IceS2 requested a review from a team as a code owner September 2, 2026 17:09
@github-actions

github-actions Bot commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

❌ PR checklist incomplete

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

@github-actions github-actions Bot added Ingestion safe to test Add this label to run secure Github workflows on PRs labels Sep 2, 2026
@gitar-bot

gitar-bot Bot commented Sep 2, 2026

Copy link
Copy Markdown
Code Review ✅ Approved

Fixes tag replacement behavior when overrideMetadata is enabled: explicit tags now replace existing tags instead of being merged, while omitted tags continue to preserve curated metadata. Integration tests cover mutually exclusive tag scenarios and tag preservation. No issues found.

Options

Display: compact → Showing less information.

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

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The change is targeted to the reported root cause, preserves the “omitted fields don’t clobber curated metadata” behavior, and includes meaningful integration tests that would fail under the prior merging logic.

Pull request overview

This PR updates the backend tag update semantics for bulk PUT operations when overrideMetadata=true, so that explicitly provided tags replace existing tags (avoiding mutually-exclusive conflicts), while omitted tags continue to preserve curated tag state. It also adds integration coverage to prevent regressions.

Changes:

  • Adjusted EntityRepository.updateTags() to treat a bulk PUT with overrideMetadata=true and non-empty tags as a replace operation (instead of merge).
  • Added integration tests in BulkOverrideMetadataIT covering table/column mutually-exclusive tag replacement and the “tags omitted → preserve” behavior.
  • Updated the table fetch helper in the test to request columns,tags fields for assertions.
File summaries
File Description
openmetadata-service/src/main/java/org/openmetadata/service/jdbi3/EntityRepository.java Changes bulk PUT tag handling under overrideMetadata to replace (not merge) when tags are explicitly supplied, preventing mutually-exclusive tag conflicts.
openmetadata-integration-tests/src/test/java/org/openmetadata/it/tests/BulkOverrideMetadataIT.java Adds regression coverage ensuring override runs replace mutually exclusive tags for tables/columns and preserve tags when omitted.
Review details
  • Files reviewed: 2/2 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@github-actions

github-actions Bot commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

✅ Playwright Results — workflow succeeded

Validated commit 3d33f252db9a0c93c7fcafc74804b40519531d19 in Playwright run 33659308070, attempt 1.

✅ 557 passed · ❌ 0 failed · 🟡 0 flaky · ⏭️ 0 skipped · 🧰 0 lifecycle flaky

Performance

Blocking targets: ✅ met · Optimization targets: 🟡 in progress

Shard-job maxima below are not the full workflow wall time; the linked run includes build, fixture, planning, and reporting.

🕒 Full workflow signal wall (to summary) 55m 30s

⏱️ Max setup 4m 55s · max shard execution 18m 13s · max shard-job elapsed before upload 22m 19s · reporting 5s

🌐 215.05 requests/attempt · 2.82 app boots/UI scenario · 12.72% common-shard skew

Optimization targets still in progress:

  • Browser traffic was 215.05 requests per attempt (convergence target: fewer than 200).
  • Application boot ratio was 2.82 per UI scenario (1628 boots / 578 scenarios; convergence target: at most 1).
Shard Passed Failed Flaky Skipped Lifecycle failed Lifecycle flaky
✅ Shard chromium-01 133 0 0 0 0 0
✅ Shard chromium-02 140 0 0 0 0 0
✅ Shard chromium-03 126 0 0 0 0 0
✅ Shard data-asset-rules-01 65 0 0 0 0 0
✅ Shard domain-isolation-01 16 0 0 0 0 0
✅ Shard global-state-01 34 0 0 0 0 0
✅ Shard ingestion-01 1 0 0 0 0 0
✅ Shard reindex-01 2 0 0 0 0 0
✅ Shard search-01 11 0 0 0 0 0
✅ Shard search-rbac-01 29 0 0 0 0 0

📦 Download artifacts

How to debug locally
# Download playwright-test-results-<shard> artifact and unzip
npx playwright show-trace path/to/trace.zip    # view trace

@IceS2
IceS2 enabled auto-merge September 3, 2026 06:28
@IceS2
IceS2 added this pull request to the merge queue Sep 3, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Sep 3, 2026
@github-actions

github-actions Bot commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

🚦 Removed from the merge queue — failed_checks (2026-09-03T22:12:57Z)

Blocked the queue: playwright-summary

@IceS2
IceS2 added this pull request to the merge queue Sep 4, 2026
Merged via the queue into main with commit 17c4b9b Sep 4, 2026
112 of 113 checks passed
@IceS2
IceS2 deleted the oss-override-metadata-tag-behav branch September 4, 2026 22:18

This branch was previously deployed

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

Labels

Ingestion safe to test Add this label to run secure Github workflows on PRs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Override Metadata appends tags instead of replacing them; mutually exclusive tags cause HTTP 400 on agent run

3 participants