-
Notifications
You must be signed in to change notification settings - Fork 1
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
feat(anonymisation): anonymiser les utiliseurs quand on le supprime en mettant leur initiales #1480
Conversation
}) | ||
.toPromise(); | ||
|
||
if ( | ||
deleteResult.data?.update_auth_users_by_pk.name !== userId || | ||
deleteResult.data?.update_auth_users_by_pk.id !== userId || |
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.
Du coup on avait un bug ici ?
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.
non avant comme le nom était l'id on checkait le nom et ça marchait mais maintenant il faut bien checker sur l'id
|
||
UPDATE auth.users | ||
SET name = 'CL' | ||
WHERE id = 'aa6d1721-71e5-42a8-bf26-98f453d1fab5'; |
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.
Ca a du être sympa de retrouver les personnes 😄
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.
j'ai regardé dans le fichier audit ^^
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.
pratique cette table audit :)
Co-authored-by: Martial Maillot <[email protected]>
export const deleteUser = async (userId: string): Promise<boolean> => { | ||
const anonymizeUser = (userName: string, userId: string): string => { | ||
if (!userName?.length) return userId.slice(4); | ||
return userName.toUpperCase().split(" ").map((word) => word[0]).join(); |
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.
return userName.toUpperCase().split(" ").map((word) => word[0]).join(); | |
return userName.toUpperCase().split(" ").map((word) => word[0]).join(""); |
désolé 🙈
Quality Gate passedIssues Measures |
🎉 Deployment for commit 9145b27 : Docker images
|
No description provided.