Repository navigation
fix: don't report a write as failed when only the GUI update after the commit fails - #61
Merged
tabedzki merged 1 commit intoDec 1, 2026
Conversation
…e commit fails createRecording, CreateNewJob, RerunJob and RegisterPreParamList refresh their tables and show the success dialog inside the try that holds the inserts. If any of that threw after the commit, the catch reported a failed write to Slack, told the user nothing was created and re-enabled the button, though the rows were committed. For createRecording the files were already on cup, so a retry would register the recording twice. Each callback now notes the commit. A failure after it shows a warning that the write succeeded and only updating the GUI failed, sends nothing to Slack, and leaves the button as success does. Fixes #60 Assisted-by: ClaudeCode:claude-opus-5-5
vrrigs
force-pushed
the
t3/report-post-commit-failures
branch
from
December 1, 2026 21:16
536a96b to
869c695
Compare
tabedzki
marked this pull request as ready for review
December 1, 2026 21:58
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🤖 AI text below 🤖
Fixes #60
Stacked on #59 (which is on #58, which is on #57). Merge those first; GitHub retargets this one to
mainas each merges.Problem
In
createRecording,CreateNewJob,RerunJobandRegisterPreParamList, the work afterconn.commitTransactionruns in the sametryas the inserts: refreshing the tables, the success dialog and resetting the form. If any of it threw, thecatchtreated the write as failed. It reported a failure to Slack, said "Recording was not created" (or the job/steps equivalent) and re-enabled the button, though the rows were committed. ForcreateRecordingthe files were already moved to cup, so a retry would register the recording a second time.Found in the code review of #57–#59; it predates them.
Fix
committed = trueright after the commit.catchshows a warning that the write succeeded and only updating the GUI failed, resets the busy label, and returns. Nothing goes to Slack, and the button stays as it is after a success, so the same write can't be repeated by accident.cancelOpenTransaction, Slack, error dialog, button back on).registerSurgeryalready got the equivalent change in fix: ask before registering a recording whose surgery was not registered #58 (the figure is closed after thetry).Screenshots
What
createRecordingnow shows when the recording was committed but refreshing the tables failed (before: "Recording was not created" and a failure on Slack):Rendered in MATLAB R2023b by calling the PR's code with a stand-in figure, not on a rig. The dialog is the same
uiconfirmcall as in the PR, with an example id and error.Tests
checkcodeshows only the existingdatestr/nowwarnings, and theRecordingProcessJobGUIclass still loads.uvx prek run --all-filespasses.Not tested: a real post-commit failure through the GUI on a rig.
Assisted-by: ClaudeCode:claude-opus-5-5