Skip to content

Approve a Previously Declined Registration Application #23673

Closed

Description

@mbertucci

Incase the examiner makes a mistakek

📖 User Story
As an Examiner or Manager,
I want to approve an application that has been previously declined,
so that the application status is updated to "Approved," and a new Registration is created if no existing Registration is present.

Context:
This user story addresses scenarios where an Examiner wants to change the decision on an application that was previously declined. It ensures that the application’s status is updated, and a new Registration is created if no Registration currently exists for the application.

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:Decline an Already Approved Registration Application is handled in #23174
Note: Escalating to Registrar is handled in #23674

Button Behavior and Registration Impact

  • Application Button - Approve:
    When the Examiner clicks Approve on a previously declined application:
    • The application status changes to Approved.
    • A new entry is created in the Registration table for this application.
    • The Registration table is updated with a status of Active.
    • A record of this action is logged in the Filing History, capturing the Examiner’s name, date, time, and the status change.

📏 Business Rules

  • The system should validate if a Registration number already exists for the application before creating a new entry in the Registration table.
  • If the "Approve" button is clicked on an already approved application, the system should display an error message: "This application has already been approved, and a Registration number has been issued. No duplicate Registration number will be generated."
  • Modal dialogs must require user confirmation before any irreversible actions, such as approving a previously declined application.
  • The system must log every decision (approval, status change) with a timestamp in the Filing History for audit purposes.
  • All status changes must be recorded in the Filing History, including the Examiner’s name who made the change, the date, and the time.
  • Upon acceptance of a previously declined application, a new Registration is created, and the status in the Registration table must be updated to "Active."

🎭 Story Scenarios

Scenario 1: Approve a Previously Declined Application and Create Registration
Given the Examiner is on the application details page, and the application status is "Declined":
When the Examiner clicks the "Approve" button:
Then the application status changes to "Approved."
And a new entry is created in the Registration table with the status "Active."
And a record of the decision is logged in the Filing History with the Examiner’s name, date, and time.
And the application is moved out of the "Declined" filter and into the "Approved" filter.
And the system does not generate a new registration number if the Examiner clicks the "Approve" button more than once.

Scenario 2: Prevent Duplicate Registration for an Already Registered Application
Given the Examiner is on the application details page, and the application status is "Declined," and a Registration entry already exists:
When the Examiner clicks the "Approve" button:
Then the system displays a validation message: "A Registration already exists for this application. The system will not create a new Registration entry."
And the application status is updated to "Approved."
And the existing Registration remains unchanged.
And a record of the approval is logged in the Filing History with the Examiner’s name, date, and time.

Activity

  1. fionazhou-jsb commented on Oct 8, 2024

    @fionazhou-jsb

    @mbertucci is this just for user error when examiners accidently decline an application?

  2. fionazhou-jsb commented on Oct 9, 2024

    @fionazhou-jsb

    confirmed this is only for user error @mbertucci

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions