Skip to content

Commit

Permalink
CIV-7377 mediation successful (#2300)
Browse files Browse the repository at this point in the history
* add mediation successful fields

* change to lower case for date label

* mediation successful event

* authentication of event

* create page for mediation successful event

* correct event

* mid event to validate date

* remove mid event for now

* authentication on fields and submit event

* add additional title field for mediation successful

---------

Co-authored-by: Raja Mani <[email protected]>
  • Loading branch information
TatsyMaslova and rajakm authored Mar 20, 2023
1 parent 8a8b13a commit f0f1fe3
Show file tree
Hide file tree
Showing 5 changed files with 132 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -265,5 +265,27 @@
"CRUD": "R"
}
]
},
{
"CaseTypeID": "CIVIL",
"CaseEventID": "MEDIATION_SUCCESSFUL",
"AccessControl": [
{
"UserRoles": [
"caseworker-civil-systemupdate",
"caseworker-civil-admin",
"caseworker-civil"
],
"CRUD": "CRU"
},
{
"UserRoles": [
"APP-SOL-SPEC-PROFILE",
"RES-SOL-ONE-SPEC-PROFILE",
"RES-SOL-TWO-SPEC-PROFILE"
],
"CRUD": "R"
}
]
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -1010,6 +1010,27 @@
}
]
},
{
"CaseTypeID": "CIVIL",
"CaseFieldID": "mediationSettlementAgreedAt",
"AccessControl": [
{
"UserRoles": [
"caseworker-civil",
"caseworker-civil-admin"
],
"CRUD": "CRU"
},
{
"UserRoles": [
"APP-SOL-SPEC-PROFILE",
"RES-SOL-ONE-SPEC-PROFILE",
"RES-SOL-TWO-SPEC-PROFILE"
],
"CRUD": "R"
}
]
},
{
"CaseTypeID": "CIVIL",
"CaseFieldID": "unsuccessfulMediationReason",
Expand Down
18 changes: 18 additions & 0 deletions ccd-definition/CaseEvent/User/UserEventsLRspec-CUI-nonprod.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,24 @@
"RetriesTimeoutURLSubmittedEvent": 0,
"Publish": "Y"
},
{
"CaseTypeID": "CIVIL",
"ID": "MEDIATION_SUCCESSFUL",
"Name": "Mediation Successful",
"Description": "Record mediation successful",
"DisplayOrder": 8,
"PreConditionState(s)": "*",
"PostConditionState": "*",
"SecurityClassification": "Public",
"CallBackURLAboutToSubmitEvent": "${CCD_DEF_CASE_SERVICE_BASE_URL}/cases/callbacks/about-to-submit",
"ShowSummary": "Y",
"ShowEventNotes": "N",
"EndButtonLabel": "Submit",
"RetriesTimeoutAboutToStartEvent": 0,
"RetriesTimeoutURLAboutToSubmitEvent": 0,
"RetriesTimeoutURLSubmittedEvent": 0,
"Publish": "Y"
},
{
"CaseTypeID": "CIVIL",
"ID": "MEDIATION_UNSUCCESSFUL",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
[
{
"CaseTypeID": "CIVIL",
"CaseEventID": "MEDIATION_SUCCESSFUL",
"CaseFieldID": "caseTitle",
"PageFieldDisplayOrder": 1,
"DisplayContext": "READONLY",
"PageID": "MediationSuccessful",
"PageDisplayOrder": 1,
"ShowSummaryChangeOption": "N"
},
{
"CaseTypeID": "CIVIL",
"CaseEventID": "MEDIATION_SUCCESSFUL",
"CaseFieldID": "defendantNameLabel",
"PageFieldDisplayOrder": 2,
"DisplayContext": "READONLY",
"PageID": "MediationSuccessful",
"PageDisplayOrder": 1,
"ShowSummaryChangeOption": "N"
},
{
"CaseTypeID": "CIVIL",
"CaseEventID": "MEDIATION_SUCCESSFUL",
"CaseFieldID": "defendantName",
"PageFieldDisplayOrder": 3,
"DisplayContext": "READONLY",
"PageID": "MediationSuccessful",
"PageDisplayOrder": 1,
"ShowSummaryChangeOption": "N"
},
{
"CaseTypeID": "CIVIL",
"CaseEventID": "MEDIATION_SUCCESSFUL",
"CaseFieldID": "mediationSettlementAgreedAt",
"PageFieldDisplayOrder": 4,
"DisplayContext": "MANDATORY",
"PageID": "MediationSuccessful",
"PageDisplayOrder": 1,
"ShowSummaryChangeOption": "Y",
"RetriesTimeoutURLMidEvent": 0
}
]
49 changes: 28 additions & 21 deletions ccd-definition/CaseField/CaseFieldLRspec-CUI-nonprod.json
Original file line number Diff line number Diff line change
Expand Up @@ -105,27 +105,6 @@
"FieldType": "Label",
"SecurityClassification": "Public"
},
{
"CaseTypeID": "CIVIL",
"ID": "caseTitle",
"Label": "### ${applicant1.partyName} Vs ${respondent1.partyName}",
"FieldType": "Label",
"SecurityClassification": "Public"
},
{
"CaseTypeID": "CIVIL",
"ID": "defendantNameLabel",
"Label": "### Defendant Name",
"FieldType": "Label",
"SecurityClassification": "Public"
},
{
"CaseTypeID": "CIVIL",
"ID": "defendantName",
"Label": "${respondent1.partyName}",
"FieldType": "Label",
"SecurityClassification": "Public"
},
{
"CaseTypeID": "CIVIL",
"ID": "unsuccessfulMediationReason",
Expand Down Expand Up @@ -375,5 +354,33 @@
"Label": "Total Claim amount is £${totalClaimAmount}. This includes all court fees and interest.",
"FieldType": "Label",
"SecurityClassification": "Public"
},
{
"CaseTypeID": "CIVIL",
"ID": "caseTitle",
"Label": "### ${applicant1.partyName} Vs ${respondent1.partyName}",
"FieldType": "Label",
"SecurityClassification": "Public"
},
{
"CaseTypeID": "CIVIL",
"ID": "defendantNameLabel",
"Label": "### Defendant Name",
"FieldType": "Label",
"SecurityClassification": "Public"
},
{
"CaseTypeID": "CIVIL",
"ID": "defendantName",
"Label": "${respondent1.partyName}",
"FieldType": "Label",
"SecurityClassification": "Public"
},
{
"CaseTypeID": "CIVIL",
"ID": "mediationSettlementAgreedAt",
"Label": "Mediation settlement agreed on",
"FieldType": "Date",
"SecurityClassification": "Public"
}
]

0 comments on commit f0f1fe3

Please sign in to comment.