caseflow icon indicating copy to clipboard operation
caseflow copied to clipboard

removed judge check from affinity filter

Open calvincostaBAH opened this issue 5 months ago • 1 comments

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

  1. On local or demo from a reset state or fresh deploy:
  2. 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') }
  3. 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
  4. 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.
  5. Run the push priority job from the scheduled jobs tab in caseflow
  6. Ensure the distribution_stats and distributions do not contain a batch size of 0.
  7. 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?

calvincostaBAH avatar Sep 17 '24 19:09 calvincostaBAH