Skip to content

[2.1] Backport #38822, #38830 - #38868

Merged
ulixius9 merged 2 commits into
2.1from
backport-2.1-38822-38830
Nov 27, 2026
Merged

ulixius9 merged 2 commits into
2.1from
backport-2.1-38822-38830

Conversation

@ulixius9

Copy link
Copy Markdown
Member

Backport of #38822 and #38830 to 2.1 (clean cherry-picks, no conflicts).

Testing

  • tests/unit/topology/database/test_sas.py: 16 passed on this branch
  • test_ometa_custom_properties_api.py is an integration test (needs a server) — left to CI

🤖 Generated with Claude Code

…38822)

patch_custom_properties fetched the entity without the extension field, so
it never saw the stored custom properties and PATCHed /extension with only
the new keys. The server then treated every other key as deleted, even with
force=False. Request the extension so the merge works.

(cherry picked from commit 9f02432)
…38830)

* Fixes 38827: Keep custom properties set outside SAS on a SAS run

The SAS connector refreshed its custom properties with a raw
'add /extension' PATCH, which replaces the whole extension and deletes
every property it did not send. Use patch_custom_properties, which
merges with the stored extension.

* Report a failed SAS custom-property update as a table error

patch_custom_properties swallows request errors and returns None, so
yield a StackTraceError instead of counting the table as a success. The
test's get_by_id mock now returns the extension only when it is asked
for, as the server does.

* Pass right=None to the SAS custom-property error Either

basedpyright requires every Either field to be passed explicitly.

(cherry picked from commit a556f71)
@ulixius9
ulixius9 requested a review from a team as a code owner November 26, 2026 14:03
@ulixius9
ulixius9 requested review from harshsoni2024 and removed request for a team November 26, 2026 14:03
@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 26, 2026 •

Copy link
Copy Markdown
Code Review ✅ Approved 🟡 Medium risk

Fetching stored extensions before merging changes persisted custom-property update behavior and could retain stale values across metadata updates.

Backports two fixes to the 2.1 branch: patch_custom_properties no longer drops existing custom property values, and the SAS connector keeps custom properties set outside SAS while reporting failed custom-property updates as table errors. 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 d3c70f8 into 2.1 Nov 27, 2026
45 of 46 checks passed
@ulixius9
ulixius9 deleted the backport-2.1-38822-38830 branch November 27, 2026 07:26
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.

1 participant