fix FactoryBot's creation of parent tasks assigned to different appeal #13130
Labels
Eng: Backend Work Group
backend engineering task
Priority: Medium
Blocking issue w/workaround, or "second in" priority for new work.
Product: caseflow-queue
Stakeholder: BVA
Functionality associated with the Board of Veterans' Appeals workflows/feature requests
Team: Echo 🐬
Type: Tech-Improvement
Description
In many cases, FactoryBot indirectly creates parent tasks when a test wants to create a particular task. However, the appeal for the parent task is not specified during creation, so the parent task is assigned to a new appeal when it should be assigned to the same appeal as the child task.
Technical notes
Child tasks whose parents are in a different appeal in lines like:
caseflow/spec/factories/task.rb
Line 386 in dc23a99
Solution: Add a
, appeal: appeal
parameter when creating parent or associated tasks.Try applying the fix a few lines at a time to see if any tests fail.
Hunter has another idea: https://dsva.slack.com/archives/CQCUMFA0H/p1578610726034800?thread_ts=1578607111.032400&cid=CQCUMFA0H
The text was updated successfully, but these errors were encountered: