Skip to content
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

Add method to mark a DispositionTask as "held" #9540

Closed
3 tasks done
sharonwarner opened this issue Feb 20, 2019 · 1 comment
Closed
3 tasks done

Add method to mark a DispositionTask as "held" #9540

sharonwarner opened this issue Feb 20, 2019 · 1 comment

Comments

@sharonwarner
Copy link
Contributor

sharonwarner commented Feb 20, 2019

The DispositionTask model (previously HoldHearingTask) needs to have a held method. This method should perform the following actions:

  1. Confirm the task's associated hearing's disposition is 'held'. This hearing can be found through the DispositionTasks's parent (a HearingTask) which will have a HearingTaskAssociation.
  2. If the appeal is a legacy appeal:
    • We complete the DispositionTask
    • The HearingTask should automatically close
    • We move the appeal to location 33 for transcription
  3. If the appeal is an AMA appeal:
    • We create a TranscriptionTask as a child of the DispositionTask
    • We create an EvidenceWindowTask as a child of the DispositionTask that expires in 90 days unless the associated hearing has marked evidence_window_waived

For more information, see here: https://github.com/department-of-veterans-affairs/appeals-design-research/blob/master/Projects/Hearings/Hearing%20Schedule/Tech%20Specs/HearingTaskFlow.md

Acceptance criteria

  • Add method to mark hearings as held on DispositionTasks during job that will run every night
  • When a DispositionTask is marked held for a LegacyAppeal, complete that task, complete the parent task, and change the VACOLS location to 33
  • When a DispositionTask is marked held for am AMA Appeal, create a child TranscriptionTask and maybe a child EvidenceWindowTask
@lowellrex lowellrex changed the title Task Flow | Held hearing Add option to mark a DispositionTask as "held" Feb 21, 2019
@lowellrex lowellrex changed the title Add option to mark a DispositionTask as "held" Add method to mark a DispositionTask as "held" Feb 21, 2019
@lowellrex
Copy link
Contributor

MEDIUM. Similar to #9539.

@amprokop amprokop self-assigned this Mar 7, 2019
@sharonwarner sharonwarner assigned tomas-nava and unassigned amprokop Mar 11, 2019
@ghost ghost removed the In-Progress label Mar 19, 2019
lowellrex added a commit that referenced this issue Mar 26, 2019
* Create nightly job for DispositionTask when disposition changes

* Rename key, skip duplicates, and log hearing IDs

* Rely on existing relationship constraint

* Create two smaller functions

* Fix fasterer complaint

* Use delegation to acceess hearing

* Add test stub

* Add final test for logging to job

* Start adding tests

* Move function into task scope

* Add tests for .modify_task_by_dispisition

* Add more tests

* Update job now that PR for #9540 has been merged

* Lengthen variable names and fix test

* Add job to jobs controller

* update method name

* refactor task_count_for, use symbols consistently
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants