Skip to content

A failed or skipped surgery registration still moves and registers the recording #56

Done

Description

@tabedzki

🤖 AI text below 🤖

Follow-up to #50 / #51.

Problem
When "Add surgery & insertion device if missing ?" is checked and the surgery insert fails:

  • registerSurgery shows "Surgery data could not be registered" and closes the dialog, but does not call notifySlackJobFailure.
  • addSurgeryData returns after uiwait whether or not the surgery was saved. createRecording (line ~114) never checks, so it goes on to move the files to cup (ROBOCOPY /MOV) and register the recording without a surgery.

The same happens when the user closes the surgery dialog without registering.

Decision
A missing surgery does not block the recording: users often don't have the surgery details (as in #50). The operator is asked instead (#58). Either way:

  • Report a failed surgery insert to Slack.
  • Make the outcome explicit. Either stop before copyRecording when the surgery is still missing, or tell the user the recording is being registered without one.

Activity

  1. added 2 commits that reference this issue on Dec 1, 2026
    f3144e1
    ed3e04a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions