-
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
CM: Update Code using JudgeTeam Admin to Determine Judge / Attorney #12422
Comments
🔴 WARNING: There exist two judgeteams in prod now with multiple Admins. Implementing the code will likely remove capabilities (if any exist?) from those two teams for the non-judge admin. @jimruggiero some guidance moving forward here is needed. It looks like these two teams added extra admins to their Judge teams, which we do not have documented behavior for as of today. We may need to reconsider how to roll this out to minimize affect on users. |
Connects #12422 ### Description Updates the functions in the JudgeTeam model to ### Acceptance Criteria - [x] Update functions in JudgeTeam model that assume JudgeTeam admins are the judge to use - [x] for_judge & create_for_judge - [x] Update helper function judgeteam.judges to answer 'who is the judge?' based on role - [x] Update helper function judgeteam.attorneyss to answer 'who are the attorneys?' based on ro - [x] Functionality behind the feature flag ### Testing Plan 1. Test Suite Passes ### User Facing Changes None
) Connects #12422 ### Description `distribution.batch_size` per team now depends on `judge_team.attorneys` `distribution.total_batch_size` now depends on DecisionDraftingAttorney user count. likewise docket coordinator's. ### Acceptance Criteria - [x] Refactor: Tests (continue to) pass - [x] Cases can still be distributed ### User Facing Changes None
…15740) Resolves #13994 (aka [CASEFLOW-641](https://vajira.max.gov/browse/CASEFLOW-641)) and resolves #13999. Related to #13992, #14798, and #12422. ### Description * Removes DecisionDraftingAttorney, JudgeTeamLead, and JudgeTeamRole classes * Removes references to them My approach was to review prior related PRs and undo them to the extent possible. Irrelevant tests were also removed. [Slack thread](https://dsva.slack.com/archives/CJL810329/p1609780627229600) ### Acceptance Criteria - [x] Code compiles correctly and tests pass From #13994 - [x] Judge & Attorney in Caseflow are determined via admin status (rather than JudgeTeamRoles) - [ ] ~No changes are done to JudgeTeamRoles in this issue - that will be adjusted in follow on work~ (The follow-on work #13999 is pulled into this PR.) From #13999 - [x] References to the JudgeTeamRole have been refactored out of the codebase - [ ] ~The models themselves are reduced to a `noop` model, but are not yet removed~ (I went ahead and removed the models because it becomes easier to detect and remove references to them.) ### Testing Plan Carefully review deleted code to ensure they are not (conceptually) used by any remaining code.
Update existing Judge & Attorney assumptions based on judge_team admin/non-admin to use the roles implemented in #12420
Acceptance Criteria
JudgeTeam
model that assume JudgeTeam admins are the judge to usefor_judge
&create_for_judge
judgeteam.judge
s to answer 'who is the judge?' based on rolejudgeteam.attorneys
s to answer 'who are the attorneys?' based on roledistribution
explicitly asks fornon_admin_users
Part of #11801
The text was updated successfully, but these errors were encountered: