bcgov / bcgov/STRR

Business rules to determine if a Registration is eligible for Renewal

Open
#1,248 4 comments 0 reactions 2 assignees Claimed by @arlentees View on GitHub
STR
Dominant language
Python
Stars
2
Forks
22
Avg merge
2d 35m
Merged PRs (30d)
11

Description

### User Stories

As the System
I want to designate a Registration as "eligible" for renewal if the Registration has an Active status and the expiry date for the Registration is less than 40 days in the future
So that the User can submit a renewal application for an active Registration that will soon expire in a timely manner.

As the System
I want to designate a Registration as "eligible" for renewal if the Registration has an Suspended status and the expiry date for the Registration is less than 40 days in the future
So that the User can submit a renewal application for an suspended Registration that will soon expire in a timely manner.

As the System
I want to designate a Registration as "eligible" for renewal if the Registration has an Expired status and the expiry date was less than 1,095 days (3 x 365 days) in the past
So that the User can submit a renewal application for an already expired Registration.

As the System
I want to prevent a Host from beginning a renewal process if the Registration they have selected is not eligible
So that the Host can be informed that the prior Registration can not be renewed and that a brand new Application must be submitted.

As the User
I want the ability to start a renewal process for a Registration that is eligible for renewal
So that I can continue my short-term hosting activities without disruption.

## Acceptance Criteria

- [x] **Scenario: Registration eligible for renewal with Active status**
- Given a Registration with an Active status
- And the expiry date is less than 40 days in the future
- When the system checks the Registration
- Then the Registration should be designated as "eligible" for renewal

- [x] **Scenario: Registration eligible for renewal with Suspended status**
- Given a Registration with a Suspended status
- And the expiry date is less than 40 days in the future
- When the system checks the Registration
- Then the Registration should be designated as "eligible" for renewal

- [x] **Scenario: Registration eligible for renewal with Expired status**
- Given a Registration with an Expired status
- And the expiry date was less than 1,095 days in the past
- When the system checks the Registration
- Then the Registration should be designated as "eligible" for renewal

- [x] **Scenario: Host prevented from renewing ineligible Registration**
- Given a Registration that is not eligible for renewal
- When the Host attempts to start the renewal process
- Then the system should prevent the renewal process
- And the Host should be informed that a new Application must be submitted

- [x] **Scenario: User starts renewal process for eligible Registration**
- Given a Registration that is eligible for renewal
- When the User initiates the renewal process
- Then the renewal process should start successfully
- And the User should be able to continue their short-term hosting activities without disruption

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.