Skip to content

Éligibilité : Afficher la certification des critères administratifs aux prescripteurs habilités - #6661

Merged
francoisfreitag merged 2 commits into
masterfrom
ff/crits
Aug 7, 2025
Merged

Éligibilité : Afficher la certification des critères administratifs aux prescripteurs habilités#6661
francoisfreitag merged 2 commits into
masterfrom
ff/crits

Conversation

@francoisfreitag

@francoisfreitag francoisfreitag commented Aug 4, 2025

Copy link
Copy Markdown
Member

🤔 Pourquoi ?

Demande du métier. On a ajusté la durée de vie des diagnostics d’éligibilité pour ne plus avoir besoin de traiter la durée de certification de chaque critère.

https://gip-inclusion.slack.com/archives/C01181Y04LT/p1753367986581349

🍰 Comment ?

Retrait de is_considered_certified, on lit directement certified sur le critère administratif sélectionné. Cela simplifie l’architecture car on utilise directement les données de la base, au lieu de recalculer la validité de la certification pour chaque critère en fonction de la date d’embauche.

🏝️ Comment tester ?

  1. Se connecter en tant que prescripteur habilité
  2. Faire une candidature pour un candidat, établir un diagnostic d’éligibilité avec le critère RSA
  3. Certifier le critère RSA en utilisant ./manage.py shell :
    1. u = User.objects.get(last_name__iexact="Tibo") # Le candidat utilisé pour la candidature
    2. d = u.eligibility_diagnoses.get()
    3. s = d.selected_administrative_criteria.get()
    4. s.certified = True
    5. s.save()
  4. Voir la candidature émise, vérifier que le critère administratif apparaît bien comme certifié

💻 Captures d'écran

Screenshot 2025-08-04 at 15-16-42 Candidature - Julie TIBO - Les emplois de l'inclusion

@francoisfreitag francoisfreitag added the modifié Modifié dans le changelog. label Aug 4, 2025
@francoisfreitag francoisfreitag self-assigned this Aug 4, 2025
@francoisfreitag

Copy link
Copy Markdown
Member Author

Comment thread tests/www/apply/test_process.py Outdated
A hiring start date was required in order to compute whether the
certification would be valid at a given date. Prescribers do not know
the hiring start, so they would not know whether their diagnosis was
backed by a state information system.

Employer eligibility diagnosis were made to expire after 92 days
(instead 183), so that the eligibility diagnosis expiry could be used
instead of individual criteria certification period. Which means that we
can simply check whether the criteria was certified and stop checking
the certification_period entirely.
A hiring start date was required in order to compute whether the
certification would be valid at a given date. Prescribers do not know
the hiring start, so they would not know whether their diagnosis was
backed by a state information system.

Employer eligibility diagnosis were made to expire after 92 days
(instead 183), so that the eligibility diagnosis expiry could be used
instead of individual criteria certification period. Which means that we
can simply check whether the criteria was certified and stop checking
the certification_period entirely.
@francoisfreitag
francoisfreitag added this pull request to the merge queue Aug 7, 2025
Merged via the queue into master with commit cd8fe3d Aug 7, 2025
14 checks passed
@francoisfreitag
francoisfreitag deleted the ff/crits branch August 7, 2025 12:01
@celine-m-s

Copy link
Copy Markdown
Contributor

Je ne suis pas sure de bien tout comprendre. Je référence ici ma PR qui introduit de nouveaux badges. Avec les chassés croisés de congés de chacun, je pense que c'est inutile que je remette en place le système précédent.

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.

3 participants