Fix / Invitation - Invitable user list should only display user from the company (so being in a team) that are not already in team or not captain #1442
In the current application version the user invitation list contain every user from the database.
We should only display users affiliated to the company related to the customer teams.
🏁PREREQUISITES
[x] DOR
[ ] DOD
📜CONTEXT (User Story)
As a customer/captain
I want to be able to invite user without seeing all the database users
In order to add new captains/teammates
🪜STEPS TO FOLLOW
[x] Step 1: Use new query params on user endpoint in user.service.ts in method getUserByPage depending on parameters.
[x] Step 2: Pass the params to the service by getUsersByPage method of userStore.ts.
[x] Step 3: Edit the use of getUsersByPage method of the store in onBeforeMount of UserInvitationPageContent.vue depending on the INVITEDROLE constant.
✅ACCEPTANCE CRITERIA
:heavy_check_mark: The invitation list of captains should only dispaly the users linked to the company by a team and that are not already captains.
:heavy_check_mark: The invitation list of teammates for a team should only display the users linked to the company by a team that are not already in the team we want to add it.
📛BLOCKERS
📛 It seems that this feature need to develop the invitation of user in database by email input before because without this we can't invite people not linked to the company
🔍AFFECTED COMPONENT(S) (Scope)
⛓️LINK TO OTHER ISSUES
🪟SCREEN SHOTS & MOCKUPS
📋TEST STATUSES
What are the test cases required to validate this issue?
[ ] To see
What kind of tests has been put in place to ensure the issue is resolved?
🗒️NOTES
In the current application version the user invitation list contain every user from the database. We should only display users affiliated to the company related to the customer teams.
🏁PREREQUISITES
📜CONTEXT (User Story)
As a customer/captain
I want to be able to invite user without seeing all the database users
In order to add new captains/teammates
🪜STEPS TO FOLLOW
✅ACCEPTANCE CRITERIA
📛BLOCKERS
📛 It seems that this feature need to develop the invitation of user in database by email input before because without this we can't invite people not linked to the company
🔍AFFECTED COMPONENT(S) (Scope)
⛓️LINK TO OTHER ISSUES
🪟SCREEN SHOTS & MOCKUPS
📋TEST STATUSES
What are the test cases required to validate this issue?
What kind of tests has been put in place to ensure the issue is resolved?