-
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
Teaches BVA Dispatching Tasks to actually block #15041
Teaches BVA Dispatching Tasks to actually block #15041
Conversation
…cking_dispatch_stack_2
…cking_dispatch_stack_2
…cking_dispatch_stack_2
…cking_dispatch_stack_2
…cking_dispatch_stack_2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some preliminary suggestions and questions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nitpicks for consistency and clarity.
Co-authored-by: Yoom Lam <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggestions to make the tests easier to understand.
Testing notes: FeatureToggle.enable!(:block_at_dispatch)
# Testing Plan item 1
appeal=FactoryBot.create(:appeal, :ready_for_distribution)
parent_task=FoiaColocatedTask.create!(appeal: appeal, parent: appeal.root_task, assigned_by: User.last, assigned_to: Colocated.singleton)
# Testing Plan item 2
# Logged in as atty CASPER and picked an appeal
appeal=appeal_("f68df7d3-0068-46fe-8d88-cb9158c515d6")
appeal.reload.treee
parent_task=FoiaColocatedTask.create!(appeal: appeal, parent: appeal.root_task, assigned_by: User.last, assigned_to: Colocated.singleton)
appeal.reload.treee
# Testing Plan item 3
# Logged in as Dispatch user BVAGWHITE
appeal=appeal_("375291f3-6626-4fed-a59e-7bbf2440f707")
appeal.reload.treee
parent_task=FoiaColocatedTask.create!(appeal: appeal, parent: appeal.root_task, assigned_by: User.last, assigned_to: Colocated.singleton)
appeal.reload.treee
# Testing Plan item 4.a
# Logged in as Dispatch user BVAGWHITE
appeal=appeal_("8786cac4-6cc0-4938-bc20-f3490f0e6f2e")
appeal.reload.treee
Task.find(990).cancelled!
Task.find(989).on_hold!
appeal.reload.treee
parent_task=FoiaColocatedTask.create!(appeal: appeal, parent: appeal.root_task, assigned_by: User.last, assigned_to: Colocated.singleton)
appeal.reload.treee
# Testing Plan item 4.b
# Logged in as Dispatch user BVAGWHITE
appeal=appeal_("34c455d7-e6bc-455c-8634-61a39f15567f")
appeal.reload.treee
Task.find(979).delete
appeal.reload.treee
parent_task=FoiaColocatedTask.create!(appeal: appeal, parent: appeal.root_task, assigned_by: User.last, assigned_to: Colocated.singleton)
appeal.reload.treee
# Testing Plan item 5
# Logged in as Dispatch user BVAGWHITE
appeal=appeal_("1beaa592-ec65-4b49-bc9d-ad0c8a4c2149")
# Return to judge
parent_task=FoiaColocatedTask.create!(appeal: appeal, parent: appeal.root_task, assigned_by: User.last, assigned_to: Colocated.singleton)
# Testing Plan item 6
# Logged in as Dispatch user BVAGWHITE
# Choose an appeal or delete tasks
Task.where(id: [2734,2735,2736,2737,2738]).map(&:delete)
# Return to judge
appeal.reload.treee
jdrt=JudgeDispatchReturnTask.find(2728)
parent_task=FoiaColocatedTask.create!(appeal: appeal, parent: jdrt, assigned_by: User.last, assigned_to: Colocated.singleton)
appeal.reload.treee
# Testing Plan item 7
appeal.reload.treee
# Mark user-assignee DispatchTask complete
Task.find(1001).completed!
parent_task=FoiaColocatedTask.create!(appeal: appeal, parent: appeal.root_task, assigned_by: User.last, assigned_to: Colocated.singleton)
appeal.reload.treee |
…cking_dispatch_stack_2
Co-authored-by: Yoom Lam <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Found 2 issues when testing part 3
#15042 (review)
#15042 (review)
Thanks @hschallhorn! I think I've fixed it:
And Foia:
and now the messaging for Judges is wrong though - moving that fix back to PR 3 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wording suggestions.
Co-authored-by: Yoom Lam <[email protected]>
Co-authored-by: Yoom Lam <[email protected]>
* Teaches BVA Dispatch blocking tasks to invoke Dispatch on close When a task that blocks BVA Dispatch is closed, it evaluates the state of the appeal and attempts to create a BVA Dispatch Task if the appeal is otherwise ready Teaches BvaDispatchTask to refuse to create if there open dispatch_blocking? tasks * Enables the feature * Updates Privacy Task messaging to VLJ Support * Adds messaging for FOIA ama task assignment
Generated by 🚫 Danger |
Connects #14056
Part 2 of the stack:
Part 1: #15040
Part 2: this PR
Part 3: #15042
Description
When a task is created that blocks_dispatch, we will check whether we need to override
the parent of this task.
Acceptance Criteria
Testing Plan
Test creating these blocking tasks at various appeal points. You should be able to use the Realistic task tree Appeal Factory to get to JudgeDecisionReview, but beyond that cases will need to be manupulated via UI or manual task creation.