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

Allow for multiple grace window rules in engine #913

Merged
merged 11 commits into from
Sep 29, 2020

Conversation

irisfaraway
Copy link
Member

https://eaflood.atlassian.net/browse/RUBY-1210

Currently we have the COVID extension in place in the engine, with an additional ruleset overriding it in the back office if a feature flag is on.

We want to be able to continue to apply the COVID extension to registrations which previously had it, while applying the regular rules to any registrations expiring after the extension, and also still having the option for the feature-flagged ruleset to take effect as well.

This also includes substantial refactoring of the ExpiryCheckService as it was doing way too many things at once and splitting it up will make this much easier.

https://eaflood.atlassian.net/browse/RUBY-1210

Currently we have the COVID extension in place in the engine, with an additional ruleset overriding it in the back office if a feature flag is on.

We want to be able to continue to apply the COVID extension to registrations which previously had it, while applying the regular rules to any registrations expiring after the extension, and also still having the option for the feature-flagged ruleset to take effect as well.

This also includes substantial refactoring of the ExpiryCheckService as it was doing way too many things at once and splitting it up will make this much easier.
Also stop it from returning 1970 for lower tier registrations. Unclear why this was the case but I'm sure it'll break something else and then we'll find out.
Working out the last day should be separate from checking if the registration has passed it or not.

This will also mean we don't need to override anything in the back office, just set permissions.
This entire service is in serious need of breaking up into smaller chunks but this will have to be a start.

Had to make some changes to the specs as well, mainly to deal with there being two different grace windows depending on what date the tests are run. A new helper class should manage this for us.
@irisfaraway irisfaraway added the enhancement New feature or request label Sep 22, 2020
@irisfaraway irisfaraway self-assigned this Sep 22, 2020
Was hoping we could do something with user permissions to only allow certain users to do the extended renewal in the back office, but for now I think it is complicating already complex changes. So switching to just use check if it is the back office or not.
This should deal with registrations that are lower tier, or fit the rules for upper tier regs that did and did not have the COVID extension applied.
This will mean we can entirely get rid of the overriding back office method.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant