bcgov / entity

ServiceBC Registry Team working on Legal Entities
Apache License 2.0
23 stars 58 forks source link

Suspend or Cancel a Registration #23174

Open mbertucci opened 1 month ago

mbertucci commented 1 month ago

đź“– User Story
As an Examiner or Manager,
I want to decline an application that has already been approved,
so that the Registration status is updated or the Registration is canceled, and the system accurately reflects the new status of the application and registration.

Context:
This user story handles scenarios where an Examiner needs to decline an application that was previously approved. In such cases, the story ensures that the system provides options for canceling or suspending the existing Registration and records the changes in both the application and registration statuses.

Note: The "Issue Certificate" functionality is out of scope for this story and will be addressed in a separate user story #21685

Note: Initial Approval or rejection of applications without existing registrations is handled in user story #22187. Note: Approve a Previously Declined Registration Application is handled in #23673 Note: Escalating to Registrar is handled in #23674

Declining an Application with an Existing Registration

đź“Ź Business Rules

🎭 Story Scenarios

Scenario 1: Decline an Already Approved Application and Cancel Registration
Given the Examiner is on the application details page, and the application status is "Approved":
When the Examiner clicks the "Decline" button:
Then a modal dialog appears asking if the Examiner would like to Cancel or Suspend the existing Registration.
And the Examiner selects Cancel.
Then the application status changes to "Declined."
And the existing Registration status changes to "Canceled."
And a record of the action is logged in the Filing History with the Examiner’s name, date, and time. And the application status is reflected and visible in the Examiner Dashboard

Scenario 2: Decline an Already Approved Application and Suspend Registration
Given the Examiner is on the application details page, and the application status is "Approved":
When the Examiner clicks the "Decline" button:
Then a modal dialog appears asking if the Examiner would like to Cancel or Suspend the existing Registration.
And the Examiner selects Suspend.
Then the application status changes to "Declined."
And the existing Registration status changes to "Suspended."
And a record of the action is logged in the Filing History with the Examiner’s name, date, and time. And the application status is reflected and visible in the Examiner Dashboard

fionazhou-jsb commented 5 days ago

@mbertucci I talked to @stcepeda about the flow. There are 2 separate processes we need to manage - application process (from application submitted to decision made) and registration process (active, suspend, cancel, etc.). If we cancel/suspend a registration, having "approved" as application status does not make sense but "decline" does not reflect the true status either.

However, we also need to consider what if examiners accidently click decline/approve and how we can revert that.