Conversation
6 tasks
📊 Jacoco Test Coverage
|
| void 마지막_페이지면_nextCursor는_null이고_hasNext는_false다() { | ||
| // given | ||
| int totalSize = size + 1; | ||
| NotificationInboxSearchRequest request = new NotificationInboxSearchRequest("0", totalSize + 10); |
There was a problem hiding this comment.
Line is longer than 100 characters (found 101).
| NotificationInboxSearchRequest request = new NotificationInboxSearchRequest("0", totalSize + 10); | ||
|
|
||
| // when | ||
| ScrollResponse<NotificationInboxSearchResponse> response = notificationInboxSearchService.search( |
There was a problem hiding this comment.
Line is longer than 100 characters (found 101).
Member
Author
|
@codex 현재 PR에 github-actions bot이 남겨둔 checkstyle warning을 수정해봐 |
|
Summary
Testing
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
ScrollResponselacked an explicithasNextflag, causing duplicate/infinite fetches in some flows.ScrollResponsebehave consistently.Description
boolean hasNextto theScrollResponserecord and set it infrom(List<T>, String)asnextCursor != nullto derive next-page semantics from existing cursor logic.ScrollResponseto asserthasNextsemantics in paging scenarios for both pageable and last-page cases.DduduSearchServiceTest,AnnouncementSearchServiceTest, andNotificationInboxSearchServiceTestto includehasNext=truefor pageable paths andhasNext=falsefor last-page/single-result cases.nextCursorbehavior unchanged and computedhasNextfrom it, minimizing changes to service implementation logic.Testing
./gradlew :application:application-common:compileJava :application:notification-application:compileTestJava :application:planning-application:compileTestJavawhich completed successfully../gradlew :application:planning-application:test --tests "*DduduSearchServiceTest" :application:notification-application:test --tests "*AnnouncementSearchServiceTest" --tests "*NotificationInboxSearchServiceTest"which ultimately failed in this environment due to test environment datasource/Bean creation issues and JaCoCo coverage verification failures../gradlew :application:notification-application:compileTestJava :application:planning-application:compileTestJava.Codex Task