-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prioritize AOD and CAVC cases during Bulk Assignment (#15125)
Resolves #14781 ### Description Prioritize associated cases before bulk assigning tasks. ### Acceptance Criteria - [ ] Code compiles correctly Cases are prioritized in the following order for Bulk Assign: 1. CAVC AOD Cases 2. AOD Cases 3. CAVC Cases 4. Regular appeal stream ### Testing Plan (See #14501, #14510, and #14523 for reference.) 1. Make BVATWARNER an admin so that the bulk "Assign tasks" button appears ```ruby OrganizationsUser.make_user_admin(User.find_by(css_id: "BVATWARNER"), HearingsManagement.singleton) ``` 1. Sign in as BVATWARNER and go to `/organizations/hearings-management` 1. Make some cases AOD or CAVC * grant AOD Motion per case -- do [this](#14085 (comment)) as AOD_USER (in an incognito window to avoid logging out BVATWARNER) * create a CAVC case (is there a better way?): ```ruby corres=FactoryBot.create(:correspondent, stafkey:"777"); folder=FactoryBot.create(:folder, ticknum: "000100777"); vcase= FactoryBot.create(:case, :type_cavc_remand, :assigned, bfkey: "77777", user: User.find_by(css_id: "BVATWARNER"), correspondent: corres, folder: folder); appeal=FactoryBot.create(:legacy_appeal, vacols_case: vcase); ht=FactoryBot.create(:hearing_task, appeal: appeal, assigned_by: nil); ahdt=FactoryBot.create(:assign_hearing_disposition_task, parent: ht, assigned_by: nil); FactoryBot.create(:no_show_hearing_task, parent: ahdt, assigned_by: nil); UpdateCachedAppealsAttributesJob.perform_now ``` * create AOD CAVC case (by combining the procedures above) 1. As BVATWARNER, refresh the `/organizations/hearings-management` page to see AOD and CAVC cases 1. Perform bulk "Assign tasks" with "No Show Hearing Task" type and ensure priority cases are assigned first (see the "Assigned" tab)
- Loading branch information
Showing
5 changed files
with
78 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters