GC Digital Talent is the new recruitment platform for digital and tech jobs in the Government of Canada. // Talents numériques du GC est la nouvelle plateforme de recrutement pour les emplois numériques et technologiques au gouvernement du Canada.
Add Membership table doesn't prevent the user from adding the same team over and over.
It doesn't validate the existing membership and gives successful message toast.
But in the DB it didn't actually save twice which is good.
It would be nice if it can be prevented in first place.
🦋 Expected Behaviour
Add Membership dialog should not show the team that user already belongs to AND no other roles left in that team to assign to.
If there are multiple roles , UI should only provide the remaining roles.
OR
keep the existing and throw an error message user role already exists in the table
🕵️ Details
📋 Steps to Reproduce
Go to admin/users/
Click Edit on any user
click on Edit User Account
Click on Add Membership on Team based roles section
Observe all the teams including the user already belongs to shows up in the dialog
Click on the team that user already belongs to , select role that user already has ( currently only pool operator)
Observe query goes through and success toast message appear
Observe there is no change on the table
📸 Screenshot
🙋♀️ Proposed Solution
✅ Acceptance Criteria
[] UI should be clear of what is happening. Either don't provide the duplicate option OR provide the error message properly
🐛 Bug
Add Membership table doesn't prevent the user from adding the same team over and over. It doesn't validate the existing membership and gives successful message toast. But in the DB it didn't actually save twice which is good. It would be nice if it can be prevented in first place.
🦋 Expected Behaviour
Add Membership dialog should not show the team that user already belongs to AND no other roles left in that team to assign to. If there are multiple roles , UI should only provide the remaining roles.
OR
keep the existing and throw an error message user role already exists in the table
🕵️ Details
📋 Steps to Reproduce
📸 Screenshot
🙋♀️ Proposed Solution
✅ Acceptance Criteria