Repository navigation
[2.1] Backport #38822, #38830 - #38868
Conversation
…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)
❌ PR checklist incompleteThis 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 |
Code Review ✅ Approved 🟡 Medium riskFetching 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: VerificationRules No rules evaluated Functional validation Not enabledAuto-approval Not enabledFor more verification details, comment OptionsDisplay: compact → Showing compact verification results. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
Backport of #38822 and #38830 to
2.1(clean cherry-picks, no conflicts).patch_custom_propertiesno longer drops existing custom property values (fixes SDK patch_custom_properties deletes existing custom property values #38820)Testing
tests/unit/topology/database/test_sas.py: 16 passed on this branchtest_ometa_custom_properties_api.pyis an integration test (needs a server) — left to CI🤖 Generated with Claude Code