-
Notifications
You must be signed in to change notification settings - Fork 19
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
CAVC Remand model & Controller #15351
Conversation
…com/department-of-veterans-affairs/caseflow into hschallhorn/15281-cavc-remand-model
Generated by 🚫 Danger |
Code Climate has analyzed commit 14addc1 and detected 0 issues on this pull request. View more on Code Climate. |
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.
Lots of minor suggestions.
…rtment-of-veterans-affairs/caseflow into kat/15281-cavc-remand-model
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.
Pioneering new workflow! Woohoo!
* WIP CAVC Remands Controller * Finalize CAVC Remands controller * Bugfix
Resolves #14795. Resolves CASEFLOW-65 ### Description Creates a new Post-dispatch actions area on the Case Details page which houses the Add Cavc Remand option. This option is only available to member of the `CavcLitigationSupport` org and is also hidden behind the `cavc_remand` feature toggle. Also creates the new Cavc Intake Form, which in conjunction with the work completed in #15351 and #15469 will allow Cavc litigation users to create a new Cavc appeal stream. ### Acceptance Criteria - [x] "+Add Cavc remand" button is behind `cavc_remand` feature toggle - [x] Only Cavc Litigation Support users can see the button - [ ] Start CAVC Remand Documentation to describe what cavc remand features caseflow supports (to be updated as more cavc functionality is added) - [x] Add CAVC Court Order Button to Case Details page of a Dispatched/Completed appeal that presents the form in a new top section - [x] Cavc Litigation Support user can add the following required fields: - [ ] court docket number - [ ] Attorney representation - [ ] Cavc judge - [ ] Decision type (remand, death dismissal, etc) - [ ] type of remand (JMR, JMPR) on the form (only if remand) - [ ] Court decision date - [ ] Judgement date - [ ] Mandate date - [ ] issues required to be decided on in the new appeal stream - [ ] instructions - [x] Confirmation alert appears with the following copy when the form is completed & submitted: "You have successfully created a CAVC Remand case This has generated a Send 90 Day Letter task in your team's queue" - [ ] Ensure users can copy and paste values from the cavc website without modifying data (see [here](#14795 (comment)) for how to get to the publicly available records) ### Testing Plan 1. Enable cavc_remand feature toggle 1. Find a dispatched appeal (search for vet 500000000) 1. Click "+ Add CAVC Remand" 1. Press submit and confirm validations 1. Confirm selecting "Death Dismissal" hides remand subtype 1. Fill out the form, keeping JMR selected 1. Deselect an issue 1. Press submit and confirm error message 1. Select all issues and press submit. 1. Confirm success message on case details of new appeal 1. Confirm case details shows correct information entered ### User Facing Changes - [ ] Screenshots of UI changes added to PR & Original Issue Workflow|UI ---|--- New button|<img width="1447" alt="Screen Shot 2020-11-17 at 4 29 21 PM" src="https://user-images.githubusercontent.com/45575454/99457467-07565c00-28f9-11eb-8185-a590650e414d.png"> Validations|<img width="917" alt="Screen Shot 2020-11-17 at 1 57 50 PM" src="https://user-images.githubusercontent.com/45575454/99457433-f60d4f80-28f8-11eb-9250-3f7ecd7dc8ea.png"><img width="915" alt="Screen Shot 2020-11-17 at 1 57 58 PM" src="https://user-images.githubusercontent.com/45575454/99457438-f86fa980-28f8-11eb-9a2c-fa2ebe3b2bb0.png"> Back end error|<img width="818" alt="Screen Shot 2020-11-17 at 3 54 27 PM" src="https://user-images.githubusercontent.com/45575454/99457452-00c7e480-28f9-11eb-9489-87eefd9796a6.png"> Success Alert and new appeal|<img width="1115" alt="Screen Shot 2020-11-17 at 5 21 14 PM" src="https://user-images.githubusercontent.com/45575454/99457662-53090580-28f9-11eb-89fa-02b65183df65.png"> ### Code Documentation Updates - [ ] Add or update code comments at the top of the class, module, and/or component. ### Storybook Story *For Frontend (Presentationa) Components* * [x] Add a [Storybook](https://github.com/department-of-veterans-affairs/caseflow/wiki/Documenting-React-Components-with-Storybook) file alongside the component file (e.g. create `MyComponent.stories.js` alongside `MyComponent.jsx`) * [x] Give it a title that reflects the component's location within the overall Caseflow hierarchy * [x] Write a separate story (within the same file) for each discrete variation of the component
Completes #15281
Description
Add the new model & Controller
Acceptance Criteria
Testing Plan
Code Documentation Updates
Database Changes
Only for Schema Changes
Caseflow::Migration
, especially when adding indexes (useadd_safe_index
)migrate:rollback
works as desired (change
supported functions)make docs
(after runningmake migrate
)