-
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
Allows tasks to block dispatch #15040
Conversation
Renames 'blocking?' to 'blocking_distribution?' Implements 'blocking_dispatch' and applies it to appropriate tasks - CongressionalInterestMailTask - FoiaRequestMailTask - PrivacyActRequestMailTask - PrivacyComplaintMailTask - FoiaColocatedTask - FoiaTask - PrivacyActTask
it "only returns active appeals that meet both of these conditions: | ||
it has at least one Distribution Task with status assigned | ||
AND | ||
it doesn't have any blocking Mail Tasks." do | ||
it "only returns active appeals that have at least one Distribution Task with status assigned" do |
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.
Semi-unrelated cleanup. The behavior that considered mail tasks here was fully removed in #14939
spec/models/tasks/special_case_movement/blocked_special_case_movement_task_spec.rb
Show resolved
Hide resolved
Code Climate has analyzed commit eebdad9 and detected 0 issues on this pull request. View more on Code Climate. |
app/models/task.rb
Outdated
def blocking_dispatch? | ||
self.class.blocking_dispatch? | ||
end | ||
|
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.
Core of the new behavior is this file and all the subclasses that define blocking_dispatch?
* Teaches BVA Dispatching Tasks to actually block * Renames dispatch parent hook * Apply suggestions from code review Co-authored-by: Yoom Lam <[email protected]> * Missed some names * Applys code review suggestions Co-authored-by: Yoom Lam <[email protected]> * Unblocks tasks preceeding BVA Dispatch * Update spec/models/task_spec.rb Co-authored-by: Yoom Lam <[email protected]> * Update spec/models/task_spec.rb Co-authored-by: Yoom Lam <[email protected]> * Adds safe call * Teaches BVA Dispatch blocking tasks to invoke Dispatch on close (#15042) * 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 Co-authored-by: Yoom Lam <[email protected]>
Generated by 🚫 Danger |
Resolves #14056
Part 1 of the stack:
Part 1: this PR
Part 2: #15041
Part 3: #15042
Description
Renames 'blocking?' to 'blocking_distribution?'
Implements 'blocking_dispatch' and applies it to appropriate tasks
Acceptance Criteria
Testing Plan