Skip to content

Po 2255 operation report by enforcement service data generation#1603

Closed
marcmollins wants to merge 12 commits intomasterfrom
PO-2255-OperationReportByEnforcementService-data-generation
Closed

Po 2255 operation report by enforcement service data generation#1603
marcmollins wants to merge 12 commits intomasterfrom
PO-2255-OperationReportByEnforcementService-data-generation

Conversation

@marcmollins
Copy link
Copy Markdown
Contributor

JIRA link (if applicable)

https://tools.hmcts.net/jira/browse/PO-2255

Change description

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

[] Yes
[x] No

@marcmollins marcmollins force-pushed the PO-2255-OperationReportByEnforcementService-data-generation branch from 09c5b51 to 32f066f Compare March 18, 2026 10:34
@marcmollins marcmollins marked this pull request as ready for review March 18, 2026 11:45
@marcmollins marcmollins requested review from a team and sarahtw-cgi March 18, 2026 11:45
private String empTel; // debtor_detail.employer_telephone
private String empEmail; // debtor_detail.employer_email
private String lastEnf; // defendant_accounts.last_enforcement (code)
private LocalDate edrDate;
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.

what does edrDate stand for?

Comment thread src/main/java/uk/gov/hmcts/opal/service/report/ReportMetaData.java Outdated
Comment thread src/main/java/uk/gov/hmcts/opal/repository/jpa/ReportSpecs.java Outdated
Comment thread src/main/java/uk/gov/hmcts/opal/repository/jpa/ReportSpecs.java Outdated
Comment thread src/main/java/uk/gov/hmcts/opal/repository/jpa/ReportSpecs.java Outdated
}
String s = status.trim().toLowerCase();
if ("live".equals(s)) {
return cb.and(cb.greaterThan(root.get("accountBalance"), cb.literal(0)),
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.

A lot of these string are being repeated. Could they be made into constants?

Comment thread src/main/java/uk/gov/hmcts/opal/repository/jpa/ReportSpecs.java
Comment thread src/main/java/uk/gov/hmcts/opal/repository/jpa/ReportSpecs.java
Comment thread src/test/java/uk/gov/hmcts/opal/repository/jpa/ReportSpecsTest.java Outdated
assertThat(report.getTransactionList()).isEmpty();

ReportMetaData meta = report.getReportMetaData();
if (meta == null) {
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.

this null check seems unnecessary

@marcmollins marcmollins force-pushed the PO-2255-OperationReportByEnforcementService-data-generation branch from d233615 to 9fede2c Compare March 19, 2026 16:10
@sarahtw-cgi sarahtw-cgi force-pushed the PO-2255-OperationReportByEnforcementService-data-generation branch from 9fede2c to 84c506f Compare April 8, 2026 10:30
@sarahtw-cgi sarahtw-cgi force-pushed the PO-2255-OperationReportByEnforcementService-data-generation branch from a5db11e to 9f7aff1 Compare April 16, 2026 11:18
@sarahtw-cgi
Copy link
Copy Markdown
Contributor

Closed to create a new clean pull request

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.

2 participants