Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DFPL-2546 Refuge Address option for Respondent/Other persons Journeys #5755

Merged
merged 28 commits into from
Jan 7, 2025

Conversation

chak-shing-lo-justice
Copy link
Contributor

@chak-shing-lo-justice chak-shing-lo-justice commented Dec 2, 2024

JIRA link (if applicable)

https://tools.hmcts.net/jira/browse/DFPL-2546

Change description

Refuge Address option for Respondent/Other persons Journeys.

#5696 Release failed as the pipeline failed to import CCD definition. The ticket was rolled back.
Error message was:
ElasticSearch initialisation exception" mapper [data.hearingDetails.value.others.value.addressKnow] cannot be changed from type [keyword] to [text]

This PR fix the issue by introducing a new field "addressKnowV2" insetad of updating the type of the existing "addressKnow" field
The old field is deprecated, and the application will convert the old field to new field during case data deserialisation.

Does this PR introduce a breaking change? (check one with "x")

[ ] Yes
[X] No

@chak-shing-lo-justice chak-shing-lo-justice requested a review from a team as a code owner December 2, 2024 17:17
@github-actions github-actions bot added the ccd configuration Pull request that updates CCD definition configuration label Dec 2, 2024
chak-shing-lo-justice and others added 2 commits December 2, 2024 17:43
This reverts commit f541d55.

Reapply "Roll back DFPL 2546 (#5746)"

This reverts commit c9fc210.
chak-shing-lo-justice and others added 3 commits December 3, 2024 11:20
This reverts commit b6a081a.

Reapply "Roll back DFPL 2546 (#5746)"

This reverts commit eac9947.
// Flag for preventing from purging the converted old field value during deserialization if addressKnowV2 is null
@Builder.Default
@Getter(AccessLevel.NONE)
private final boolean isConvertedAddressKnow = false;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this get used? Can see it's also defined on 173

Copy link
Contributor Author

@chak-shing-lo-justice chak-shing-lo-justice Dec 6, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it won't get serialised to Json, as @Getter(AccessLevel.NONE) mean no getter is generated for this field.
And it is only being used as internal flag when building the object

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh! right, that one in builder is redundant

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My bad, not that one in the builder, this one is redundant. Just did some simple test, that one in builder is thread safe. so should be fine

jamesrferguson1
jamesrferguson1 previously approved these changes Dec 6, 2024
* DFPL-2641: Move address known type to the confidential tab

* DFPL-2641: Refactor conversion tests, temp dupe function for others as incompatible due to UUIDs for firstOther

* DFPL-2641: Fix controller test

* DFPL-2641: Fix test - everyone was named James, clashing with new code...

* DFPL-2641: Fix test

* DFPL-2641: Fix test

* DFPL-2641: Fix test
@chak-shing-lo-justice chak-shing-lo-justice merged commit 514a4ae into master Jan 7, 2025
7 checks passed
@chak-shing-lo-justice chak-shing-lo-justice deleted the DFPL-2546 branch January 7, 2025 10:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ccd configuration Pull request that updates CCD definition configuration enable_keep_helm ns:family-public-law prd:fpl
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants