Skip to content

113 remove own user from user searching functions#118

Merged
JonayKB merged 3 commits into
mainfrom
113-remove-own-user-from-user-searching-functions
Apr 23, 2025
Merged

113 remove own user from user searching functions#118
JonayKB merged 3 commits into
mainfrom
113-remove-own-user-from-user-searching-functions

Conversation

@JonayKB
Copy link
Copy Markdown
Owner

@JonayKB JonayKB commented Apr 22, 2025

No description provided.

@JonayKB JonayKB added the enhancement New feature or request label Apr 22, 2025
@JonayKB JonayKB requested review from Copilot and rabgonzalez April 22, 2025 16:12
@JonayKB JonayKB self-assigned this Apr 22, 2025
@JonayKB JonayKB linked an issue Apr 22, 2025 that may be closed by this pull request
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR implements new functionality to add pagination-based user searching by name and corresponding exception handling, as part of the effort to remove the own user from search results.

  • Added getPaginationByName methods to the repository, service, and controller layers.
  • Introduced new tests for successful pagination and exception cases in multiple modules.

Reviewed Changes

Copilot reviewed 8 out of 9 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
API/src/test/java/es/iespuertodelacruz/routinefights/user/infrastructure/adapters/secondary/services/UserEntityServiceTest.java Added tests for getPaginationByName functionality.
API/src/test/java/es/iespuertodelacruz/routinefights/user/infrastructure/adapters/primary/v2/controllers/UserControllerV2Test.java Added controller tests for paginated user search.
API/src/test/java/es/iespuertodelacruz/routinefights/user/domain/services/UserServiceTest.java Updated domain service tests for new pagination support.
API/src/main/java/es/iespuertodelacruz/routinefights/user/infrastructure/adapters/secondary/services/UserEntityService.java Added getPaginationByName implementation with try-catch handling.
API/src/main/java/es/iespuertodelacruz/routinefights/user/infrastructure/adapters/secondary/repositories/IUserEntityRepository.java Added query for paginated user search.
API/src/main/java/es/iespuertodelacruz/routinefights/user/infrastructure/adapters/primary/v2/controllers/UserControllerV2.java Added new controller endpoint for paginated user search.
API/src/main/java/es/iespuertodelacruz/routinefights/user/domain/services/UserService.java Added getPaginationByName method calculating offset from page.
API/src/main/java/es/iespuertodelacruz/routinefights/user/common/IUserCommon.java Extended common interface with getPaginationByName.
Files not reviewed (1)
  • API/src/main/resources/graphql/schema.graphqls: Language not supported
Comments suppressed due to low confidence (1)

API/src/test/java/es/iespuertodelacruz/routinefights/user/infrastructure/adapters/primary/v2/controllers/UserControllerV2Test.java:314

  • Given the PR title indicates removal of the own user from search results, it would be valuable to add tests that verify the own user is not included in the paginated results.
void getPaginationByNameTest() {

@rabgonzalez
Copy link
Copy Markdown
Collaborator

You have to remove the own user from the search function

@JonayKB JonayKB merged commit ccc7af3 into main Apr 23, 2025
3 checks passed
JonayKB added a commit that referenced this pull request Jan 24, 2026
…arching-functions

113 remove own user from user searching functions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove own user from user searching functions

3 participants