Skip to content

✨ Add user search functionality with pagination#5

Open
jfaussion wants to merge 3 commits intomainfrom
feature/user-search-by-name
Open

✨ Add user search functionality with pagination#5
jfaussion wants to merge 3 commits intomainfrom
feature/user-search-by-name

Conversation

@jfaussion
Copy link
Owner

@jfaussion jfaussion commented Sep 24, 2025

✅ Type of PR

  • Refactor
  • Feature
  • Bug Fix
  • Optimization
  • Documentation Update

🗒️ Description

Add user search functionality with pagination and flexible query options, including DAO logging aspect for better debugging and monitoring of user retrieval operations.

🚶‍➡️ Behavior

  • Users can now search for other users with flexible query options (name, email, etc.)
  • Search results are paginated to improve performance with large datasets
  • All user retrieval operations are now logged via DAO logging aspect
  • Enhanced user experience with more efficient and targeted user searches

🧪 Steps to test

  • Navigate to the user search endpoint /api/v1/users/search
  • Test with various query parameters (name, email, pagination parameters)
  • Verify search results are returned correctly and paginated
  • Check application logs to confirm DAO logging is working for user retrieval operations
  • Test with large dataset (1000+ users) to verify pagination performance
  • Verify that all search functionality works as expected in the UI

- Add DAOLoggingAspect for automatic logging of DAO method executions
- Implement search users by username with case-insensitive matching
- Add pagination support for user search
- Include optimized query for better performance on large datasets
- add searchUsersByUsername methods to UserService interface
- implement case-insensitive partial matching with validation
- add paginated search with Pageable support
- include comprehensive input sanitization and logging
- create extensive unit tests with edge cases and error handling
- implement conditional response handling for paginated vs standard lists
- introduce username filtering with length validation constraints
- extend data access layer with pageable query capabilities
- add intelligent pagination detection based on request context
- integrate comprehensive request logging with sanitization
- refactor controller to support dual response formats
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant