Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

18226 update the condtions of showing reapply button #1498

Merged
merged 3 commits into from
Nov 28, 2023
Merged

18226 update the condtions of showing reapply button #1498

merged 3 commits into from
Nov 28, 2023

Conversation

eve-git
Copy link
Collaborator

@eve-git eve-git commented Nov 24, 2023

Issue #, if available:
bcgov/entity#18226

Description of changes:
The current conditions for displaying the reapply button are as follows:

The NR state is in ('CONDITIONAL', 'APPROVED').
The expiry date is equal or less than 14 days from now.
The expiry date is after the current date.
Typically, when the expiry date is reached (condition #3 not satisfy), a batch job updates the NR state to 'Expired,' making condition #1 unsatisfied and preventing the reapply button from showing up.

The expiration process involves setting the NR state to 'Expired' and removing the name from Solr conflict names. However, if the state hasn't been updated to 'Expired' by the batch job upon reaching the expiry date, the names remain in the conflict name list, affecting names cannot be used in other requests. In this case, I believe it is acceptable to allow users to reapply. Therefore, it may be unnecessary to include condition #3 above.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the namex license (Apache 2.0).

Copy link
Collaborator

@ozamani9gh ozamani9gh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks simple enough

Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@eve-git eve-git merged commit e4f5737 into bcgov:main Nov 28, 2023
@eve-git eve-git deleted the 18226 branch May 17, 2024 13:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants