You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Business-API - Cancel Review Record When Continuation In Filing is Deleted #25385
When a user deletes a Continuation In filing from the BRD (while it is in AWAITING_REVIEW or DRAFT status), the linked Review record remains in AWAITING_REVIEW status. This causes the filing to appear on the staff review dashboard even though the filing no longer exists, potentially causing staff to action a review that is no longer required.
To fix this, the status should be changed to "Cancelled".
Example of a continuation authorization reviews that show as Awaiting Review even though the continuation authorization was deleted:
Desired status for deleted continuation authorization reviews:
User Story
None at this time.
Impact
Staff may review a deleted (cancelled) continuation authorization.
Staff do not see the actual status of the continuation review.
Chance of Occurring
Probably low: I expect that few users will submit a Continuation Authorization then delete it.
Pre-Conditions
See Change of Occurring above.
Steps to Reproduce
user creates and submit Continuation Authorization
user deletes Continuation Authorization (which is in Awaiting Review status) from BRD
staff see this Continuation Authorization on the staff dashboard
Actual Results
The continuation authorization review is displayed as "Awaiting Review".
Expected Behaviour
The continuation authorization review should appear as "Cancelled".
Screenshots
See description above.
Root Cause Analysis
Unknown without investigation.
To Do:
Add CANCELLED status to Filing and Review model
Create an migration script to add CANCELLED to the ReviewStatus enum in the database
Add CANCELLED to the status exemption list in the receive_before_change SQLAlchemy event listener so it doesn't get overwritten to DRAFT on save
Create a new PATCH endpoint to update the filing and review status to CANCELLED
Add validation to guard against invalid cancellation state transitions
@janisrogers that suggestion makes more sense. If a user no longer needs to continue in they should be able to cancel their action and save the staff's time. Do you or @forgeuxGH5 have capacity to look at design? I can create and link a design ticket.
changed the title [-]Legal-api - Continuation In can be deleted after Review Record created[/-][+]Business-API - Cancel Review Record When Continuation In Filing is Deleted[/+]on Mar 16, 2026
Activity
janisrogers commentedon Feb 3, 2026
Would it make sense to allow the deletion, but also send something to the review record to indicate that review is not needed?
mstanton1 commentedon Mar 2, 2026
@janisrogers that suggestion makes more sense. If a user no longer needs to continue in they should be able to cancel their action and save the staff's time. Do you or @forgeuxGH5 have capacity to look at design? I can create and link a design ticket.
janisrogers commentedon Mar 5, 2026
@mstanton1 Sure - You can create a design ticket and assign it to me.
mstanton1 commentedon Mar 5, 2026
Design is linked as a blocker for this ticket (#32657) and assigned to you @janisrogers
vikas-gov commentedon Mar 16, 2026
Moving to refinement pipeline as Design is ready!
[-]Legal-api - Continuation In can be deleted after Review Record created[/-][+]Business-API - Cancel Review Record When Continuation In Filing is Deleted[/+]