Skip to content

Commit

Permalink
Merge branch 'master' into DTSCCI-1461
Browse files Browse the repository at this point in the history
  • Loading branch information
guygrewal77 authored Feb 5, 2025
2 parents 25cfb19 + b07b20b commit 641c7eb
Show file tree
Hide file tree
Showing 21 changed files with 182 additions and 75 deletions.
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 @@ -442,5 +442,20 @@
"CRUD": "CRU"
}
]
},
{
"CaseTypeID": "CIVIL${CCD_DEF_VERSION}",
"CaseFieldID": "joDJCreatedDate",
"AccessControl": [
{
"UserRoles": [
"caseworker-civil-admin",
"caseworker-civil-staff",
"caseworker-civil-solicitor",
"caseworker-civil-systemupdate"
],
"CRUD": "CRU"
}
]
}
]
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
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 @@ -368,5 +368,13 @@
"FieldType": "YesOrNo",
"SecurityClassification": "Public",
"Searchable": "N"
},
{
"CaseTypeID": "CIVIL${CCD_DEF_VERSION}",
"ID": "joDJCreatedDate",
"Label": " ",
"FieldType": "DateTime",
"SecurityClassification": "Public",
"Searchable": "N"
}
]
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
6 changes: 3 additions & 3 deletions e2e/api/steps_LRspec.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ const data = {
DEFAULT_JUDGEMENT_SPEC_2V1: require('../fixtures/events/defaultJudgment2v1Spec.js'),
CREATE_FAST_NO_SUM_SPEC: () => sdoTracks.createSDOFastTrackSpec(),
CREATE_SDO: (userInput) => sdoTracks.createSDOSmallWODamageSumInPerson(userInput),
HEARING_SCHEDULED: (allocatedTrack) => hearingScheduled.scheduleHearing(allocatedTrack),
HEARING_SCHEDULED: (allocatedTrack, isMinti) => hearingScheduled.scheduleHearing(allocatedTrack, isMinti),
FINAL_ORDERS_SPEC: (finalOrdersRequestType, dayPlus0, dayPlus7, dayPlus14, dayPlus21, orderType) => createFinalOrderSpec.requestFinalOrder(finalOrdersRequestType, dayPlus0, dayPlus7, dayPlus14, dayPlus21, orderType),
RECORD_JUDGMENT_SPEC: (whyRecorded, paymentPlanSelection) => judgmentOnline1v1Spec.recordJudgment(whyRecorded, paymentPlanSelection),
CONFIRM_ORDER_REVIEW: () => judgmentOnline1v1Spec.confirmOrderReview(),
Expand Down Expand Up @@ -1381,7 +1381,7 @@ module.exports = {
await waitForFinishedBusinessProcess(caseId);
},

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

Expand All @@ -1390,7 +1390,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.userInput)) {
await assertValidData(scheduleData, pageId);
Expand Down
9 changes: 7 additions & 2 deletions e2e/fixtures/events/scheduleHearing.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const {date, listElement} = require('../../api/dataHelper');
const config = require('../../config');
module.exports = {
scheduleHearing: (allocatedTrack) => {
scheduleHearing: (allocatedTrack, isMinti) => {
return {
valid: {
HearingNoticeSelect: {
Expand All @@ -21,7 +21,12 @@ module.exports = {
channel: 'IN_PERSON',
hearingDate: date(60),
hearingTimeHourMinute: '1015',
hearingDuration: 'MINUTES_55'
...(!isMinti? {
hearingDuration: 'MINUTES_55'
} : {}),
...(isMinti? {
hearingDurationMinti: 'custom hearing duration'
} : {}),
},
HearingInformation: {
information: 'string'
Expand Down
9 changes: 7 additions & 2 deletions e2e/fixtures/events/specScheduleHearing.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const {date, listElement} = require('../../api/dataHelper');
const config = require('../../config');
module.exports = {
scheduleHearing: (allocatedTrack) => {
scheduleHearing: (allocatedTrack, isMinti) => {
return {
userInput: {
HearingNoticeSelect: {
Expand All @@ -21,7 +21,12 @@ module.exports = {
channel: 'IN_PERSON',
hearingDate: date(60),
hearingTimeHourMinute: '1015',
hearingDuration: 'MINUTES_55'
...(!isMinti? {
hearingDuration: 'MINUTES_55'
} : {}),
...(isMinti? {
hearingDurationMinti: 'custom hearing duration'
} : {}),
},
HearingInformation: {
information: 'string'
Expand Down
Loading

0 comments on commit 641c7eb

Please sign in to comment.