Skip to content

Business-API - Cancel Review Record When Continuation In Filing is Deleted #25385

Open

Description

@TVWerdal

Description:

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:
image.png

Desired status for deleted continuation authorization reviews:
image.png

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

  1. user creates and submit Continuation Authorization
  2. user deletes Continuation Authorization (which is in Awaiting Review status) from BRD
  3. 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
  • Update/add unit tests

Activity

  1. added
    Entities Team
    on Jan 21, 2025
  2. janisrogers commented on Feb 3, 2026

    @janisrogers
    Collaborator

    Would it make sense to allow the deletion, but also send something to the review record to indicate that review is not needed?

  3. mstanton1 commented on Mar 2, 2026

    @mstanton1
    Collaborator

    @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.

  4. janisrogers commented on Mar 5, 2026

    @janisrogers
    Collaborator

    @mstanton1 Sure - You can create a design ticket and assign it to me.

  5. mstanton1 commented on Mar 5, 2026

    @mstanton1
    Collaborator

    Design is linked as a blocker for this ticket (#32657) and assigned to you @janisrogers

  6. vikas-gov commented on Mar 16, 2026

    @vikas-gov
    Collaborator

    Moving to refinement pipeline as Design is ready!

  7. 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
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

    Entities TeamPriority2

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions