Skip to content

Business logic to prevent multiple overlapping Strata Hotel Renewal Applications #31107

Closed

Description

@arlentees

User Stories

As a Host
I want the ability to only create a single Renewal Application for a Registration that is expiring within 60 days or has expired less than 1,095 days (3 x 365 days) ago
So that I will not mistakenly submit multiple Renewal Applications for the same Registration.

As a Host
I do not want to see a To Do item reminding me of an upcoming Registration expiration if I have already submitted a Renewal Application for that Registration
So that I am not prompted to perform an action that I have already taken.

As a Host
I do not want to see a To Do item reminding me of an upcoming Registration expiration if I previously submitted a Renewal Application for that Registration and it was declined
So that I am not prompted to perform an action that I have already taken.

As the System
I will allow a new Renewal Application to be created for a Registration only if no existing Renewal Application was created in the last 305 days (365 days minus 60 day pre-expiration renewal window)
So that the Host can only submit a single Renewal Application for a given Registration within the current Registration period.

Acceptance Criteria

  • Scenario: Prevent multiple overlapping renewals for an expiring registration

    • Given a Host attempts to create a Renewal Application for a Registration that is expiring within 60 days
    • When the system checks for existing Renewal Applications
    • Then the system should allow the creation of the Renewal Application only if no existing Renewal Application exists for that Registration
  • Scenario: Prevent multiple overlapping renewals for an expired registration

    • Given a Host attempts to create a Renewal Application for a Registration that has expired less than 1,095 days ago
    • When the system checks for existing Renewal Applications
    • Then the system should allow the creation of the Renewal Application only if no existing Renewal Application exists for that Registration
  • Scenario: Allow renewal application creation within the current registration period

    • Given a Host attempts to create a Renewal Application for a Registration
    • When the system checks for existing Renewal Applications created in the last 305 days
    • Then the system should allow the creation of the Renewal Application only if no existing Renewal Application was created in that time frame
  • Scenario: Prevent submission of multiple Renewal Applications

    • Given a Host has an existing Renewal Application for a Registration
    • When the Host attempts to create another Renewal Application for the same Registration
    • Then the system should prevent the creation of another Renewal Application
  • Scenario: No To Do item for submitted Renewal Applications

    • Given a Host has submitted a Renewal Application for a Registration
    • When the system generates To Do items for upcoming Registration expirations
    • Then the Host should not see a To Do item for that Registration
  • Scenario: No To Do item for declined Renewal Applications

    • Given a Host has previously submitted a Renewal Application for a Registration that was declined
    • When the system generates To Do items for upcoming Registration expirations
    • Then the Host should not see a To Do item for that Registration

Activity

  1. changed the title [-]Copy of Business logic to prevent multiple overlapping Host Renewal Applications[/-] [+]Copy of Business logic to prevent multiple overlapping Strata Hotel Renewal Applications[/+] on Oct 30, 2025
  2. changed the title [-]Copy of Business logic to prevent multiple overlapping Strata Hotel Renewal Applications[/-] [+]Business logic to prevent multiple overlapping Strata Hotel Renewal Applications[/+] on Oct 30, 2025
  3. victorc-bcgov commented on Dec 12, 2025

    @victorc-bcgov

    Passed BAA - All scenarios outlined here have been implemented as part of the work to realize Host and Strata Hotel renewals.

  4. HimaniTanwarGov commented on Dec 12, 2025

    @HimaniTanwarGov
    Collaborator

    Closed as Done and passed QA

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions