Skip to content

Candidature: Amélioration de la délivrance automatique des PASS IAE - #6779

Merged
tonial merged 1 commit into
masterfrom
alaurent/improve_job_app_accept
Sep 4, 2025
Merged

tonial merged 1 commit into
masterfrom
alaurent/improve_job_app_accept

Conversation

@tonial

@tonial tonial commented Sep 2, 2025 •

Copy link
Copy Markdown
Contributor

🤔 Pourquoi ?

https://www.notion.so/gip-inclusion/Am-liorer-la-proc-dure-de-d-livrance-des-PASS-2645f321b6048075a6f7fbb39c84e47d?v=18a5f321b604811bad80000cf7934cee&source=copy_link

🍰 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 self-assigned this Sep 2, 2025
@tonial tonial added the modifié Modifié dans le changelog. label Sep 2, 2025
@tonial
tonial changed the base branch from master to alaurent/clean_PE_approval September 2, 2025 14:22
@tonial
tonial force-pushed the alaurent/improve_job_app_accept branch from d45fdab to a2bf459 Compare September 2, 2025 14:25
@tonial
tonial force-pushed the alaurent/clean_PE_approval branch from f0c3600 to 214cfca Compare September 2, 2025 14:25
@tonial
tonial requested a review from rsebille September 2, 2025 14:25
Comment thread itou/job_applications/models.py Outdated
self.job_seeker.jobseeker_profile.pole_emploi_id
elif ( # Try limiting duplicates
self.job_seeker.jobseeker_profile.nir
or self.job_seeker.approvals.exists() # expired and maybe still in waiting period

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.

Ta PR clarifie le code mais j'ai l'impression que cette ligne sur l'existence du PASS assouplit encore plus le mécanisme automatique.

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, en effet.
Mais pour moi, ce ne sont pas les cas de personne ayant déjà un PASS qui risquent de créer des doublons, si ?
A discuter ensemble avec le métier

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.

J'ai ajouté un 1er commit qui ne fait que ré-écrire la condition de manière plus lisible sans la modifier.
On verra pour la seconde partie

@tonial
tonial force-pushed the alaurent/improve_job_app_accept branch 2 times, most recently from 0499e10 to dcc4612 Compare September 3, 2025 05:04
@tonial
tonial force-pushed the alaurent/clean_PE_approval branch 2 times, most recently from 422b8d3 to 9ff7075 Compare September 4, 2025 04:48
Base automatically changed from alaurent/clean_PE_approval to master September 4, 2025 07:11
@tonial
tonial force-pushed the alaurent/improve_job_app_accept branch from dcc4612 to 23231a8 Compare September 4, 2025 12:27
Don't check old approvals to check if we won't to deliver an approval
to a user with a NIR

It's probably a mistake made in commit 588cd37, since the code does not
match the commit message:

JobApplication: automatically create a PASS if no PE Approval is found.
If the user bears:
- a NIR
- or a pole emploi ID
- or is not registered to PE

AND we did not find any PASS or PE Approval that matches one of these
IDs, then consider there is none and deliver the PASS automatically.

In practice, there is actually none, usually, according to the support
team.
@tonial
tonial force-pushed the alaurent/improve_job_app_accept branch from 23231a8 to c092154 Compare September 4, 2025 13:09
@tonial
tonial added this pull request to the merge queue Sep 4, 2025
Merged via the queue into master with commit cb35e13 Sep 4, 2025
14 checks passed
@tonial
tonial deleted the alaurent/improve_job_app_accept branch September 4, 2025 14:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

modifié Modifié dans le changelog.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants