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

Support individual exemption deregistration #90

Merged
merged 38 commits into from
Mar 29, 2019
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
0a5a872
Support individual exemption deregistration
Mar 15, 2019
8f10837
Merge branch 'master' into support-individual-exemption-deregistration
Mar 18, 2019
b8d2428
Merge branch 'master' into support-individual-exemption-deregistration
Mar 19, 2019
d0aaba8
Merge branch 'master' into support-individual-exemption-deregistration
Mar 20, 2019
55dd74d
Merge branch 'master' into support-individual-exemption-deregistration
Mar 21, 2019
cd7ee78
Merge branch 'master' into support-individual-exemption-deregistration
Mar 22, 2019
fffa6a6
Merge branch 'master' into support-individual-exemption-deregistration
Mar 22, 2019
e153844
Bump dependency versions
Mar 22, 2019
2d53006
Add input SCSS partial from the front-office app
Mar 22, 2019
495e387
Add CanDeactivateExemption state machine concern
Mar 22, 2019
33c046e
Add deregistration service
Mar 22, 2019
25117de
Add translation files
Mar 22, 2019
f6674b1
Add validator test shared exampled from the WEX engine
Mar 22, 2019
880ee5f
Add form validators
Mar 22, 2019
a3445d7
Add test helper modules
Mar 22, 2019
0255b39
Add DeregisterExemptionsForm
Mar 22, 2019
0fd4b8f
Update views to support the deregister exemptions journey
Mar 22, 2019
fdecb0c
Add routes, controller, and request tests
Mar 22, 2019
1d825cf
Refactor DeregisterExemptionsController
Mar 22, 2019
343453f
Fix typo
Mar 22, 2019
9e32bdc
Merge branch 'master' into support-individual-exemption-deregistration
Mar 25, 2019
8bdd95e
Merge branch 'master' into support-individual-exemption-deregistration
Mar 26, 2019
b580edd
Merge branch 'master' into support-individual-exemption-deregistration
Mar 26, 2019
a4259f9
Fix typos
Mar 26, 2019
91d495d
Refactor DeregisterExemptionsForm spec
Mar 26, 2019
1e73e82
Refactor deregistration controller and form behaviour
Mar 26, 2019
ed42b41
Add the ability to call can? and cannot? on the User
Mar 26, 2019
8c673bf
Refactor deregistration to use CanCan abilities
Mar 26, 2019
a7a8666
Set deregistered_on when deregistration takes place
Mar 26, 2019
5782a39
Merge branch 'master' into support-individual-exemption-deregistration
Mar 27, 2019
3e8554f
Merge branch 'master' into support-individual-exemption-deregistration
Mar 28, 2019
216f1d3
Explicitly declare the S3 endpoint
Mar 28, 2019
8f3a445
Set AWS region ENV var in Travis config
Mar 28, 2019
3ab1f0e
Remove Travis AWS region ENV var
Mar 29, 2019
21e29c8
Fix typo
Mar 29, 2019
3c6532f
Rename AASM callback in CanDeactivateExemption
Mar 29, 2019
8ea36c0
Merge branch 'master' into support-individual-exemption-deregistration
Mar 29, 2019
97e9341
Merge branch 'master' into support-individual-exemption-deregistration
Mar 29, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions config/locales/forms/deregister_exemptions.en.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
en:
deregister_exemptions:
new:
title: "Deregister Exemptions"
heading: "Deregister Exemption %{exemption_code} for Registration %{registration_reference}"
labels:
state_transition: "Deregistration Action"
state_transition_hint: "The action sets the state of the exemption regsitration."
eminnett marked this conversation as resolved.
Show resolved Hide resolved
message: "Deregistration Reason"
message_hint: "(Maximum: 500 characters) The message is stored in the database as a log of why this exemption is being deregistered."
options:
revoke: "Revoke"
cease: "Cease"
approve_button: "Deregister Exemption"
activemodel:
errors:
models:
deregister_exemptions_form: &deregister_exemptions_form
attributes:
message:
blank: "Please include a message explaining why this exemption is being deregistered"
too_long: "The message can not exceed 500 characters in length"
state_transition:
blank: "You must select one of the available deregistration actions"
inclusion: "You must select one of the available deregistration actions"
test/deregistration_message_validatable: *deregister_exemptions_form
test/deregistration_state_transition_validatable: *deregister_exemptions_form
1 change: 1 addition & 0 deletions config/locales/partials/resource_exemptions_list.en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ en:
registered_on: "Registered"
expires_on: "Expires"
state: "Status"
action: "Action"