Skip to content

Commit

Permalink
Merge pull request #1377 from bcgov/utopia-1283-be
Browse files Browse the repository at this point in the history
[UTOPIA-1283-be] Allow complete status + delete review when moving to Edit or incomplete status
  • Loading branch information
kushal-arora-fw authored Jul 13, 2023
2 parents 303710b + 92b9f04 commit f3a6299
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions src/backend/src/modules/pia-intake/metadata/pia-status.metadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,23 @@ export const piaStatusMetadata: Partial<
transition: {
[PiaIntakeStatusEnum.INCOMPLETE]: {
allow: true,
actions: [
{
type: 'update',
key: 'review',
value: null,
},
],
},
[PiaIntakeStatusEnum.EDIT_IN_PROGRESS]: {
allow: true,
actions: [
{
type: 'update',
key: 'review',
value: null,
},
],
},
[PiaIntakeStatusEnum.CPO_REVIEW]: {
allow: true,
Expand Down Expand Up @@ -150,9 +164,23 @@ export const piaStatusMetadata: Partial<
transition: {
[PiaIntakeStatusEnum.INCOMPLETE]: {
allow: true,
actions: [
{
type: 'update',
key: 'review',
value: null,
},
],
},
[PiaIntakeStatusEnum.EDIT_IN_PROGRESS]: {
allow: true,
actions: [
{
type: 'update',
key: 'review',
value: null,
},
],
},
[PiaIntakeStatusEnum.MPO_REVIEW]: {
allow: true,
Expand Down Expand Up @@ -214,6 +242,9 @@ export const piaStatusMetadata: Partial<
},
],
},
[PiaIntakeStatusEnum.COMPLETE]: {
allow: true,
},
},
},
[PiaIntakeStatusEnum.COMPLETE]: {
Expand Down

0 comments on commit f3a6299

Please sign in to comment.