Dtspb 4783 pp intestacy journey#3628
Dtspb 4783 pp intestacy journey#3628IswaryaPepakayala wants to merge 49 commits intoDTSPB-4689-Digitising-Intestacyfrom
Conversation
…acy-PP-Spouse-Journey
# Conflicts: # src/main/java/uk/gov/hmcts/probate/model/ccd/raw/response/ResponseCaseData.java # src/main/java/uk/gov/hmcts/probate/transformer/CallbackResponseTransformer.java
# Conflicts: # ccdImports/configFiles/CCD_Probate_Backoffice/CaseEventToFields.json # ccdImports/configFiles/CCD_Probate_Backoffice/FixedLists.json
…-PP-Intestacy-journey # Conflicts: # ccdImports/configFiles/CCD_Probate_Backoffice/CaseEventToFields.json # src/main/java/uk/gov/hmcts/probate/controller/BusinessValidationController.java # src/main/resources/ValidationMessages.properties # src/test/java/uk/gov/hmcts/probate/controller/BusinessValidationUnitTest.java
…estacy-Grandchild-Journey # Conflicts: # ccdImports/configFiles/CCD_Probate_Backoffice/CaseEventToFields.json
…estacy-Grandchild-Journey # Conflicts: # ccdImports/configFiles/CCD_Probate_Backoffice/CaseEventToFields.json
…estacy-Grandchild-Journey
| {"LiveFrom": "01/01/2017", "CaseTypeID": "GrantOfRepresentation", "ID": "childrenDiedBeforeDeceased", "Label": "Did any of these children die before deceased?", "FieldType": "FixedList", "FieldTypeParameter": "predeceasedFixedList", "SecurityClassification": "Public"}, | ||
| {"LiveFrom": "01/01/2017", "CaseTypeID": "GrantOfRepresentation", "ID": "hasCoApplicant", "Label": "Has any co-applicants?", "FieldType": "YesOrNo", "SecurityClassification": "Public"}, | ||
| {"LiveFrom": "01/01/2017", "CaseTypeID": "GrantOfRepresentation", "ID": "childAlive", "Label": "Is deceased‘s child alive?", "FieldType": "YesOrNo", "SecurityClassification": "Public"}, | ||
| {"LiveFrom": "01/01/2017", "CaseTypeID": "GrantOfRepresentation", "ID": "childAlive", "Label": "Is one of the applicant’s parents a deceased child of the deceased?", "FieldType": "YesOrNo", "SecurityClassification": "Public"}, |
There was a problem hiding this comment.
in hindsight this seems like a poorly named field
| {"LiveFrom": "06/01/2017", "ID": "solsResiduaryTypes", "ListElementCode": "LegateeDevisee", "ListElement": "the residuary legatee and devisee"}, | ||
| {"LiveFrom": "06/01/2017", "ID": "solsRelationshipsToDeceased", "ListElementCode": "SpouseOrCivil", "ListElement": "Spouse or civil partner", "DisplayOrder": "1"}, | ||
| {"LiveFrom": "06/01/2017", "ID": "solsRelationshipsToDeceased", "ListElementCode": "Child", "ListElement": "Child", "DisplayOrder": "2"}, | ||
| {"LiveFrom": "06/01/2017", "ID": "solsRelationshipsToDeceased", "ListElementCode": "ChildAdopted", "ListElement": "Adopted child", "DisplayOrder": "3"}, |
There was a problem hiding this comment.
do we need to prepare a data migration for removing ChildAdopted?
There was a problem hiding this comment.
Yeah.We need to think about it.
| {"LiveFrom": "01/01/2017", "ID": "DocumentsRequiredSubList", "ListElementCode": "PA1A", "ListElement": "PA1A", "DisplayOrder": "7"}, | ||
| {"LiveFrom": "01/01/2017", "ID": "DocumentsRequiredSubList", "ListElementCode": "PA1P", "ListElement": "PA1P", "DisplayOrder": "8"}, |
There was a problem hiding this comment.
have these been merged in from another branch?
There was a problem hiding this comment.
Rebased with master.Think will resolve this.
There was a problem hiding this comment.
the changes here seem unrelated to this set of changes?
There was a problem hiding this comment.
Rebased with master.Think will resolve this.
| if (isSiblingOrParent && YES.equalsIgnoreCase(deceased.getDeceasedAnyLivingParents())) { | ||
| codes.add(LIVING_PARENTS); | ||
| codes.add(LIVING_PARENTS_WELSH); |
There was a problem hiding this comment.
doesn't this stop any parent applying? (since they are alive?)
There was a problem hiding this comment.
Updated.Sorry need to add isSiblingOrParent for descendants.
| if (existingExecutorList != null && !existingExecutorList.isEmpty()) { | ||
| for (CollectionMember<IntestacyAdditionalExecutor> additionalExecutor : existingExecutorList) { | ||
| if (additionalExecutor.getValue().getSolsApplicantFamilyDetails() != null | ||
| && additionalExecutor.getValue().getSolsApplicantFamilyDetails().getRelationship() != null) { | ||
| DynamicRadioList relationshipRadioList = | ||
| additionalExecutor.getValue().getSolsApplicantFamilyDetails().getRelationship(); | ||
| if (relationshipRadioList.getValue() != null | ||
| && relationshipRadioList.getValue().getCode() != null) { | ||
| String code = relationshipRadioList.getValue().getCode(); | ||
| selectedValue = listItems.stream() | ||
| .filter(item -> code.equals(item.getCode())) | ||
| .findFirst() | ||
| .orElse(null); | ||
| } | ||
| break; | ||
| } | ||
| } | ||
| } |
There was a problem hiding this comment.
so we use the value of the relationship of the last entry in the existing execs to provide the default for the new relationships?
There was a problem hiding this comment.
This code is for radio selection.If no existingExecutorList lis there then we show selectedValue as null and if it has existingExecutorList then the selectedValue will be the one that is selected before
| public static final String DIVORCED_OUTSIDE_ENGLAND_OR_WALES = "divorcedOutsideEnglandOrWales"; | ||
| public static final String DIVORCED_OUTSIDE_ENGLAND_OR_WALES_WELSH = "divorcedOutsideEnglandOrWales"; | ||
| public static final String SEPARATED_OUTSIDE_ENGLAND_OR_WALES = "separatedOutsideEnglandOrWales"; | ||
| public static final String SEPARATED_OUTSIDE_ENGLAND_OR_WALES_WELSH = "separatedOutsideEnglandOrWales"; |
There was a problem hiding this comment.
should ..._WELSH be different from non-..._WELSH?
There was a problem hiding this comment.
I have changed that in CW Amend PR because Welsh was not available when I was doing PP Intestacy https://github.com/hmcts/probate-back-office/pull/3670/changes
There was a problem hiding this comment.
i'm going to work on the basis that these template changes are unintentionally included?
| AssembleLetterEvent=As there is no email address recorded for this applicant, you must use the 'Assemble a letter' event to request information instead. | ||
| invalidCaseTypeSelection=Cannot select this case type, please select a different case type | ||
| notAllowedStopReason=You cannot use stop reason **NOT TO BE USED (Other)**. You must select a specific stop reason from the case stop reason list | ||
| errorCannotProceed=A joint application is not possible if the main applicant is the deceased's husband, wife or civil partner.\nIn some cases, the deceased's child can be a joint applicant. Use Form PA1A to apply by post instead. |
There was a problem hiding this comment.
can we confirm that these messages show up with the ' values correctly? i've been bitten in the past by properties files getting loaded and used through MessageFormat which can lead to some surprising outputs if you arent' expecting them.
There was a problem hiding this comment.
Updated with Unicode escape sequences
| invalidCaseTypeSelection=Cannot select this case type, please select a different case type | ||
| notAllowedStopReason=You cannot use stop reason **NOT TO BE USED (Other)**. You must select a specific stop reason from the case stop reason list | ||
| errorCannotProceed=A joint application is not possible if the main applicant is the deceased's husband, wife or civil partner.\nIn some cases, the deceased's child can be a joint applicant. Use Form PA1A to apply by post instead. | ||
| errorCannotProceedWelsh=Nid yw cais ar y cyd yn bosibl os yw?r prif geisydd yn ?r, gwraig neu bartner sifil yr ymadawedig.\nMewn rhai achosion, gall plentyn yr ymadawedig fod yn geisydd ar y cyd. Yn hytrach, bydd angen ichi wneud cais drwy?r post drwy ddefnyddio Ffurflen PA1A. |
There was a problem hiding this comment.
i'm almost certain the ? chars here should be ' ? (and in some of the other messages below)
JIRA link (if applicable)
https://tools.hmcts.net/jira/browse/DTSPB-4783
Change description
Does this PR introduce a breaking change? (check one with "x")