Repository navigation
[2.0] Fixes #36018: gate Profiler Settings Save when the stored config fetch fails - #36091
Conversation
…h fails (#36034) Backport to 2.0. A failed config load left the drawer filled with defaults and Save enabled; the PUT replaces the stored config whole, so one save wiped the table's profile query, column lists, partitioning and sample settings. Show the error with a Try Again action instead of the form and disable Save until the config loads.
❌ 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🔴 High risk · Gating Profiler Settings’ whole-config writes affects stored-data integrity; incorrect fetch-state handling could block valid edits or allow defaults to replace configuration. Gates the Profiler Settings Save button when the stored table profiler config fails to load on 2.0, hiding the form behind an error message with a Try Again action so defaults can no longer overwrite the saved config. No issues found. 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 #36034 to
2.0. Fixes #36018.Describe your changes:
On 2.0,
ProfilerSettingsModalonly shows a toast whengetTableProfilerConfigfails, then renders the form with its defaults and keeps Save enabled.putTableProfileConfigreplaces the storedtableProfilerConfigwhole, so a single Save after a transient fetch error wipes the table's profile query, include/exclude columns, partitioning and sample settings.2.0 still has the antd version of this modal, so #36034 does not cherry-pick; this ports the same behaviour by hand:
isFetchFailed);label.try-again, no new i18n keys) instead of the defaults-filled form;Type of change:
Tests
ProfilerSettingsModal.test.tsx— two new tests, both failing on unpatched 2.0:All 21 tests in the file pass; ESLint/Prettier clean on both files.
Checklist:
🤖 Generated with Claude Code


Confidence Score: 5/5
The PR appears safe to merge; no actionable issues were found.Summary
Prevents saving default profiler settings after the stored config fails to load.
Reviews (1) · Last reviewed commit: "Fixes #36018: gate Profiler Settings Sav..." · Reviewed by Greptile