Skip to content

fix bug in Close Request action

Charlotte Hausman requested to merge fix-close-request into 2.8.5-DEVELOPMENT

Close Request should only appear if the Capability request is not sealed and has all versions in either an 'Error' or 'Failed' state. If a request is closable, but not already in Failed state, the request had a mix of 'Failed' and 'Error' versions. Therefore the request will be set to 'Cancelled' on close to maintain state consistency.

** Update: after discussion it was decided that the capability request state setter was missing conditions. A mix of 'Failed' and 'Error' states on component versions now also sets the request to 'Failed'

If the button shows and request closure is not possible, the endpoint will return the error to the system_messages field for display to the user as shown below. This should not be possible, but if it happens, the users will have an informative reason for the action's failure.

Screenshot_from_2024-09-13_15-18-41

Edited by Charlotte Hausman

Merge request reports