Skip to content

DTSRD-5699 LRD Court Venue - Updates to retrieveCourtVenuesBySearchString API for new model#1108

Merged
SabinaHMCTS merged 71 commits into
DTSRD-5695-FeatureBranchfrom
DTSRD-5699
Jun 16, 2026
Merged

DTSRD-5699 LRD Court Venue - Updates to retrieveCourtVenuesBySearchString API for new model#1108
SabinaHMCTS merged 71 commits into
DTSRD-5695-FeatureBranchfrom
DTSRD-5699

Conversation

@SabinaHMCTS

@SabinaHMCTS SabinaHMCTS commented Feb 25, 2026

Copy link
Copy Markdown
Contributor

JIRA link (if applicable)

DTSRD-5699 - LRD Court Venue - Updates to retrieveCourtVenuesBySearchString API for new model

Change description

LRD Court Venue - Updates to retrieveCourtVenuesBySearchString API for new model

NB: The feature PR/branch for these changes is:

This PR has been re-positioned behind PR for DTSRD-5695:

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

[ ] Yes
[ ] No

@hmcts-jenkins-j-to-z hmcts-jenkins-j-to-z Bot requested a deployment to preview February 25, 2026 20:11 Abandoned

@prashanthnerligeb prashanthnerligeb left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LGTM

String serviceCodes,
CourtVenueRequestParam requestParam) {
log.info("{} : Obtaining court venue for search String: searchString: {}, courtTypeId: {}, "
+ "isHearingLocation: {}, isCaseManagementLocation: {}, locationType: {}, "

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

serviceCodes should be logged after courtTypeId and before isHearingLocation

+ "isHearingLocation: {}, isCaseManagementLocation: {}, locationType: {}, "
+ "isTemporaryLocation: {} ",
loggingComponentName, searchString, courtTypeId, requestParam.getIsHearingLocation(),
loggingComponentName, searchString, courtTypeId,serviceCodes, requestParam.getIsHearingLocation(),

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

missing blank space before serviceCodes


public static final String RET_LOC_VEN_NOTES_7_1 = """
request param 'epimms_id' can be passed with 'court_type_id' . Court venues associated with the epimmsId and
request param 'epimms_id' can be passed with 'court_type_id' . Court venues associated with the epimmsId and

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

is removal of blank here known to not cause formatting issues?

@mattnayler mattnayler left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Re-approved after #1131.

@@ -113,6 +117,72 @@ void shouldRetrieveCourtVenues_By_MultipleParamsAndSearchString_WithStatusCode_2
assertThat(courtVenueResponse.size()).isPositive();
}

@SabinaHMCTS SabinaHMCTS Jun 5, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Please review lines 129 to 165 new test (empty response, single servicecode, multiple service codes)cases added according to QA comments

assertTrue(Arrays.stream(response).allMatch(venue -> "AAA3".equals(venue.getServiceCode())));
responseVerification(new ArrayList<>(Arrays.asList(response)));
}

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Please review lines 113 to 133 new test added according to QA comments

@mattnayler mattnayler left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Re-approved after test changes.

@SabinaHMCTS SabinaHMCTS merged commit 90b0348 into DTSRD-5695-FeatureBranch Jun 16, 2026
@SabinaHMCTS SabinaHMCTS deleted the DTSRD-5699 branch June 16, 2026 09:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants