Skip to content

Commit

Permalink
fix: CE-829 prevention actions list order (#68)
Browse files Browse the repository at this point in the history
  • Loading branch information
Scarlett-Truong authored Jun 20, 2024
1 parent c151af0 commit 987dfb8
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
1 change: 1 addition & 0 deletions backend/src/action_code/action_code.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ export class ActionCodeService {
},
},
},
orderBy: [{ display_order: "asc" }],
});

const actions = queryResult.map((record) => ({
Expand Down
1 change: 1 addition & 0 deletions backend/src/case_file_action/case_file_action.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ export class CaseFileActionService {
select: {
action_type_action_xref_guid: true,
},
orderBy: [{ display_order: "asc" }],
});

let caseFileActions: CaseFileAction[] = new Array();
Expand Down
20 changes: 20 additions & 0 deletions migrations/sql/V1.21.0__CE-829.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
--
-- UPDATE display_order for Prevention and Education actions
--
UPDATE case_management.action_type_action_xref
SET
display_order = 4
WHERE
action_code = 'CDCTMEDREL';

UPDATE case_management.action_type_action_xref
SET
display_order = 3
WHERE
action_code = 'CNTCTBIOVT';

UPDATE case_management.configuration
SET
configuration_value = cast(configuration_value as INTEGER) + 1
WHERE
configuration_code = 'CDTABLEVER';

0 comments on commit 987dfb8

Please sign in to comment.