Skip to content
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

Split User into Account and PasswordUser #364

Merged
merged 1 commit into from
Aug 4, 2022

Conversation

florimondmanca
Copy link
Collaborator

@florimondmanca florimondmanca commented Aug 3, 2022

Closes #362

Cette PR décompose l'entité existante User en deux entités:

  • Account : contient les données "génériques" liées aux comptes utilisateurs dans l'outil
  • PasswordUser : contient les données "spécifiques" à une authentification par couple email/mdp, en l'occurrence seulement le password_hash

La convention est :

De cette façon la présentation reste unifiée via l'interface AccountView.

De fait, il n'y a aucune incidence du point de vue du frontend, qui manipulait déjà des UserView, renommées en AccountView. (Faut-il renommer les entités côté frontend en Account ? Pour l'instant elles restent des User.)

TODO

  • Vérifier rollback de la migration en local
  • Validation staging

@florimondmanca florimondmanca added refactor Modifications du code sans incidence utilisateur ou fonctionnelle back labels Aug 3, 2022
@florimondmanca florimondmanca force-pushed the fm/account-password-user branch 4 times, most recently from e7b6068 to 1f801ec Compare August 3, 2022 12:08
@florimondmanca florimondmanca force-pushed the fm/account-password-user branch from 1f801ec to c0746ee Compare August 4, 2022 10:02
@florimondmanca florimondmanca force-pushed the fm/account-password-user branch from c0746ee to 1c50215 Compare August 4, 2022 10:09
@florimondmanca
Copy link
Collaborator Author

Validation staging

  • Déploiement OK
  • L'outil est fonctionnel
  • Tous les User (3 initialement : admin, demo, et un utilisateur test "[email protected]") ont été migrés vers Account et PasswordUser
  • Toujours possible de se connecter avec le compte admin ou demo

@florimondmanca florimondmanca merged commit 7c00fb6 into master Aug 4, 2022
@florimondmanca florimondmanca deleted the fm/account-password-user branch August 4, 2022 14:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
back refactor Modifications du code sans incidence utilisateur ou fonctionnelle
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Découplage technique entre informations de compte et informations d'authentification
1 participant