caseflow
caseflow copied to clipboard
removed judge check from affinity filter
Resolves APPEALS-58200
Description
Removed judge check from affinity filter in docket.rb Updated affinity filter to allow for nil judge queries Added not_affinity param to some methods that should not filter by affinity
Acceptance Criteria
-
[ ] Code compiles correctly
-
[ ] The job should not create distributions with zero cases. Judges with a target number of cases less than or equal to zero should be filtered out.
Testing Plan
- On local or demo from a reset state or fresh deploy:
- Clear all ready appeals by running these commands in console: • DistributionTask.where(status: 'assigned')&.map(&:on_hold!) • VACOLS::Case.where(bfcurloc: ['81', '83'])&.map { |c| c.update!(bfcurloc: 'testing') }
- Run the new seed file in the rails console or via the below rake command (NOT in a rails console): • bundle exec rake db:seed:ama_affinity_cases
- Download the ready_to_distribute CSV and verify that there are appeals within their affinity that should not be distributed when running the Push Priority Job.
- Run the push priority job from the scheduled jobs tab in caseflow
- Ensure the distribution_stats and distributions do not contain a batch size of 0.
- Download the ready_to_distribute CSV to verify none of the appeals within their affinity were distributed.
- [ ] For feature branches merging into master: Was this deployed to UAT?