Repository navigation
fix: UPS-RS task requester - restore data loss, study guard, watch channel lifecycle, cancel reason, poll deadline - #980
Merged
Conversation
…annel lifecycle, cancel reason, poll deadline
nroduit
added a commit
that referenced
this pull request
Nov 28, 2026
Follow-up of the pull requests #980, #981 and #982 on the AI tasks. - A parameter name or a coded value of ups:run --param is code or scheme:code; without a scheme it takes the one of the task instead of a designator built into the plugin - Command API 2.42 for the --param option, skill snapshots regenerated - Format the plugin module (spotless) - Document the parameters and the scheme of a catalog entry in ai-tasks.md - Tester notes: API 2.42, what ran against a live UPS-RS server Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
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.
Fixes for the UPS-RS task requester found while exercising it against a
DICOMweb origin end to end:
saves in
closeAdditionalWindow(), which the preference dialog calls onApply and on Close (there is no Cancel in Weasis);
resetToDefaultValues()used to empty the list, so "Restore" then closing the dialog persisted an
empty document and deleted every server. Restore now reloads the saved
document.
run(): a workitem of a different study no longer suppresses the Create.The origin is required to apply the ReferencedRequestSequence.StudyInstanceUID
matching key (PS3.4 Table CC.2.5-3), but the requestor now checks every
request item client-side as well.
watch(): the returned handle is typedCompletableFuture<WebSocket>andthe command closes the channel and silences the listener after the first
report or the timeout (PS3.18 section 11.13). The close and the report
append are mutually exclusive, extracted into a small
WatchGateso therace is testable.
cancel:--reasonis forwarded on the loaded-study path, as it alreadywas for an explicit URL.
watch --poll: the polling sleep is capped to the remaining timeout, so along
--pollcannot oversleep a short--timeout.Each fix carries a test that fails when the fix is reverted.