-
Notifications
You must be signed in to change notification settings - Fork 0
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
Add rake task to set the status of expired registration exemptions #255
Conversation
From https://eaflood.atlassian.net/browse/RUBY-413 This adds a rake task and a service object to deal with setting the status of a registration exemption to expired when it is in an active status and the expire date is in the past. After talking about expiring on the day of expire or the day before, we have decided that the registration is considered expired after the date have passed, hence this include a fix on our logic for "not_expired" registrations too. One more thing part of this PR is the definition of the RegistrationExemption table name which allow us to use the AASM default defined scopes.
…for every expired registration
I would like to see https://eaflood.atlassian.net/browse/RUBY-455 get decided on as a priority before we approve and merge this. Essentially I disagree with the current thinking that an exemption is still ACTIVE on its expiry date, as this
So I'd like to see this bottomed out before add more code that depends on this decision. |
It totally makes sense. Will park this for now until the next session with the team. |
We discussed and agreed that the rules for "expired" and "not_expired" in this PR are good to go. We will work around the issue of EPR export by scheduling the job at the correct time for the live release. Open issue is around the overriding of the |
This is ready for review :) I didn't move the scope in the AASM file after all, I thought is better to keep it in the model
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Maybe we should hold off on merging until all the release prep is done though.
Merging this as the version that will go out with the release have already been tagged :) |
From https://eaflood.atlassian.net/browse/RUBY-413
This adds a rake task and a service object to deal with setting the status of a registration exemption to expired when it is in an active status and the expiry date is in the past.
After talking about expiring on the day of expiring or the day before, we have decided that the registration is considered expired after the date has passed, hence this include a fix on our logic for "not_expired" registrations too.
One more thing part of this PR is the definition of the RegistrationExemption table name which allows us to use the AASM default defined scopes.