-
Notifications
You must be signed in to change notification settings - Fork 7
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
AP-4575: Add copy case page flows #5932
Conversation
9877d46
to
0dee58a
Compare
a6a5de5
to
26b334b
Compare
To store answer to question "Copy an application to your application?" inline with designs.
Add controller form and view to ask the user if they want to copy an existing application to this one.
Use deep_clonable. This is one option, amoeba being another.
Required and used as an example of using deep clone to copy nested associations.
Cover the conditional flow for copy case
Inline with conventions used for other controllers
Spec the additional validation whereby search only checks for provider specific case references.
Confirmed with design as users may want to go and lookup a reference on the application index page and this would allow them to go back and forth to the correct step.
An observation from outside the team... |
spec/requests/providers/copy_case_invitations_controller_spec.rb
Outdated
Show resolved
Hide resolved
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.
Looks good, a couple of observations from a linked-cases non-expert!
So that we can store the id of the application for copying from for use in both the search and confirmation pages withtout regard to session expiry edge cases, plus use the legal aid application reference in the check your answers page in line with design.
Yeah, I tried namespacing the controllers and views first and hit problems, will have another look. |
91f7e49
to
eb29620
Compare
Inline with current designs
This is done now. see commit |
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 👍
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 one comment
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
What
Add copy case feature
Link to story
The ability to copy case details from one application to another
is considered a prerequisite for the linking cases feature.
This branch adds the pages flows but does not do a full clone/copy of the necessary case details - see AP-4577 for that. Neither does it add the CYA page changes - see AP-4601 for that
Checklist
Before you ask people to review this PR:
bundle exec rake
git rebase main
.