Feat / Invitation - Add query param "q" and "email" to user endpoint to allow filter by name, first name or email
NyraSama opened this issue · 0 comments
NyraSama commented
🗒️NOTES
"q" filter the user list to contain a string parameter in the firstname, lastname or email
"email" filter the user list to correspond to an exact email parameter
🏁PREREQUISITES
- DOR
- DOD
📜CONTEXT (User Story)
As a customer and captain
I want to filter the invitation list linked to my company by an input or search an email in the yaki database
In order to find a certain user efficiently to add to my team or as a captain
🪜STEPS TO FOLLOW
- Step 1: Find the best way to include the two filters to queries without repetition in "UserJpaRepository"
- Step 2: Change the findAllUsers and getUserPage method in "UserServiceImpl" to handle new query parameters and do the good call from "UserJpaRepository"
- Step 3: Handle the new query parameters in "UserController"
✅ACCEPTANCE CRITERIA
- ✅ We can filter by string the users with endpoint
- ✅ We can get by a certain email the users with endpoint