-
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
Support individual exemption deregistration #90
Support individual exemption deregistration #90
Conversation
https://eaflood.atlassian.net/browse/RUBY-63 Add functionality to allow back office users to deregister individual exemptions. The feature includes the following functionality: - users can choose to ‘cease’ or ‘revoke’ an exemption - users must provide a reason before deregistering - only active exemptions can be deregistered - only super agents can do this
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.
A handful of questions and suggestions - some of these we have talked about already (the CanCanCan stuff) but let me know what you think.
I've realised the old system includes an "exemption_deregister_date". I will add this column to the DB as well as set it via an AASM call back. |
@irisfaraway I had to add some code to the |
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.
Two minor comments. I am happy with the change to User
though.
The AWS stuff also seems a bit out of place on this branch – is this to fix the issue from the dependency update? If so I'd rather we did it as a separate PR, merged to master and then updated this branch. I think this will make the history a lot cleaner.
app/models/concerns/waste_exemptions_engine/can_deactivate_exemption.rb
Outdated
Show resolved
Hide resolved
The AWS related commits are simply the product of me trying to debug the S3 errors in Travis. Since the errors only showed up in Travis, I had to push the trial and error fixes. None of them worked so reverted the changes. Next time I'll do that debugging in a separate branch. Hopefully pull/105 will fix the problem as the errors aren't showing up there. |
@eminnett Oops, yes, can see they were getting reverted now (time for more coffee, I think). I'm OK with debugging happening on the same branch but I guess my preference is for removing the commits afterwards. Fingers crossed that 105 solves it though 🤞 |
No problem at all. |
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.
Provisional approval for when the CI passes! (Give me a nudge if the review is voided and I'll hit the button again.)
https://eaflood.atlassian.net/browse/RUBY-63
Add functionality to allow back office users to deregister individual exemptions. The feature includes the following functionality: