Skip to content

[2.0] Fixes #34662: stop bot bulk PUTs blanking fields the source doesn't send - #34671

Merged
pmbrull merged 3 commits into
2.0from
ulixius9/34662-backport-2.0
Oct 5, 2026
Merged

pmbrull merged 3 commits into
2.0from
ulixius9/34662-backport-2.0

Conversation

@ulixius9

@ulixius9 ulixius9 commented Oct 5, 2026

Copy link
Copy Markdown
Member

Describe your changes:

Fixes #34662

Backport of #34663 to 2.0. Bot bulk PUTs now keep stored values the source doesn't send. With overrideMetadata=true, an empty description/displayName no longer blanks the stored value. tableConstraints gets a bot guard, so a bot PUT without constraints (override on or off) no longer deletes them. Constraints on columns the source dropped are still cleaned up.

Differences from the main PR:

  • The certification guard is unchanged on 2.0. 2.0 predates Fixes 32792: let CreateTableRequest carry certification directly #32793, so a bot PUT never overwrites a stored certification and there's nothing to fix there. The EntityRepository conflict was resolved to 2.0's side.
  • test_overrideDoesNotRemoveCertificationWhenNoneSupplied is dropped, because CreateTableRequest can't carry a certification on 2.0.

Type of change:

  • Bug fix

Tests:

Checklist:

  • I have read the CONTRIBUTING document.
  • My PR is linked to a GitHub issue via Fixes #<issue-number> above.
  • I have added a test that covers the exact scenario we are fixing.

🤖 Generated with Claude Code

…t send

With overrideMetadata=true, an empty description or displayName and an
omitted certification overwrote stored values. tableConstraints had no
bot guard at all, so any bot PUT without constraints removed them,
override or not. Override now replaces a stored value only when the
source supplies one; constraints on dropped columns are still cleaned up.

(cherry picked from commit 9a6181c)
2.0 predates #32793, so CreateTableRequest cannot carry a certification
and a bot PUT already always preserves a stored one.
@ulixius9
ulixius9 requested a review from a team as a code owner October 5, 2026 12:54
@ulixius9 ulixius9 added safe to test Add this label to run secure Github workflows on PRs backend labels Oct 5, 2026
@github-actions

github-actions Bot commented Oct 5, 2026

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 Oct 5, 2026

Copy link
Copy Markdown
Code Review ✅ Approved

🔴 High risk · Bot bulk PUTs alter stored-value preservation for descriptions and table constraints.

Fixes bot bulk PUTs from blanking fields the source doesn't send. With overrideMetadata=true, empty description/displayName no longer blanks stored values, and tableConstraints gets a bot guard so PUTs without constraints no longer delete them. Constraints on dropped columns are still cleaned up. No issues found.

Review coverage

📋 Rules No rules evaluated

🧪 Functional validation Not enabled · Set up

🤖 Auto-approval Not enabled · Set up

Options

Display: compact → Counting what did not apply, without listing it.

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 enabled auto-merge (squash) October 5, 2026 12:58
@pmbrull
pmbrull disabled auto-merge October 5, 2026 13:52
@pmbrull
pmbrull merged commit 8c67094 into 2.0 Oct 5, 2026
146 of 164 checks passed
@pmbrull
pmbrull deleted the ulixius9/34662-backport-2.0 branch October 5, 2026 13:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend 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.

2 participants