Entities States¶
When you need to migrate the following entities from the LTS to Suite, you have take into account the following things.
Template¶
Now that we are managing the states with a Saga, we don't have anymore the columns Archived, Deleted and Status. We have to map these in the following manner:
LTS | Values | Suite | Values |
---|---|---|---|
TemplateStatus & Archived | Draft, False | CurrentState & PreviousState | Draft, null |
TemplateStatus & Archived | Draft, True | CurrentState & PreviousState | Archived, Draft |
TemplateStatus & Archived | Active, False | CurrentState & PreviousState | Active, null |
TemplateStatus & Archived | Active, True | CurrentState & PreviousState | Archived, Active |
Deleted | True | CurrentState | Deleted |
Inspection¶
Now that we are managing the states with a Saga, we don't have anymore the columns Archived, Deleted and Completed. We have to map these in the following manner:
LTS | Values | Suite | Values |
---|---|---|---|
Completed & Archived | Null, False | CurrentState & PreviousState | Active, null |
Completed & Archived | Not Null, False | CurrentState & PreviousState | Completed, null |
Completed & Archived | Null, True | CurrentState & PreviousState | Archived, Active |
Completed & Archived | Not Null, True | CurrentState & PreviousState | Archived, Completed |
Deleted | True | CurrentState & PreviousState | Deleted, null |