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

Supprime les données de la session après envoi chez hubee #19

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

jbfeldis
Copy link
Collaborator

@jbfeldis jbfeldis commented Jun 13, 2024

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

@jbfeldis jbfeldis requested a review from JeSuisUnCaillou June 13, 2024 09:43
@jbfeldis jbfeldis self-assigned this Jun 13, 2024
@jbfeldis jbfeldis marked this pull request as draft June 13, 2024 15:26
@jbfeldis jbfeldis force-pushed the supprime-les-données-de-la-session branch from 24b4768 to b96eb88 Compare June 13, 2024 16:35
@jbfeldis jbfeldis marked this pull request as ready for review June 13, 2024 16:35
Copy link
Contributor

@JeSuisUnCaillou JeSuisUnCaillou left a 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
Copy link
Contributor

@JeSuisUnCaillou JeSuisUnCaillou Jun 18, 2024

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
Copy link
Contributor

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

@JeSuisUnCaillou JeSuisUnCaillou marked this pull request as draft July 11, 2024 10:22
Copy link

linear bot commented Jul 11, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants