-
Notifications
You must be signed in to change notification settings - Fork 0
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
Supprime les données de la session après envoi chez hubee #19
base: main
Are you sure you want to change the base?
The head ref may contain hidden characters: "supprime-les-donn\u00E9es-de-la-session"
Conversation
24b4768
to
b96eb88
Compare
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 juste 2 remarques, mais pas bloquantes.
@@ -19,6 +19,7 @@ def send_qf | |||
result = StoreQuotientFamilial.call(user: Current.user, identity: Current.pivot_identity, quotient_familial: Current.quotient_familial, recipient: hubee_recipient) | |||
|
|||
if result.success? | |||
reset_session |
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.
Si on peut mettre ça dans le ClearCurrentAttributes
, ça peut simplifier le controller (je sais pas si c'possible, ni même si c'est un si bonne idée de lui donner cette responsabilité)
Current.quotient_familial = "quotient_familial" | ||
end | ||
|
||
it "clears the user session" do |
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.
it doesn't clear the user session right now, only the Current's attributes
Les données de l'usager sont stockées en session le temps de faire sa demande, une fois celle-ci "validée" (actuellement après la création du télédossier chez HubEE mais d'ici après avoir ajouté une tâche de fond de création du télédossier) nous pouvons vider la session de l'usager.
Closes https://linear.app/pole-api/issue/API-3145/supprime-les-donnees-de-la-session-apres-envoi-chez-hubee