Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
67 commits
Select commit Hold shift + click to select a range
bac14b0
CCT-2357 code merge (#30)
yilmazsaritemur2 Feb 10, 2026
9160ed5
updating poms for 17.0.144-SNAPSHOT development
Feb 10, 2026
ac85784
Dev/merge teamcimd50 into main (#31)
psrvarma Feb 10, 2026
df19e1b
updating poms for 17.0.144 branch with snapshot versions
Feb 10, 2026
1c7b5ba
updating poms for 17.0.145-SNAPSHOT development
Feb 10, 2026
c760763
updating poms for branch'dev/release-17.0.144' with non-snapshot vers…
Feb 10, 2026
882b836
Merge branch 'dev/release-17.0.144' into dev/release
Feb 10, 2026
fc0d5db
updating develop poms to master versions to avoid merge conflicts
Feb 10, 2026
eea2192
Merge branch 'dev/release' into main
Feb 10, 2026
8d9da7a
Updating develop poms back to pre merge state
Feb 10, 2026
173ef62
DD-41695: added payload validation checks on outstanding fines event …
rsukka Feb 19, 2026
d267da3
updating poms for 17.0.145 branch with snapshot versions
Feb 19, 2026
2731de7
updating poms for 17.0.146-SNAPSHOT development
Feb 19, 2026
9da59fd
updating poms for branch'dev/release-17.0.145' with non-snapshot vers…
Feb 19, 2026
8ca299b
Merge branch 'dev/release-17.0.145' into dev/release
Feb 19, 2026
301f3c0
updating develop poms to master versions to avoid merge conflicts
Feb 19, 2026
95877dd
Merge branch 'dev/release' into main
Feb 19, 2026
e29686d
Updating develop poms back to pre merge state
Feb 19, 2026
291d084
Revert "CCT-2357 code merge (#30)" (#41)
yilmazsaritemur2 Feb 25, 2026
7d93759
updating poms for 17.0.146 branch with snapshot versions
Feb 25, 2026
16dc938
updating poms for 17.0.147-SNAPSHOT development
Feb 25, 2026
dcb7479
updating poms for branch'dev/release-17.0.146' with non-snapshot vers…
Feb 25, 2026
8166b66
Merge branch 'dev/release-17.0.146' into dev/release
Feb 25, 2026
3c1f800
updating develop poms to master versions to avoid merge conflicts
Feb 25, 2026
f3acf89
Merge branch 'dev/release' into main
Feb 25, 2026
14f00c9
Updating develop poms back to pre merge state
Feb 25, 2026
a32db31
CCT-2357 code merge
yilmazsaritemur2 Mar 18, 2026
6bcef55
Merge pull request #61 from hmcts/dev/cct-2357_2606
narayansingh Mar 18, 2026
b2cf254
updating poms for 17.0.147 branch with snapshot versions
Mar 18, 2026
6a1cda6
updating poms for 17.0.148-SNAPSHOT development
Mar 18, 2026
e052ada
updating poms for branch'dev/release-17.0.147' with non-snapshot vers…
Mar 18, 2026
ce5eed6
Merge branch 'dev/release-17.0.147' into dev/release
Mar 18, 2026
6b5075a
updating develop poms to master versions to avoid merge conflicts
Mar 18, 2026
429388a
Merge branch 'dev/release' into main
Mar 18, 2026
ee07ecb
Updating develop poms back to pre merge state
Mar 18, 2026
19dcbe0
CAD-492 civil tranche 1 toggle off
rajkumarmeena Apr 2, 2026
3c038f8
CAD-492 update core domain civil tranche 1 toggle off
rajkumarmeena Apr 2, 2026
33e1c87
merge team/CCT-2371 into main (#83)
aykutdanisman Apr 2, 2026
8f9f84d
updating poms for 17.0.148 branch with snapshot versions
Apr 2, 2026
016e240
updating poms for 17.0.149-SNAPSHOT development
Apr 2, 2026
2415c5e
updating poms for branch'dev/release-17.0.148' with non-snapshot vers…
Apr 2, 2026
bdfa319
Merge branch 'dev/release-17.0.148' into dev/release
Apr 2, 2026
1a1f8de
updating develop poms to master versions to avoid merge conflicts
Apr 2, 2026
7c3cde6
Merge branch 'dev/release' into main
Apr 2, 2026
bcbe23a
Updating develop poms back to pre merge state
Apr 2, 2026
e0b5e72
merge team/CCT-2257 into main (#82)
aykutdanisman Apr 2, 2026
58fae28
updating poms for 17.0.149 branch with snapshot versions
Apr 2, 2026
2141d18
updating poms for 17.0.150-SNAPSHOT development
Apr 2, 2026
b32e9ad
updating poms for branch'dev/release-17.0.149' with non-snapshot vers…
Apr 2, 2026
a94828b
Merge branch 'dev/release-17.0.149' into dev/release
Apr 2, 2026
bcfd223
updating develop poms to master versions to avoid merge conflicts
Apr 2, 2026
e7df972
Merge branch 'dev/release' into main
Apr 2, 2026
3fef922
Updating develop poms back to pre merge state
Apr 2, 2026
b19b4a9
Merge remote-tracking branch 'origin/main' into 2608-main-merge
rajkumarmeena Apr 3, 2026
80ebd0e
Merge pull request #81 from hmcts/2608-main-merge
rajkumarmeena Apr 3, 2026
b321d55
updating poms for 17.0.150 branch with snapshot versions
Apr 3, 2026
407a87a
updating poms for 17.0.151-SNAPSHOT development
Apr 3, 2026
fa58f73
updating poms for branch'dev/release-17.0.150' with non-snapshot vers…
Apr 3, 2026
9097e2a
Merge branch 'dev/release-17.0.150' into dev/release
Apr 3, 2026
8368f64
updating develop poms to master versions to avoid merge conflicts
Apr 3, 2026
8305182
Merge branch 'dev/release' into main
Apr 3, 2026
63fa895
Updating develop poms back to pre merge state
Apr 3, 2026
abb7893
RELEASE-ENGG-2609: Bump pom version to -RE-SNAPSHOT
Apr 15, 2026
1ea878c
PEG-2973 cpp-context-hearing Framework D changes
Jan 23, 2026
39d012a
PEG-2848: fix build issue
MohamedFarouk-HMCTS Feb 5, 2026
a0b4a5b
dummy commit to create image (#64)
vmuthuhm Mar 19, 2026
4c1da3f
rebase with team/release-engg-2609
Apr 16, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,20 @@ description = "Identify banned IDs"
regex = '''${GITLEAKS_REGEX_BANNED_IDS}'''
tags = ["banned-ids"]

[allowlist]
description = "Global allowlist"
paths = [
".idea/.*",
"(.*/)?target/.*",
".gitreview"
]
regexes = [
'''(?i).*query\.local-justice.*''',
'''(?i).*referencedata\.query\.local-justice-areas.*''',
'''(?i).*referencedata\.local-authority-address.*''',
'''(?i).*referencedata\.local-justice-area-address.*''',
'''(?i).*referencedata\.query\.local.*''',
'''(?i).*vnd\.referencedata\.query\.local.*''',
'''(?i).*referencedata\.local.*'''
]
[allowlist]
description = "Global allowlist"
paths = [
".idea/.*",
"(.*/)?target/.*",
".gitreview"
]
regexes = [
'''(?i).*query\.local-justice.*''',
'''(?i).*referencedata\.query\.local-justice-areas.*''',
'''(?i).*referencedata\.local-authority-address.*''',
'''(?i).*referencedata\.local-justice-area-address.*''',
'''(?i).*referencedata\.query\.local.*''',
'''(?i).*vnd\.referencedata\.query\.local.*''',
'''(?i).*referencedata\.local.*'''
]

2 changes: 1 addition & 1 deletion azure-pipelines.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ resources:
type: github
name: hmcts/cpp-azure-devops-templates
endpoint: 'hmcts'
ref: 'main'
ref: main

pool:
name: "MDV-ADO-AGENT-AKS-01"
Expand Down
3 changes: 3 additions & 0 deletions buildWithSonar.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,8 @@ set -e

. functions.sh



####
buildWithSonar

2 changes: 1 addition & 1 deletion hearing-command/hearing-command-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<groupId>uk.gov.moj.cpp.hearing</groupId>
<artifactId>hearing-command</artifactId>
<version>17.0.143-SNAPSHOT</version>
<version>17.0.151-RBSD-2609-SNAPSHOT</version>
</parent>
<artifactId>hearing-command-api</artifactId>
<packaging>war</packaging>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -260,11 +260,6 @@ public void publishHearingListsForCrownCourtsWithIds(final JsonEnvelope envelope
sendEnvelopeWithName(envelope, "hearing.command.publish-hearing-lists-for-crown-courts-with-ids");
}

@Handles("hearing.compute-outstanding-fines")
public void computeOutstandingFines(final JsonEnvelope envelope) {
sendEnvelopeWithName(envelope, "hearing.command.compute-outstanding-fines");
}

@Handles("hearing.book-provisional-hearing-slots")
public void bookProvisionalHearingSlots(final JsonEnvelope envelope) {
sendEnvelopeWithName(envelope, "hearing.command.book-provisional-hearing-slots");
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package uk.gov.moj.cpp.hearing.command.api;

import static javax.json.Json.createArrayBuilder;
import static javax.json.Json.createObjectBuilder;
import static uk.gov.justice.services.messaging.JsonObjects.createArrayBuilder;
import static uk.gov.justice.services.messaging.JsonObjects.createObjectBuilder;
import static uk.gov.justice.services.core.annotation.Component.COMMAND_API;

import uk.gov.justice.services.common.converter.ZonedDateTimes;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package uk.gov.moj.cpp.hearing.command.api.service;

import static javax.json.Json.createObjectBuilder;
import static uk.gov.justice.services.messaging.JsonObjects.createObjectBuilder;
import static uk.gov.justice.services.core.annotation.Component.COMMAND_API;
import static uk.gov.justice.services.messaging.JsonEnvelope.envelopeFrom;
import static uk.gov.justice.services.messaging.JsonObjects.getUUID;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package uk.gov.moj.cpp.hearing.command.api.service;

import static java.util.stream.Collectors.toList;
import static javax.json.Json.createObjectBuilder;
import static uk.gov.justice.services.messaging.JsonObjects.createObjectBuilder;
import static uk.gov.justice.services.core.annotation.Component.COMMAND_API;
import static uk.gov.justice.services.messaging.Envelope.metadataFrom;
import static uk.gov.justice.services.messaging.JsonEnvelope.envelopeFrom;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -449,15 +449,6 @@ rule "Command - API - Action - hearing.publish-hearing-lists-for-crown-courts-wi
$outcome.setSuccess(true);
end

rule "Command - API - Action - hearing.compute-outstanding-fines"
when
$outcome: Outcome();
$action: Action(name == "hearing.compute-outstanding-fines");
eval(userAndGroupProvider.isMemberOfAnyOfTheSuppliedGroups($action,"Court Clerks", "Legal Advisers", "Court Associate", "NCES", "Court Administrators"));
then
$outcome.setSuccess(true);
end

rule "Command - API - Action - hearing.record-session-time"
when
$outcome: Outcome();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -551,22 +551,6 @@ baseUri: http://localhost:8080/hearing-command-api/command/api/rest/hearing
202:
description: Request accepted

/outstanding-fines:
post:
description: |
...
(mapping):
requestType: application/vnd.hearing.compute-outstanding-fines+json
name: hearing.compute-outstanding-fines
...
body:
application/vnd.hearing.compute-outstanding-fines+json:
example: !include json/hearing.compute-outstanding-fines.json
schema: !include json/schema/hearing.compute-outstanding-fines.json
responses:
202:
description: OK

/record-session-time:
post:
description: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@
},
"vacatedTrialReasonId": {
"$ref": "http://justice.gov.uk/domain/core/common/definitions.json#/definitions/uuid"
},
"crackedIneffectiveSubReasonId": {
"$ref": "http://justice.gov.uk/domain/core/common/definitions.json#/definitions/uuid"
}

},
"oneOf": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

import javax.json.JsonObject;

import static javax.json.Json.createObjectBuilder;
import static uk.gov.justice.services.messaging.JsonObjects.createObjectBuilder;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.core.Is.is;
import static org.mockito.Mockito.verify;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@ public class HearingCommandApiAccessControlTest extends BaseDroolsAccessControlT
private static final String ACTION_NAME_COURT_LIST_PUBLISH_STATUS = "hearing.publish-court-list";
private static final String ACTION_NAME_PUBLISH_HEARING_LISTS_FOR_CROWN_COURTS = "hearing.publish-hearing-lists-for-crown-courts";
private static final String ACTION_NAME_PUBLISH_HEARING_LISTS_FOR_CROWN_COURTS_WITH_IDS = "hearing.publish-hearing-lists-for-crown-courts-with-ids";
private static final String ACTION_NAME_COMPUTE_OUTSTANDING_FINES = "hearing.compute-outstanding-fines";

private static final String ACTION_NAME_RECORD_SESSION_TIME = "hearing.record-session-time";
private static final String ACTION_NAME_BOOK_PROVISIONAL_HEARING_SLOTS = "hearing.book-provisional-hearing-slots";
private static final String ACTION_NAME_SET_TRIAL_TYPE = "hearing.set-trial-type";
Expand Down Expand Up @@ -590,25 +588,6 @@ public void shouldNotAllowUserInAuthorisedGroupToBookProvisionalHearingSlots() {
assertFailureOutcome(results);
}


@Test
public void shouldAllowAuthorisedUserToComputeOutstandingFines() {
final Action action = createActionFor(ACTION_NAME_COMPUTE_OUTSTANDING_FINES);
given(this.userAndGroupProvider.isMemberOfAnyOfTheSuppliedGroups(action, "Court Clerks", "Legal Advisers", "Court Associate", "NCES", "Court Administrators"))
.willReturn(true);

final ExecutionResults results = executeRulesWith(action);
assertSuccessfulOutcome(results);
}

@Test
public void shouldNotAllowUnauthorisedUserToComputeOutstandingFines() {
final Action action = createActionFor(ACTION_NAME_COMPUTE_OUTSTANDING_FINES);

final ExecutionResults results = executeRulesWith(action);
assertFailureOutcome(results);
}

@Test
public void shouldAllowAuthorisedUserToRecordSessionTime() {
final Action action = createActionFor(ACTION_NAME_RECORD_SESSION_TIME);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import static java.util.function.Function.identity;
import static java.util.stream.Collectors.toList;
import static java.util.stream.Collectors.toMap;
import static javax.json.Json.createObjectBuilder;
import static uk.gov.justice.services.messaging.JsonObjects.createObjectBuilder;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.containsInAnyOrder;
import static org.hamcrest.core.Is.is;
Expand Down Expand Up @@ -236,15 +236,6 @@ public void shouldPassThroughAddCompanyRepresentativeRequestToCommandHandler() {
assertEnvelopeIsPassedThroughWithName(jsonRequestEnvelope.payloadAsJsonObject(), "hearing.command.add-company-representative");
}

@Test
public void shouldPassThroughComputeOutstandingFinesRequestToCommandHandler() {
final JsonEnvelope jsonRequestEnvelope = buildDummyJsonRequestEnvelopeWithName("hearing.compute-outstanding-fines");

hearingCommandApi.computeOutstandingFines(jsonRequestEnvelope);

assertEnvelopeIsPassedThroughWithName(jsonRequestEnvelope.payloadAsJsonObject(), "hearing.command.compute-outstanding-fines");
}

@Test
public void shouldPassThroughBookProvisionalHearingSlotsRequestToCommandHandler() {
final JsonEnvelope jsonRequestEnvelope = buildDummyJsonRequestEnvelopeWithName("hearing.book-provisional-hearing-slots");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
import static java.lang.Boolean.TRUE;
import static java.lang.String.format;
import static java.util.UUID.randomUUID;
import static javax.json.Json.createArrayBuilder;
import static javax.json.Json.createObjectBuilder;
import static uk.gov.justice.services.messaging.JsonObjects.createArrayBuilder;
import static uk.gov.justice.services.messaging.JsonObjects.createObjectBuilder;
import static org.hamcrest.CoreMatchers.allOf;
import static org.hamcrest.CoreMatchers.equalTo;
import static org.hamcrest.MatcherAssert.assertThat;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

import static com.jayway.jsonpath.matchers.JsonPathMatchers.withJsonPath;
import static java.util.UUID.randomUUID;
import static javax.json.Json.createArrayBuilder;
import static javax.json.Json.createObjectBuilder;
import static uk.gov.justice.services.messaging.JsonObjects.createArrayBuilder;
import static uk.gov.justice.services.messaging.JsonObjects.createObjectBuilder;
import static org.hamcrest.CoreMatchers.allOf;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.core.Is.is;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package uk.gov.moj.cpp.hearing.command.api;

import static javax.json.Json.createObjectBuilder;
import static uk.gov.justice.services.messaging.JsonObjects.createObjectBuilder;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.core.Is.is;
import static org.mockito.Mockito.verify;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

import javax.json.JsonObject;

import static javax.json.Json.createObjectBuilder;
import static uk.gov.justice.services.messaging.JsonObjects.createObjectBuilder;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.core.Is.is;
import static org.mockito.Mockito.verify;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package uk.gov.moj.cpp.hearing.command.api.service;

import static java.util.UUID.randomUUID;
import static javax.json.Json.createObjectBuilder;
import static uk.gov.justice.services.messaging.JsonObjects.createObjectBuilder;
import static org.mockito.ArgumentMatchers.any;
import static org.mockito.Mockito.times;
import static org.mockito.Mockito.verify;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
import java.util.List;
import java.util.UUID;

import javax.json.Json;
import uk.gov.justice.services.messaging.JsonObjects;
import javax.json.JsonObject;

import org.junit.jupiter.api.Test;
Expand Down Expand Up @@ -71,7 +71,7 @@ public void shouldReturnValidResultDefinition() {

@Test
public void shouldReturnEmptyResultDefinition() {
final JsonObject jsonObjectPayload = Json.createObjectBuilder().add("resultDefinitions", Json.createArrayBuilder().add(Json.createObjectBuilder().build())).build();
final JsonObject jsonObjectPayload = JsonObjects.createObjectBuilder().add("resultDefinitions", JsonObjects.createArrayBuilder().add(JsonObjects.createObjectBuilder().build())).build();
final Metadata metadata = CommandAPITestBase.metadataFor(RESULT_QUERY, randomUUID().toString());
final Envelope envelope = Envelope.envelopeFrom(metadata, jsonObjectPayload);

Expand Down
2 changes: 1 addition & 1 deletion hearing-command/hearing-command-handler/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<groupId>uk.gov.moj.cpp.hearing</groupId>
<artifactId>hearing-command</artifactId>
<version>17.0.143-SNAPSHOT</version>
<version>17.0.151-RBSD-2609-SNAPSHOT</version>
</parent>
<artifactId>hearing-command-handler</artifactId>
<packaging>war</packaging>
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package uk.gov.moj.cpp.hearing.command.handler;

import static java.util.stream.Collectors.toList;
import static javax.json.Json.createObjectBuilder;
import static uk.gov.justice.services.messaging.JsonObjects.createObjectBuilder;
import static uk.gov.justice.services.core.annotation.Component.COMMAND_HANDLER;
import static uk.gov.justice.services.messaging.JsonEnvelope.envelopeFrom;
import static uk.gov.justice.services.messaging.JsonEnvelope.metadataFrom;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
import java.util.stream.Stream;

import javax.inject.Inject;
import javax.json.Json;
import uk.gov.justice.services.messaging.JsonObjects;
import javax.json.JsonString;
import javax.json.JsonValue;

Expand Down Expand Up @@ -94,7 +94,7 @@ public void publishHearingListsForCrownCourts(final JsonEnvelope commandEnvelope
@Handles("hearing.command.publish-hearing-lists-for-crown-courts-with-ids")
public void publishHearingListsForCrownCourtsWithIds(final JsonEnvelope commandEnvelope) {
Optional.ofNullable(commandEnvelope.payloadAsJsonObject().getJsonArray("ids"))
.orElse(Json.createArrayBuilder().build()).getValuesAs(JsonString.class)
.orElse(JsonObjects.createArrayBuilder().build()).getValuesAs(JsonString.class)
.stream().map(JsonString::getString).map(UUID::fromString)
.forEach(courtCentreId -> publishFinalCourtList(commandEnvelope.metadata(), courtCentreId));
}
Expand All @@ -121,7 +121,7 @@ private PublishCourtList generatePublishCourtListCommand(final UUID courtCentreI
}

public static JsonValue asJson(final PublishCourtList publishCourtList) {
return Json.createObjectBuilder()
return JsonObjects.createObjectBuilder()
.add(PublishCourtListFields.COURT_CENTRE_ID.getInternalName(), publishCourtList.getCourtCentreId().toString())
.add(PublishCourtListFields.CREATED_TIME.getInternalName(), publishCourtList.getCreatedTime().toString())
.build();
Expand Down
Loading