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

Remove claim as a form argument #2854

Merged
merged 2 commits into from
Jun 14, 2024
Merged

Conversation

rjlynch
Copy link
Contributor

@rjlynch rjlynch commented Jun 14, 2024

Now the forms no longer reference the current claim we can remove it as
an argument.
Of note we've had to hack the reminders form a bit. The reminders
controller passes in the reminder to the form as the claim argument.
We've removed the "current_data_object" method as it's too much
abstraction and added some methods to the reminder forms to still let
them work with the claim, which is really a reminder. The reminders
forms probably shouldn't share a base class with the usual forms but
unpicking that is a future exercise. These hacks will hopefully be
addressed in https://dfedigital.atlassian.net.mcas.ms/browse/CAPT-1719

A lot of files changed but most of them are just specs that needed updating

@rjlynch rjlynch changed the title Remove claim as a form argument WIP - Remove claim as a form argument Jun 14, 2024
@rjlynch rjlynch changed the title WIP - Remove claim as a form argument Remove claim as a form argument Jun 14, 2024
@rjlynch rjlynch force-pushed the CAPT-1724/remomve-claim-from-form branch from eccf943 to e369617 Compare June 14, 2024 13:40
rjlynch added 2 commits June 14, 2024 16:27
Now the forms no longer reference the current claim we can remove it as
an argument.
Of note we've had to hack the reminders form a bit. The reminders
controller passes in the reminder to the form as the claim argument.
We've removed the "current_data_object" method as it's too much
abstraction and added some methods to the reminder forms to still let
them work with the claim, which is really a reminder. The reminders
forms probably shouldn't share a base class with the usual forms but
unpicking that is a future exercise. These hacks will hopefully be
addressed in https://dfedigital.atlassian.net.mcas.ms/browse/CAPT-1719
The reminders forms work with a reminder not a claim, so we want to
update the arguments to make this clear.
The reminders forms likely shouldn't share the same base class as the
answers forms but changing this is outside of the scope of this rather
large pr!
@rjlynch rjlynch force-pushed the CAPT-1724/remomve-claim-from-form branch from e369617 to 8c9836b Compare June 14, 2024 15:27
@rjlynch rjlynch merged commit 7bcf8ba into master Jun 14, 2024
15 checks passed
@rjlynch rjlynch deleted the CAPT-1724/remomve-claim-from-form branch June 14, 2024 15:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants