-
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.
Only consider genpop appeals when attempting to evenly distribute cas…
…es to judges (#15328) Resolves discrepancy found here: https://dsva.slack.com/archives/CN3FQR4A1/p1601297485008600 ### Description Our priority push job runs in 2 phases. First, we distribute all cases that are tied to a judge through previous decision or a held hearing. Second, we pull a count of all remaining priority cases ready to be distributed and calculate how to distribute them evenly across judges. However, when we pull the count of remaining cases, we were previously including cases that are tied to judges but could not be distributed. This could happen for a number of reasons (judge case is tied to no longer works for the board, is not a user in caseflow, is an AVLJ, etc). The issue is that when we try evenly distribute remaining cases, we cannot distribute cases tied to judges to another judge. This let to us only having 60 cases to distribute, but our calculations were done assuming there would be 350+ cases to distribute. This PR ensures the calculations done on `ready_priority_appeals_count` do not consider cases we cannot distribute (cases tied to another judge) ### Acceptance Criteria - [ ] When calculating priority target for the acd priority push job, only consider genpop cases ### Testing Plan 1. in prod ```ruby PushPriorityAppealsToJudgesJob.new.ready_priority_appeals_count => 346 # Or some other 300+ number # what should this be instead? query = <<-SQL #{VACOLS::CaseDocket::SELECT_PRIORITY_APPEALS} where VLJ is null SQL VACOLS::CaseDocket.connection.exec_query(query).to_hash.count => 34 HearingRequestDistributionQuery.new(base_relation: HearingRequestDocket.new.appeals(ready: true, priority: true), genpop: "only_genpop").call.count => 0 DirectReviewDocket.new.count(ready: true, priority: true) => 0 EvidenceSubmissionDocket.new.count(ready: true, priority: true) => 0 # The sum of these numbers should be MUCH lower than the one returned from ready_priority_appeals_count ```
- Loading branch information
1 parent
0cf9233
commit aec6a6a
Showing
10 changed files
with
301 additions
and
183 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
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
Oops, something went wrong.