-
Notifications
You must be signed in to change notification settings - Fork 9
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
Ms2/signin merge users #360
Conversation
This change was needed, because the function was redundant and was implemented in a way that caused it to fail. It is redundant to use a userId and an ability, because both tell you for which user we're supposed to get the processes. And it fails because, it returns the processes where the creator was the user, this is wrong, because it doesn't take into consideration abilities. For me is better that the function takes in a spaceId, and returns all processes for a spaceId, and if you want to get the processes for a user you can provide his ability.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
updateFolderMetaData, | ||
updateProcess, | ||
} from '@/lib/data/DTOs'; | ||
import { deleteUser, getUserById } from '@/lib/data/legacy/iam/users'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are the DB methods still TODO?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do you mean?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The DB method of deleteUser
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, they're already implemented, the import was just wrong.
I updated it.
src/management-system-v2/app/transfer-processes/transfer-processes-confitmation-buttons.tsx
Outdated
Show resolved
Hide resolved
This comment has been minimized.
This comment has been minimized.
✅ Successfully created Preview Deployment. |
Summary
Allow processes created by a guest user to be transferred to an already existing authenticated user.
Details
Flow for transferring processes.
referenceToken
that stores the guestId and passes it to the client componentreferenceToken
is used in the callbackUrl of the authentication flowUpdate to
getProcesses
get processes takes in an
(spaceId, ability)
, instead of(userId , ability)
.This change was needed, because the function was redundant and was
implemented in a way that caused it to fail.
It is redundant to use a userId and an ability, because both tell you
for which user we're supposed to get the processes.
And it fails because, it returns the processes where the creator was the
user, this is wrong, because it doesn't take into consideration
abilities.
For me is better that the function takes in a spaceId, and returns all
processes for a spaceId, and if you want to get the processes for a user
you can provide his ability.