-
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
Schedule the registration exemptions expiry job to run daily #256
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.
From https://eaflood.atlassian.net/browse/RUBY-413 Add configuration and scheduling of the registration exemptions expiry job
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.
Just wondering – do we need a feature flag for this? Maybe unnecessary if we are planning to release it in the next round anyway (which would make sense).
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.
This also means I'll need to go in and update .env.example
and our tests to ensure they follow the same principle for the other jobs 😩 . But as there is no reason to be different in this case we might as well set the time to be what it will actually be unless there is a reason to be different.
@irisfaraway One for our dev meetings I think about how we define what needs a feature flag. But I'd like to keep them to a minimum. So I'm currently going with
In the case of this we want it running asap, and everything is good to go, so I don't think it needs a feature flag. |
Co-Authored-By: Alan Cruikshanks <alan.cruikshanks@gmail.com>
From https://eaflood.atlassian.net/browse/RUBY-413
Add configuration and scheduling of the registration exemptions expiry job