Skip to content

GPS: Permettre l'ajout de bénéficiaire#5709

Merged
tonial merged 14 commits into
masterfrom
alaurent/gps_add_beneficiary_1
Mar 13, 2025
Merged

GPS: Permettre l'ajout de bénéficiaire#5709
tonial merged 14 commits into
masterfrom
alaurent/gps_add_beneficiary_1

Conversation

@tonial

@tonial tonial commented Mar 2, 2025

Copy link
Copy Markdown
Contributor

🤔 Pourquoi ?

Avec 3 cas de figures:

  • Si employeur ou prescritpeur/orienteur avec une organisation : autocomplete sur les noms des candidats suivis par un collegue (on n'a probablement plus besoin de la recherche full text avec ce nombre beaucoup plus faibles d'utilisateurs, ce qui permettrait de faire une recherche plus laxe ?)
  • Si employeur ou prescritpeur habilité : recherche sur le NIR
  • pour tous : recherche sur nom / prénom / email (à venir)

https://www.notion.so/gip-inclusion/Reprendre-le-flux-d-ajout-de-b-n-ficiaire-pour-tout-le-monde-1835f321b6048043bed7efde05c8f643?pvs=4
figma : https://www.figma.com/design/qgmw6ZTrDRARTNO5yRF1kW/%F0%9F%A7%AD-B%C3%A9n%C3%A9ficiaires?node-id=633-18340&m=dev

🍰 Comment ?

Décrivez en quelques mots la solution retenue et mise en oeuvre, les difficultés ou problèmes rencontrés. Attirez l'attention sur les décisions d'architecture ou de conception importantes.

🚨 À vérifier

  • Mettre à jour le CHANGELOG_breaking_changes.md ?
  • Ajouter l'étiquette « Bug » ?

🏝️ Comment tester ?

Les instructions pour reproduire le problème, les profils de test, le parcours spécifique à utiliser, etc. Si vous disposez d'une recette jetable, mettre l'URL pour tester dans cette partie.

💻 Captures d'écran

@tonial tonial added 1-recette-jetable [Payé à l’heure] Crée une recette jetable sur CC modifié Modifié dans le changelog. labels Mar 2, 2025
@tonial tonial self-assigned this Mar 2, 2025
@github-actions

github-actions Bot commented Mar 2, 2025

Copy link
Copy Markdown

🥁 La recette jetable est prête ! 👉 Je veux tester cette PR !

@tonial
tonial force-pushed the alaurent/gps_add_beneficiary_1 branch 6 times, most recently from 6673a83 to ef41d2a Compare March 5, 2025 05:34
@tonial
tonial marked this pull request as ready for review March 5, 2025 05:35
@tonial
tonial requested review from EwenKorr and xavfernandez March 5, 2025 05:36
@tonial
tonial force-pushed the alaurent/gps_add_beneficiary_1 branch 6 times, most recently from 8212821 to 09d2c1c Compare March 6, 2025 08:43
Comment thread itou/www/signup/forms.py Outdated
Comment thread itou/www/gps/utils.py Outdated
Comment thread itou/www/gps/utils.py Outdated
Comment thread itou/www/gps/views.py Outdated
Comment thread itou/www/gps/forms.py Outdated
Comment thread itou/www/gps/views.py Outdated
Comment thread itou/templates/job_seekers_views/step_search_job_seeker_by_email.html Outdated
@hellodeloo
hellodeloo requested review from hellodeloo and removed request for hellodeloo March 6, 2025 09:50
@tonial
tonial force-pushed the alaurent/gps_add_beneficiary_1 branch 5 times, most recently from 9f3483b to 99ccdc8 Compare March 6, 2025 15:45
@tonial
tonial changed the base branch from master to alaurent/gps_mask_unless March 6, 2025 15:45
@tonial
tonial force-pushed the alaurent/gps_mask_unless branch 2 times, most recently from 5cd3e62 to ea18cae Compare March 6, 2025 20:21
@tonial
tonial force-pushed the alaurent/gps_add_beneficiary_1 branch 3 times, most recently from e6a8987 to 095f498 Compare March 11, 2025 06:26
Comment thread itou/www/gps/views.py
Comment thread tests/gps/test_views.py
Comment thread itou/templates/gps/join_group.html Outdated
Comment thread itou/www/gps/views.py Outdated
Comment thread itou/www/job_seekers_views/views.py Outdated
Comment thread itou/users/models.py Outdated

def autocomplete_display(self):
# Not the same output as the autocomplete but close enough
return self.get_full_name()

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Je me demande si ça ne permet pas à l'orienteur de contourner les règles de can_view_personal_information ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Oui :(

@tonial tonial Mar 11, 2025

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Après, vu notre formulaire, on ne peut pas avoir d'erreur de saisie, donc on ne devrait utiliser ce fallback, si ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Ah, si c'est possible en donnant un choix invalide et ça fait une IDOR où je post une PK et j'obtiens un nom complet.
Comme on ne peut voir ce nom que si on fait exprès de mettre une valeur invalide, je vais afficher "choix invalide" à la place (cf dernier commit)

@tonial
tonial force-pushed the alaurent/gps_add_beneficiary_1 branch 3 times, most recently from 365e944 to 376df3a Compare March 12, 2025 05:01
Comment thread itou/www/gps/forms.py
@tonial
tonial force-pushed the alaurent/gps_add_beneficiary_1 branch from 376df3a to f4f6b81 Compare March 12, 2025 11:03
@tonial
tonial requested a review from xavfernandez March 13, 2025 06:10
@tonial
tonial force-pushed the alaurent/gps_add_beneficiary_1 branch from f4f6b81 to bcdf737 Compare March 13, 2025 06:22
@tonial
tonial added this pull request to the merge queue Mar 13, 2025
Merged via the queue into master with commit fd78e4f Mar 13, 2025
@tonial
tonial deleted the alaurent/gps_add_beneficiary_1 branch March 13, 2025 14:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

1-recette-jetable [Payé à l’heure] Crée une recette jetable sur CC modifié Modifié dans le changelog.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants