Skip to content

Commit

Permalink
Merge pull request #1595 from hmcts/COT-550_update_sscs_work_types
Browse files Browse the repository at this point in the history
COT-550 rename work type to pre_hearing post_hearing
  • Loading branch information
mikebrownccd authored Oct 12, 2023
2 parents 9b43183 + a7dff1d commit be72b0e
Show file tree
Hide file tree
Showing 15 changed files with 52 additions and 39 deletions.
2 changes: 1 addition & 1 deletion src/functionalTest/resources/features/F-004/S-031.td.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
"primaryLocation" : "[[ANYTHING_PRESENT]]",
"jurisdiction" : "SSCS",
"region" : "[[ANYTHING_PRESENT]]",
"workTypes" : "pre_hearing_work,hearing_work,post_hearing_work,decision_making_work,routine_work,priority"
"workTypes" : "pre_hearing,hearing_work,post_hearing,decision_making_work,routine_work,priority"
},
"authorisations" : "[[ANYTHING_PRESENT]]"
}
Expand Down
4 changes: 2 additions & 2 deletions src/functionalTest/resources/features/F-004/S-032.td.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"primaryLocation" : "[[ANYTHING_PRESENT]]",
"jurisdiction" : "SSCS",
"region" : "[[ANYTHING_PRESENT]]",
"workTypes" : "pre_hearing_work,hearing_work,post_hearing_work,decision_making_work,routine_work,priority"
"workTypes" : "pre_hearing,hearing_work,post_hearing,decision_making_work,routine_work,priority"
},
"authorisations" : "[[ANYTHING_PRESENT]]"
},
Expand All @@ -66,7 +66,7 @@
"primaryLocation" : "[[ANYTHING_PRESENT]]",
"jurisdiction" : "SSCS",
"region" : "[[ANYTHING_PRESENT]]",
"workTypes" : "pre_hearing_work,hearing_work,post_hearing_work,decision_making_work,routine_work,priority"
"workTypes" : "pre_hearing,hearing_work,post_hearing,decision_making_work,routine_work,priority"
},
"authorisations" : "[[ANYTHING_PRESENT]]"
},
Expand Down
2 changes: 1 addition & 1 deletion src/functionalTest/resources/features/F-005/S-041.td.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"primaryLocation": "21153",
"jurisdiction": "SSCS",
"region" : "2",
"workTypes": "applications,hearing_work,routine_work,priority"
"workTypes": "applications,hearing_work,routine_work,priority,pre_hearing"
}
},
{
Expand Down
2 changes: 1 addition & 1 deletion src/functionalTest/resources/features/F-005/S-042.td.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"primaryLocation": "21153",
"jurisdiction": "SSCS",
"region" : "2",
"workTypes": "pre_hearing_work,post_hearing_work,decision_making_work,applications,hearing_work,routine_work,priority"
"workTypes": "pre_hearing,post_hearing,decision_making_work,applications,hearing_work,routine_work,priority"
}
},
{
Expand Down
4 changes: 2 additions & 2 deletions src/functionalTest/resources/features/F-005/S-043.td.json
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@
"primaryLocation": "271588",
"jurisdiction": "SSCS",
"region" : "2",
"workTypes": "pre_hearing_work,post_hearing_work,decision_making_work,applications,hearing_work,routine_work,priority"
"workTypes": "pre_hearing,post_hearing,decision_making_work,applications,hearing_work,routine_work,priority"
}
},
{
Expand Down Expand Up @@ -209,7 +209,7 @@
"primaryLocation": "271588",
"jurisdiction": "SSCS",
"region" : "2",
"workTypes": "pre_hearing_work,post_hearing_work,applications,hearing_work,routine_work,priority,decision_making_work"
"workTypes": "pre_hearing,post_hearing,applications,hearing_work,routine_work,priority,decision_making_work"
}
},
{
Expand Down
4 changes: 2 additions & 2 deletions src/functionalTest/resources/features/F-005/S-044.td.json
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@
"primaryLocation" : "[[ANYTHING_PRESENT]]",
"jurisdiction" : "SSCS",
"region" : "[[ANYTHING_PRESENT]]",
"workTypes" : "pre_hearing_work,post_hearing_work,applications,hearing_work,routine_work,priority,decision_making_work"
"workTypes" : "pre_hearing,post_hearing,applications,hearing_work,routine_work,priority,decision_making_work"
}
}, {
"id" : "[[ANYTHING_PRESENT]]",
Expand All @@ -137,7 +137,7 @@
"primaryLocation" : "[[ANYTHING_PRESENT]]",
"jurisdiction" : "SSCS",
"region" :"[[ANYTHING_PRESENT]]",
"workTypes" : "pre_hearing_work,post_hearing_work,applications,hearing_work,routine_work,priority,decision_making_work"
"workTypes" : "pre_hearing,post_hearing,applications,hearing_work,routine_work,priority,decision_making_work"
}
} ]
}
Expand Down
4 changes: 2 additions & 2 deletions src/functionalTest/resources/features/F-006/S-051.td.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"primaryLocation": "[[ANYTHING_PRESENT]]",
"jurisdiction": "SSCS",
"region" : "2",
"workTypes": "pre_hearing_work,post_hearing_work,applications,hearing_work,routine_work,priority,decision_making_work",
"workTypes": "pre_hearing,post_hearing,applications,hearing_work,routine_work,priority,decision_making_work",
"substantive" : "Y"
}
},
Expand All @@ -52,7 +52,7 @@
"primaryLocation": "[[ANYTHING_PRESENT]]",
"jurisdiction": "SSCS",
"region" : "2",
"workTypes": "pre_hearing_work,post_hearing_work,applications,hearing_work,routine_work,priority,decision_making_work",
"workTypes": "pre_hearing,post_hearing,applications,hearing_work,routine_work,priority,decision_making_work",
"substantive" : "Y"
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/functionalTest/resources/features/F-006/S-052.td.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"primaryLocation": "[[ANYTHING_PRESENT]]",
"jurisdiction": "SSCS",
"region" : "2",
"workTypes": "pre_hearing_work,post_hearing_work,decision_making_work,applications,hearing_work,routine_work,priority",
"workTypes": "pre_hearing,post_hearing,decision_making_work,applications,hearing_work,routine_work,priority",
"substantive" : "Y"
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/functionalTest/resources/features/F-006/S-053.td.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"primaryLocation": "[[ANYTHING_PRESENT]]",
"jurisdiction": "SSCS",
"region" : "2",
"workTypes": "applications,hearing_work,routine_work,priority",
"workTypes": "applications,hearing_work,routine_work,priority,pre_hearing",
"substantive" : "Y"
}
},
Expand All @@ -52,7 +52,7 @@
"primaryLocation": "[[ANYTHING_PRESENT]]",
"jurisdiction": "SSCS",
"region" : "2",
"workTypes": "applications,hearing_work,routine_work,priority",
"workTypes": "applications,hearing_work,routine_work,priority,pre_hearing",
"substantive" : "Y"
}
}
Expand Down
10 changes: 5 additions & 5 deletions src/main/resources/validationrules/sscs/sscs-admin-mapping.drl
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ then
Map<String,JsonNode> attribute = new HashMap<>();
attribute.put("jurisdiction", JacksonUtils.convertObjectIntoJsonNode("SSCS"));
attribute.put("primaryLocation", JacksonUtils.convertObjectIntoJsonNode($cap.getPrimaryLocationId()));
attribute.put("workTypes", JacksonUtils.convertObjectIntoJsonNode("pre_hearing_work,post_hearing_work,decision_making_work,applications,hearing_work,routine_work,priority"));
attribute.put("workTypes", JacksonUtils.convertObjectIntoJsonNode("pre_hearing,post_hearing,decision_making_work,applications,hearing_work,routine_work,priority"));
attribute.put("region", JacksonUtils.convertObjectIntoJsonNode($cap.getRegionId()));

insert(
Expand Down Expand Up @@ -112,7 +112,7 @@ then
Map<String,JsonNode> attribute = new HashMap<>();
attribute.put("jurisdiction", JacksonUtils.convertObjectIntoJsonNode("SSCS"));
attribute.put("primaryLocation", JacksonUtils.convertObjectIntoJsonNode($cap.getPrimaryLocationId()));
attribute.put("workTypes", JacksonUtils.convertObjectIntoJsonNode("pre_hearing_work,post_hearing_work,decision_making_work,applications,hearing_work,routine_work,priority"));
attribute.put("workTypes", JacksonUtils.convertObjectIntoJsonNode("pre_hearing,post_hearing,decision_making_work,applications,hearing_work,routine_work,priority"));
attribute.put("region", JacksonUtils.convertObjectIntoJsonNode($cap.getRegionId()));

insert(
Expand Down Expand Up @@ -230,7 +230,7 @@ then
Map<String,JsonNode> attribute = new HashMap<>();
attribute.put("jurisdiction", JacksonUtils.convertObjectIntoJsonNode("SSCS"));
attribute.put("primaryLocation", JacksonUtils.convertObjectIntoJsonNode($cap.getPrimaryLocationId()));
attribute.put("workTypes", JacksonUtils.convertObjectIntoJsonNode("pre_hearing_work,post_hearing_work,decision_making_work,applications,hearing_work,routine_work,priority"));
attribute.put("workTypes", JacksonUtils.convertObjectIntoJsonNode("pre_hearing,post_hearing,decision_making_work,applications,hearing_work,routine_work,priority"));
attribute.put("region", JacksonUtils.convertObjectIntoJsonNode($cap.getRegionId()));

insert(
Expand Down Expand Up @@ -289,7 +289,7 @@ then
Map<String,JsonNode> attribute = new HashMap<>();
attribute.put("jurisdiction", JacksonUtils.convertObjectIntoJsonNode("SSCS"));
attribute.put("primaryLocation", JacksonUtils.convertObjectIntoJsonNode($cap.getPrimaryLocationId()));
attribute.put("workTypes", JacksonUtils.convertObjectIntoJsonNode("applications,hearing_work,routine_work,priority"));
attribute.put("workTypes", JacksonUtils.convertObjectIntoJsonNode("applications,hearing_work,routine_work,priority,pre_hearing"));
attribute.put("region", JacksonUtils.convertObjectIntoJsonNode($cap.getRegionId()));

insert(
Expand Down Expand Up @@ -319,7 +319,7 @@ then
Map<String,JsonNode> attribute = new HashMap<>();
attribute.put("jurisdiction", JacksonUtils.convertObjectIntoJsonNode("SSCS"));
attribute.put("primaryLocation", JacksonUtils.convertObjectIntoJsonNode($cap.getPrimaryLocationId()));
attribute.put("workTypes", JacksonUtils.convertObjectIntoJsonNode("applications,hearing_work,routine_work,priority"));
attribute.put("workTypes", JacksonUtils.convertObjectIntoJsonNode("applications,hearing_work,routine_work,priority,pre_hearing"));
attribute.put("region", JacksonUtils.convertObjectIntoJsonNode($cap.getRegionId()));

insert(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ then
Map<String,JsonNode> attribute = new HashMap<>();
attribute.put("jurisdiction", JacksonUtils.convertObjectIntoJsonNode("SSCS"));
attribute.put("primaryLocation", JacksonUtils.convertObjectIntoJsonNode($cap.getPrimaryLocationId()));
attribute.put("workTypes", JacksonUtils.convertObjectIntoJsonNode("pre_hearing_work,post_hearing_work,applications,hearing_work,routine_work,priority,decision_making_work"));
attribute.put("workTypes", JacksonUtils.convertObjectIntoJsonNode("pre_hearing,post_hearing,applications,hearing_work,routine_work,priority,decision_making_work"));
attribute.put("region", JacksonUtils.convertObjectIntoJsonNode($cap.getRegionId()));

insert(
Expand Down Expand Up @@ -89,7 +89,7 @@ then
Map<String,JsonNode> attribute = new HashMap<>();
attribute.put("jurisdiction", JacksonUtils.convertObjectIntoJsonNode("SSCS"));
attribute.put("primaryLocation", JacksonUtils.convertObjectIntoJsonNode($cap.getPrimaryLocationId()));
attribute.put("workTypes", JacksonUtils.convertObjectIntoJsonNode("pre_hearing_work,post_hearing_work,applications,hearing_work,routine_work,priority,decision_making_work"));
attribute.put("workTypes", JacksonUtils.convertObjectIntoJsonNode("pre_hearing,post_hearing,applications,hearing_work,routine_work,priority,decision_making_work"));
attribute.put("region", JacksonUtils.convertObjectIntoJsonNode($cap.getRegionId()));

insert(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ then
Map<String,JsonNode> attribute = new HashMap<>();
attribute.put("jurisdiction", JacksonUtils.convertObjectIntoJsonNode("SSCS"));
attribute.put("primaryLocation", JacksonUtils.convertObjectIntoJsonNode($cap.getPrimaryLocationId()));
attribute.put("workTypes", JacksonUtils.convertObjectIntoJsonNode("pre_hearing_work,post_hearing_work,decision_making_work,applications,hearing_work,routine_work,priority"));
attribute.put("workTypes", JacksonUtils.convertObjectIntoJsonNode("pre_hearing,post_hearing,decision_making_work,applications,hearing_work,routine_work,priority"));

insert(
RoleAssignment.builder()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ then
attribute.put("jurisdiction", JacksonUtils.convertObjectIntoJsonNode("SSCS"));
attribute.put("primaryLocation", JacksonUtils.convertObjectIntoJsonNode($joh.getPrimaryLocation()));
attribute.put("contractType", JacksonUtils.convertObjectIntoJsonNode("Salaried"));
attribute.put("workTypes", JacksonUtils.convertObjectIntoJsonNode("pre_hearing_work,hearing_work,post_hearing_work,"
attribute.put("workTypes", JacksonUtils.convertObjectIntoJsonNode("pre_hearing,hearing_work,post_hearing,"
+ "decision_making_work,routine_work,priority"));
if (!$joh.getOffice().equalsIgnoreCase("SSCS President of Tribunal-Salaried")) {
attribute.put("region", JacksonUtils.convertObjectIntoJsonNode($joh.getRegionId()));
Expand Down Expand Up @@ -105,7 +105,7 @@ then
attribute.put("primaryLocation", JacksonUtils.convertObjectIntoJsonNode($bk.getLocationId() != null ?
$bk.getLocationId():$joh.getPrimaryLocation()));
attribute.put("contractType", JacksonUtils.convertObjectIntoJsonNode("Fee-Paid"));
attribute.put("workTypes", JacksonUtils.convertObjectIntoJsonNode("pre_hearing_work,hearing_work,post_hearing_work,"
attribute.put("workTypes", JacksonUtils.convertObjectIntoJsonNode("pre_hearing,hearing_work,post_hearing,"
+ "decision_making_work,routine_work,priority"));
attribute.put("region", JacksonUtils.convertObjectIntoJsonNode($joh.getRegionId()));
insert(
Expand Down Expand Up @@ -278,7 +278,7 @@ then
attribute.put("jurisdiction", JacksonUtils.convertObjectIntoJsonNode("SSCS"));
attribute.put("primaryLocation", JacksonUtils.convertObjectIntoJsonNode($joh.getPrimaryLocation()));
attribute.put("contractType", JacksonUtils.convertObjectIntoJsonNode("Fee-Paid"));
attribute.put("workTypes", JacksonUtils.convertObjectIntoJsonNode("pre_hearing_work,hearing_work,post_hearing_work,"
attribute.put("workTypes", JacksonUtils.convertObjectIntoJsonNode("pre_hearing,hearing_work,post_hearing,"
+ "decision_making_work,routine_work,priority"));
attribute.put("region", JacksonUtils.convertObjectIntoJsonNode($joh.getRegionId()));
if ($joh.getTicketCodes() != null && $joh.getTicketCodes().contains("368")) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@ class DroolSscsJudicialRoleMappingTest extends DroolBase {

{
expectedRoleNameWorkTypesMap.put("leadership-judge", null);
expectedRoleNameWorkTypesMap.put("judge", "pre_hearing_work,hearing_work,post_hearing_work,"
expectedRoleNameWorkTypesMap.put("judge", "pre_hearing,hearing_work,post_hearing,"
+ "decision_making_work,routine_work,priority");
expectedRoleNameWorkTypesMap.put("case-allocator", null);
expectedRoleNameWorkTypesMap.put("task-supervisor", null);
expectedRoleNameWorkTypesMap.put("hmcts-judiciary", null);
expectedRoleNameWorkTypesMap.put("specific-access-approver-judiciary", "access_requests");
expectedRoleNameWorkTypesMap.put("fee-paid-judge", "pre_hearing_work,hearing_work,post_hearing_work,"
expectedRoleNameWorkTypesMap.put("fee-paid-judge", "pre_hearing,hearing_work,post_hearing,"
+ "decision_making_work,routine_work,priority");
expectedRoleNameWorkTypesMap.put("fee-paid-tribunal-member", "hearing_work,priority");
expectedRoleNameWorkTypesMap.put("medical", "hearing_work,priority");
Expand Down
Loading

0 comments on commit be72b0e

Please sign in to comment.