Skip to content

Commit

Permalink
Merge branch 'master' into feat/CIV-16515
Browse files Browse the repository at this point in the history
  • Loading branch information
sherlynkhaw authored Feb 6, 2025
2 parents d35baf4 + eda146e commit 0a2ff81
Show file tree
Hide file tree
Showing 76 changed files with 1,905 additions and 649 deletions.
7 changes: 4 additions & 3 deletions bin/add-org-roles-to-users.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,12 @@ echo "Setting up Users with role assignments..."
./bin/utils/organisational-role-assignment.sh "[email protected]" "${JUDGE_DEFAULT_PASSWORD}" "PUBLIC" "leadership-judge" '{"jurisdiction":"CIVIL","primaryLocation":"20262","workTypes":"access_requests,multi_track_decision_making_work,intermediate_track_decision_making_work"}' "JUDICIAL"
./bin/utils/organisational-role-assignment.sh "[email protected]" "${JUDGE_DEFAULT_PASSWORD}" "PUBLIC" "case-allocator" '{"jurisdiction":"CIVIL","primaryLocation":"20262"}' "JUDICIAL"
./bin/utils/organisational-role-assignment.sh "[email protected]" "${JUDGE_DEFAULT_PASSWORD}" "PUBLIC" "judge" '{"jurisdiction":"CIVIL","primaryLocation":"20262","workTypes":"hearing_work,decision_making_work,applications"}' "JUDICIAL"
./bin/utils/organisational-role-assignment.sh "[email protected]" "${JUDGE_DEFAULT_PASSWORD}" "PUBLIC" "task-supervisor" '{"jurisdiction":"CIVIL","primaryLocation":"20262","workTypes":"hearing_work,decision_making_work,applications"}' "JUDICIAL"
./bin/utils/organisational-role-assignment.sh "[email protected]" "${JUDGE_DEFAULT_PASSWORD}" "PUBLIC" "circuit-judge" '{"jurisdiction":"CIVIL","primaryLocation":"20262","workTypes":"hearing_work,decision_making_work,applications,multi_track_decision_making_work,intermediate_track_decision_making_work"}' "JUDICIAL"
./bin/utils/organisational-role-assignment.sh "[email protected]" "${JUDGE_DEFAULT_PASSWORD}" "PUBLIC" "leadership-judge" '{"jurisdiction":"CIVIL","primaryLocation":"20262","workTypes":"access_requests,multi_track_decision_making_work,intermediate_track_decision_making_work"}' "JUDICIAL"
./bin/utils/organisational-role-assignment.sh "[email protected]" "${JUDGE_DEFAULT_PASSWORD}" "PUBLIC" "hearing-viewer" '{"jurisdiction":"CIVIL","primaryLocation":"20262"}' "JUDICIAL"

./bin/utils/organisational-role-assignment.sh "[email protected]" "${JUDGE_DEFAULT_PASSWORD}" "PUBLIC" "hmcts-judiciary" '{"jurisdiction":"CIVIL","primaryLocation":"20262"}' "JUDICIAL"
./bin/utils/organisational-role-assignment.sh "[email protected]" "${JUDGE_DEFAULT_PASSWORD}" "PUBLIC" "judge" '{"jurisdiction":"CIVIL","primaryLocation":"20262","workTypes":"hearing_work,decision_making_work,applications,multi_track_decision_making_work,intermediate_track_decision_making_work"}' "JUDICIAL"
./bin/utils/organisational-role-assignment.sh "[email protected]" "${JUDGE_DEFAULT_PASSWORD}" "PUBLIC" "hearing-viewer" '{"jurisdiction":"CIVIL","primaryLocation":"20262"}' "JUDICIAL"

./bin/utils/organisational-role-assignment.sh "[email protected]" "${DEFAULT_PASSWORD}" "PUBLIC" "hmcts-admin" '{"jurisdiction":"CIVIL","primaryLocation":"20262"}' "ADMIN"
./bin/utils/organisational-role-assignment.sh "[email protected]" "${DEFAULT_PASSWORD}" "PUBLIC" "task-supervisor" '{"jurisdiction":"CIVIL","primaryLocation":"20262","workTypes":"routine_work,hearing_work,access_requests"}' "ADMIN"
./bin/utils/organisational-role-assignment.sh "[email protected]" "${DEFAULT_PASSWORD}" "PUBLIC" "hmcts-viewer" '{"jurisdiction":"CIVIL","primaryLocation":"20262"}' "ADMIN"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
[
{
"CaseTypeID": "CIVIL${CCD_DEF_VERSION}",
"CaseEventID": "NOTIFY_LIP_APPLICANT_FOR_AGREED_EXTENSION_DATE_FOR_SPEC",
"AccessControl": [
{
"UserRoles": [
"caseworker-civil-systemupdate"
],
"CRUD": "CRU"
},
{
"UserRoles": [
"APP-SOL-SPEC-PROFILE",
"caseworker-civil-admin",
"judge-profile",
"legal-adviser",
"RES-SOL-ONE-SPEC-PROFILE",
"RES-SOL-TWO-SPEC-PROFILE",
"CITIZEN-CLAIMANT-PROFILE"
],
"CRUD": "R"
}
]
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,10 @@
"CaseEventID": "CREATE_NOC_ONLINE_DASHBOARD_NOTIFICATION_FOR_CLAIMANT",
"UserRole": "caseworker-civil-systemupdate",
"CRUD": "CRU"
},
{
"CaseTypeID": "CIVIL${CCD_DEF_VERSION}",
"CaseEventID": "NOTIFY_NEW_DEFENDANT_SOLICITOR",
"UserRole": "caseworker-civil-systemupdate",
"CRUD": "CRU"
}]
Original file line number Diff line number Diff line change
Expand Up @@ -443,6 +443,21 @@
}
]
},
{
"CaseTypeID": "CIVIL${CCD_DEF_VERSION}",
"CaseFieldID": "joDJCreatedDate",
"AccessControl": [
{
"UserRoles": [
"caseworker-civil-admin",
"caseworker-civil-staff",
"caseworker-civil-solicitor",
"caseworker-civil-systemupdate"
],
"CRUD": "CRU"
}
]
},
{
"CaseTypeID": "CIVIL${CCD_DEF_VERSION}",
"CaseFieldID": "joJudgementByAdmissionIssueDate",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -460,5 +460,14 @@
"CRUD": "R"
}
]
},
{
"CaseTypeID": "CIVIL${CCD_DEF_VERSION}",
"CaseFieldID": "hearingDurationMinti",
"UserRoles": [
"hearing-schedule-access",
"caseworker-civil-solicitor"
],
"CRUD": "CRU"
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -724,16 +724,15 @@
"AccessControl": [
{
"UserRoles": [
"caseworker-civil-solicitor"
"caseworker-civil-solicitor",
"caseworker-civil-systemupdate"
],
"CRUD": "CRU"
},
{
"UserRoles": [
"caseworker-civil-admin",
"caseworker-civil-systemupdate",
"CITIZEN-DEFENDANT-PROFILE"

],
"CRUD": "R"
}
Expand Down
15 changes: 15 additions & 0 deletions ccd-definition/CaseEvent/Camunda/CaseEvents-LipVsLr-nonprod.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[
{
"CaseTypeID": "CIVIL${CCD_DEF_VERSION}",
"ID": "NOTIFY_LIP_APPLICANT_FOR_AGREED_EXTENSION_DATE_FOR_SPEC",
"Name": "Email: Spec Notify extension",
"Description": "Notify claimant LIP Extension Date",
"PreConditionState(s)": "*",
"PostConditionState": "*",
"SecurityClassification": "Public",
"CallBackURLAboutToSubmitEvent": "${CCD_DEF_CASE_SERVICE_BASE_URL}/cases/callbacks/about-to-submit",
"ShowSummary": "N",
"ShowEventNotes": "N",
"RetriesTimeoutURLAboutToSubmitEvent": 0
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,21 @@
"RetriesTimeoutAboutToStartEvent": 0,
"RetriesTimeoutURLAboutToSubmitEvent": 0,
"RetriesTimeoutURLSubmittedEvent": 0
}]
},
{
"CaseTypeID": "CIVIL${CCD_DEF_VERSION}",
"ID": "NOTIFY_NEW_DEFENDANT_SOLICITOR",
"Name": "Notify new defendant sol",
"Description": "Notify new defendant sol",
"PreConditionState(s)": "*",
"PostConditionState": "*",
"SecurityClassification": "Public",
"CallBackURLAboutToSubmitEvent": "${CCD_DEF_CASE_SERVICE_BASE_URL}/cases/callbacks/about-to-submit",
"ShowSummary": "N",
"ShowEventNotes": "N",
"EndButtonLabel": "Submit",
"RetriesTimeoutAboutToStartEvent": 0,
"RetriesTimeoutURLAboutToSubmitEvent": 0,
"RetriesTimeoutURLSubmittedEvent": 0
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,8 @@
"CallBackURLAboutToSubmitEvent": "${CCD_DEF_CASE_SERVICE_BASE_URL}/cases/callbacks/about-to-submit",
"CallBackURLSubmittedEvent": "${CCD_DEF_CASE_SERVICE_BASE_URL}/cases/callbacks/submitted",
"RetriesTimeoutAboutToStartEvent": 0,
"RetriesTimeoutURLAboutToSubmitEvent": 0
"RetriesTimeoutURLAboutToSubmitEvent": 0,
"Publish": "Y"
},
{
"CaseTypeID": "CIVIL${CCD_DEF_VERSION}",
Expand Down
59 changes: 59 additions & 0 deletions ccd-definition/CaseEventToFields/HearingNotice-MINTI-nonprod.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,5 +69,64 @@
"PageDisplayOrder": 2,
"PageColumnNumber": 1,
"ShowSummaryChangeOption": "Y"
},
{
"CaseTypeID": "CIVIL${CCD_DEF_VERSION}",
"CaseEventID": "HEARING_SCHEDULED",
"CaseFieldID": "channel",
"PageFieldDisplayOrder": 4,
"DisplayContext": "MANDATORY",
"PageID": "HearingDetails",
"PageDisplayOrder": 4,
"PageColumnNumber": 1,
"ShowSummaryChangeOption": "Y"
},
{
"CaseTypeID": "CIVIL${CCD_DEF_VERSION}",
"CaseEventID": "HEARING_SCHEDULED",
"CaseFieldID": "allocatedTrack",
"PageFieldDisplayOrder": 8,
"DisplayContext": "READONLY",
"PageID": "HearingDetails",
"PageDisplayOrder": 4,
"PageColumnNumber": 1,
"FieldShowCondition" : "hearingNoticeList = \"DO_NOT_SHOW\"",
"ShowSummaryChangeOption": "N"
},
{
"CaseTypeID": "CIVIL${CCD_DEF_VERSION}",
"CaseEventID": "HEARING_SCHEDULED",
"CaseFieldID": "responseClaimTrack",
"PageFieldDisplayOrder": 8,
"DisplayContext": "READONLY",
"PageID": "HearingDetails",
"PageDisplayOrder": 4,
"PageColumnNumber": 1,
"FieldShowCondition" : "hearingNoticeList = \"DO_NOT_SHOW\"",
"ShowSummaryChangeOption": "N"
},
{
"CaseTypeID": "CIVIL${CCD_DEF_VERSION}",
"CaseEventID": "HEARING_SCHEDULED",
"CaseFieldID": "hearingDuration",
"PageFieldDisplayOrder": 9,
"DisplayContext": "MANDATORY",
"PageID": "HearingDetails",
"PageDisplayOrder": 4,
"PageColumnNumber": 1,
"FieldShowCondition" : "(allocatedTrack = \"SMALL_CLAIM\" OR allocatedTrack = \"FAST_CLAIM\" OR responseClaimTrack = \"SMALL_CLAIM\" OR responseClaimTrack = \"FAST_CLAIM\") OR (hearingNoticeList = \"OTHER\" OR hearingNoticeList = \"SMALL_CLAIMS\")",
"ShowSummaryChangeOption": "Y"
},
{
"CaseTypeID": "CIVIL${CCD_DEF_VERSION}",
"CaseEventID": "HEARING_SCHEDULED",
"CaseFieldID": "hearingDurationMinti",
"PageFieldDisplayOrder": 9,
"DisplayContext": "MANDATORY",
"PageID": "HearingDetails",
"PageDisplayOrder": 4,
"PageColumnNumber": 1,
"FieldShowCondition" : "(allocatedTrack = \"MULTI_CLAIM\" OR allocatedTrack = \"INTERMEDIATE_CLAIM\" OR responseClaimTrack = \"MULTI_CLAIM\" OR responseClaimTrack = \"INTERMEDIATE_CLAIM\") AND hearingNoticeList = \"FAST_TRACK_TRIAL\"",
"ShowSummaryChangeOption": "Y"
}
]
22 changes: 22 additions & 0 deletions ccd-definition/CaseEventToFields/HearingNotice-MINTI-prod.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,27 @@
"PageDisplayOrder": 1,
"PageColumnNumber": 1,
"ShowSummaryChangeOption": "N"
},
{
"CaseTypeID": "CIVIL${CCD_DEF_VERSION}",
"CaseEventID": "HEARING_SCHEDULED",
"CaseFieldID": "channel",
"PageFieldDisplayOrder": 4,
"DisplayContext": "MANDATORY",
"PageID": "HearingDetails",
"PageDisplayOrder": 4,
"PageColumnNumber": 1,
"ShowSummaryChangeOption": "N"
},
{
"CaseTypeID": "CIVIL${CCD_DEF_VERSION}",
"CaseEventID": "HEARING_SCHEDULED",
"CaseFieldID": "hearingDuration",
"PageFieldDisplayOrder": 9,
"DisplayContext": "MANDATORY",
"PageID": "HearingDetails",
"PageDisplayOrder": 4,
"PageColumnNumber": 1,
"ShowSummaryChangeOption": "N"
}
]
22 changes: 0 additions & 22 deletions ccd-definition/CaseEventToFields/HearingNotice.json
Original file line number Diff line number Diff line change
Expand Up @@ -103,17 +103,6 @@
"PageColumnNumber": 1,
"ShowSummaryChangeOption": "N"
},
{
"CaseTypeID": "CIVIL${CCD_DEF_VERSION}",
"CaseEventID": "HEARING_SCHEDULED",
"CaseFieldID": "channel",
"PageFieldDisplayOrder": 4,
"DisplayContext": "MANDATORY",
"PageID": "HearingDetails",
"PageDisplayOrder": 4,
"PageColumnNumber": 1,
"ShowSummaryChangeOption": "N"
},
{
"CaseTypeID": "CIVIL${CCD_DEF_VERSION}",
"CaseEventID": "HEARING_SCHEDULED",
Expand Down Expand Up @@ -159,17 +148,6 @@
"ShowSummaryChangeOption": "Y",
"CallBackURLMidEvent": "${CCD_DEF_CASE_SERVICE_BASE_URL}/cases/callbacks/mid/checkFutureDate"
},
{
"CaseTypeID": "CIVIL${CCD_DEF_VERSION}",
"CaseEventID": "HEARING_SCHEDULED",
"CaseFieldID": "hearingDuration",
"PageFieldDisplayOrder": 9,
"DisplayContext": "MANDATORY",
"PageID": "HearingDetails",
"PageDisplayOrder": 4,
"PageColumnNumber": 1,
"ShowSummaryChangeOption": "N"
},
{
"CaseTypeID": "CIVIL${CCD_DEF_VERSION}",
"CaseEventID": "HEARING_SCHEDULED",
Expand Down
8 changes: 8 additions & 0 deletions ccd-definition/CaseField/CaseField-JO-nonprod.json
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,14 @@
"SecurityClassification": "Public",
"Searchable": "N"
},
{
"CaseTypeID": "CIVIL${CCD_DEF_VERSION}",
"ID": "joDJCreatedDate",
"Label": " ",
"FieldType": "DateTime",
"SecurityClassification": "Public",
"Searchable": "N"
},
{
"CaseTypeID": "CIVIL${CCD_DEF_VERSION}",
"ID": "joJudgementByAdmissionIssueDate",
Expand Down
8 changes: 8 additions & 0 deletions ccd-definition/CaseField/CaseField-MINTI-nonprod.json
Original file line number Diff line number Diff line change
Expand Up @@ -225,5 +225,13 @@
"FieldType": "YesOrNo",
"SecurityClassification": "Public",
"Searchable": "N"
},
{
"CaseTypeID": "CIVIL${CCD_DEF_VERSION}",
"ID": "hearingDurationMinti",
"Label": "Duration",
"FieldType": "TextArea",
"SecurityClassification": "Public",
"Searchable": "N"
}
]

This file was deleted.

13 changes: 0 additions & 13 deletions ccd-definition/CaseTypeTab/ApplicationsLegalAdviserGAspec.json

This file was deleted.

7 changes: 4 additions & 3 deletions e2e/api/steps.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ const data = {
CREATE_SMALL_NO_SUM: (userInput) => sdoTracks.createSDOSmallWODamageSum(userInput),
UNSUITABLE_FOR_SDO: (userInput) => sdoTracks.createNotSuitableSDO(userInput),
CREATE_SMALL_DRH: () => sdoTracks.createSDOSmallDRH(),
HEARING_SCHEDULED: (allocatedTrack) => hearingScheduled.scheduleHearing(allocatedTrack),
HEARING_SCHEDULED: (allocatedTrack, isMinti) => hearingScheduled.scheduleHearing(allocatedTrack, isMinti),
EVIDENCE_UPLOAD_JUDGE: (typeOfNote) => evidenceUploadJudge.upload(typeOfNote),
TRIAL_READINESS: (user) => trialReadiness.confirmTrialReady(user),
EVIDENCE_UPLOAD_APPLICANT_SMALL: (mpScenario) => evidenceUploadApplicant.createApplicantSmallClaimsEvidenceUpload(mpScenario),
Expand Down Expand Up @@ -1201,7 +1201,7 @@ module.exports = {
}
},

scheduleHearing: async (user, allocatedTrack) => {
scheduleHearing: async (user, allocatedTrack, isMinti = false) => {
console.log('Hearing Scheduled for case id ' + caseId);
await apiRequest.setupTokens(user);

Expand All @@ -1210,7 +1210,7 @@ module.exports = {
caseData = await apiRequest.startEvent(eventName, caseId);
delete caseData['SearchCriteria'];

let scheduleData = data.HEARING_SCHEDULED(allocatedTrack);
let scheduleData = data.HEARING_SCHEDULED(allocatedTrack, isMinti);

for (let pageId of Object.keys(scheduleData.valid)) {
await assertValidData(scheduleData, pageId);
Expand Down Expand Up @@ -1531,6 +1531,7 @@ const assertValidData = async (data, pageId, solicitor) => {
if(eventName === 'HEARING_SCHEDULED' && pageId === 'HearingNoticeSelect')
{
responseBody = clearHearingLocationData(responseBody);
responseBody.data.allocatedTrack = caseData.allocatedTrack;
}
if(eventName === 'GENERATE_DIRECTIONS_ORDER') {
responseBody = clearFinalOrderLocationData(responseBody);
Expand Down
Loading

0 comments on commit 0a2ff81

Please sign in to comment.