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

Valider le métier sélectionné dans apply:start #4744

Merged
merged 1 commit into from
Sep 19, 2024
Merged

Conversation

francoisfreitag
Copy link
Contributor

@francoisfreitag francoisfreitag commented Sep 13, 2024

🤔 Pourquoi ?

Avant ce commit, on pouvait mettre de mauvaises données dans la session. Ce n’était pas grave, mais pas terrible non plus.

@francoisfreitag francoisfreitag added the no-changelog Ne doit pas figurer dans le journal des changements. label Sep 13, 2024
@francoisfreitag francoisfreitag self-assigned this Sep 13, 2024
Copy link
Contributor

@xavfernandez xavfernandez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 pour la validation de l'argument avant stockage en session mais je ne comprends pas l'autre changement d'utiliser une nouvelle clef au niveau de l'entreprise...

itou/www/apply/views/submit_views.py Outdated Show resolved Hide resolved
itou/www/apply/views/submit_views.py Outdated Show resolved Hide resolved
Copy link
Contributor

@xavfernandez xavfernandez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 mais tu devrais pouvoir squasher les commits

@francoisfreitag francoisfreitag added this pull request to the merge queue Sep 19, 2024
@francoisfreitag francoisfreitag removed this pull request from the merge queue due to a manual request Sep 19, 2024
Before this commit, the session could be polluted with invalid data. It
turns out the data is only used as initial for the ApplicationJobsForm
and gets validated once the form is submitted back, so it does not have
practical implications. We should only store validated data in the
session.
@francoisfreitag francoisfreitag changed the title Clarifier l’utilisation de apply_session Valider le métier sélectionné dans apply:start Sep 19, 2024
@francoisfreitag francoisfreitag added this pull request to the merge queue Sep 19, 2024
Merged via the queue into master with commit 64a9b6c Sep 19, 2024
11 checks passed
@francoisfreitag francoisfreitag deleted the ff/session branch September 19, 2024 09:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-changelog Ne doit pas figurer dans le journal des changements.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants