-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DDLS-406: Allow a multi-client deputy to send a co-deputy invitation from a client linked to their secondary account #1738
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…ble parameter for admin invite pathway
…g co-deputy invite
Raffers
requested changes
Nov 29, 2024
Raffers
approved these changes
Dec 12, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Purpose
A bug was identified whilst investigating another bug ticket (DDLS-396) where a multi-client deputy cannot send a co-deputy invitation from any client attached to their secondary accounts - they can only successfully invite a co-deputy from the client linked to their primary account.
Reason being, is because the deputy account that’s sending the invite is not attached to that particular client on a database level.
Fixes DDLS-406
Approach
Update logic to use the clientId from the URL as part of the co-deputy invitation process
Move function from the OrgService to the UserService as it did not apply to organisations
Add a unit test for the updated endpoint in the CoDeputyController
Add a behat test to cover the user journey
Added in condition in Redirector that co-deputy verification only required when the user has been invited through the co-deputy invite route. The reason this was required is as follows:
Learning
Any tips and tricks, blog posts or tools which helped you. Plus anything notable you've discovered about DigiDeps
Checklist
Frontend