-
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
Move completed AttorneyTasks to new JudgeDecisionReviewTask on reassign #13279
Labels
Priority: Medium
Blocking issue w/workaround, or "second in" priority for new work.
Product: caseflow-queue
Team: Echo 🐬
Type: Metrics or Reporting
Comments
hschallhorn
added
Product: caseflow-queue
Team: Echo 🐬
Priority: Medium
Blocking issue w/workaround, or "second in" priority for new work.
Type: Metrics or Reporting
labels
Jan 28, 2020
Good team knowledge around this space. Quite a bit of work, folks with less familiarity may glean some good info here. |
fyi researching this for the original ticket I wrote this AR query that may help identify existing data problem: JudgeDecisionReviewTask.cancelled
.joins(:children).where(children_tasks: { status: Constants.TASK_STATUSES.completed })
.joins(:parent).where(parents_tasks: { status: Constants.TASK_STATUSES.completed})
.count |
1 task
va-bot
pushed a commit
that referenced
this issue
Feb 18, 2020
…#13449) References #13279 ### Description We always expect an open or complete `JudgeDecisionReviewTask` to have a child `AttorneyTask`. This ensures that the child `AttorneyTask` is reassigned with the `JudgeDecisionReviewTask`, even if it is complete ### Acceptance Criteria - [ ] completed `AttorneyTask`s are adopted by new parent on reassign ### Testing Plan 1. Sign is as BVAAABSHIRE 2. Go to an AMA appeal that has an open `JudgeDecisionReviewTask` assigned to AAAAABSHIRE 3. Peep the task tree ```ruby Appeal.find_by(uuid: "398eac67-c102-4865-94c1-4b5889efd4b1").treee ┌───────────────────────────────────────────────────────────────────────┐ Appeal 50 (direct_review) ───── │ ID │ STATUS │ ASGN_BY │ ASGN_TO │ UPDATED_AT │ └── RootTask │ 585 │ on_hold │ │ Bva │ 2020-02-03 16:48:34 UTC │ └── JudgeDecisionReviewTask │ 586 │ assigned │ CSS_ID103 │ BVAAABSHIRE │ 2020-02-03 16:48:34 UTC │ └── AttorneyTask │ 587 │ completed │ BVAAABSHIRE │ BVASCASPER1 │ 2020-02-03 16:48:34 UTC │ └───────────────────────────────────────────────────────────────────────┘ ``` 4. Reassign this task to another judge 5. Ensure the completed `AttorneyTask` is moved under the new `JudgeDecisionReviewTask` ```ruby Appeal.find_by(uuid: "398eac67-c102-4865-94c1-4b5889efd4b1").treee ┌────────────────────────────────────────────────────────────────────────┐ Appeal 50 (direct_review) ───── │ ID │ STATUS │ ASGN_BY │ ASGN_TO │ UPDATED_AT │ └── RootTask │ 585 │ on_hold │ │ Bva │ 2020-02-03 16:48:34 UTC │ ├── JudgeDecisionReviewTask │ 586 │ cancelled │ CSS_ID103 │ BVAAABSHIRE │ 2020-02-18 20:01:13 UTC │ └── JudgeDecisionReviewTask │ 1213 │ assigned │ BVAAABSHIRE │ BVAEBECKER │ 2020-02-18 20:01:13 UTC │ └── AttorneyTask │ 587 │ completed │ BVAAABSHIRE │ BVASCASPER1 │ 2020-02-18 20:01:13 UTC │ └────────────────────────────────────────────────────────────────────────┘ ```
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Priority: Medium
Blocking issue w/workaround, or "second in" priority for new work.
Product: caseflow-queue
Team: Echo 🐬
Type: Metrics or Reporting
Tableau reporting and some places in our code assumes and active or completed
JudgeDecisionReviewTask
will have a childAttorneyTask
. In many cases this is not true.It would appear that all of these cases have a cancelled
JudgeDecisionReviewTask
, implying that theseJudgeDecisionReviewTask
s were reassigned after theAttorneyTask
was completed. Currently, we only move open children to the new parent when we reassign a task.AC
AttorneyTask
s should move to the new task when aJudgeDecisionReviewTask
is reassignedNotes
Could possibly look into simply moving all children to the new parent on task reassign, or just non cancelled children
The text was updated successfully, but these errors were encountered: