Caseflow: Stop Tasks from being `assign_to_type` `Vso`

Created on 25 Nov 2019  路  3Comments  路  Source: department-of-veterans-affairs/caseflow

Description


Tasks should have the assigned_to_type value of either User or Organization, however we discovered a handful assigned to Vso.

Background/context/resources

image (3)

Technical notes

Acceptance Criteria

  • [ ] Integrity check created enforcing only assign_to_types of User and Organization

    • [ ] If that is not possible, create an alert for any other value

Medium caseflow-queue Echo 馃惉 Bug

All 3 comments

We could alternatively put a constraint on the database to only those two values (enum(Organization, User)).

Example of need for #12773.

Rather than a data integrity check, let's go this route

_What is this graph?_

1 | ||||
2 | |||||||||||
3 | 
5 | 
8 |  

Seems fairly straightforward. Could be as simple as adding one line to the model and a test. Kat is clutching her ~pearls~ ones. Triple check that all tasks have type User or Org.

Was this page helpful?
0 / 5 - 0 ratings