Skip to content

CME-942: Create a new endpoint /getCloseCases/{date}#2901

Open
SammiChong wants to merge 11 commits into
CME-943from
CME-942
Open

CME-942: Create a new endpoint /getCloseCases/{date}#2901
SammiChong wants to merge 11 commits into
CME-943from
CME-942

Conversation

@SammiChong

Copy link
Copy Markdown
Contributor

JIRA link (if applicable)

https://tools.hmcts.net/jira/browse/CME-942

Change description

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

[ ] Yes
[x ] No

@SammiChong SammiChong marked this pull request as ready for review May 29, 2026 16:38
Comment thread src/main/java/uk/gov/hmcts/ccd/data/caseclosed/DateCaseClosedEntity.java Outdated
public interface DateCaseClosedRepository extends CrudRepository<DateCaseClosedEntity, Long> {

List<DateCaseClosedEntity> findByStateChangedDateLessThanEqual(LocalDateTime stateChangedDate);
List<DateCaseClosedEntity> findByStateChangedDateBefore(Date stateChangedDate);

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.

use LocalDate instead of Date

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.

I think going back to LocalDateTime for the repository is better because DateCaseClosedEntity.stateChangedDate maps to a timestamp and is now LocalDateTime.

Comment thread src/aat/resources/features/F-943 - Get Closed Cases/F-943.feature Outdated
@@ -0,0 +1,56 @@
@F-943
Feature: F-943: Get closed cases

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.

rename (F-943 - Get Closed Cases) folder to (CME-943 - Get Closed Cases)

@SammiChong SammiChong Jun 4, 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.

I've renamed it to "F-942 - Get Closed Cases" instead of "CME-943 - Get Closed Cases" since that follows the BEFTA naming pattern.

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