Skip to content

Prescripteur: Pouvoir valider l’éligibilité IAE sans être dans le parcours Postuler [GEN-825]#5809

Merged
tonial merged 6 commits into
masterfrom
alaurent/update_diag
Mar 25, 2025
Merged

Prescripteur: Pouvoir valider l’éligibilité IAE sans être dans le parcours Postuler [GEN-825]#5809
tonial merged 6 commits into
masterfrom
alaurent/update_diag

Conversation

@tonial

@tonial tonial commented Mar 23, 2025

Copy link
Copy Markdown
Contributor

🤔 Pourquoi ?

Pour l'instant la vue n'est pas réutilisée dans le parcours de candidature.
Ce sera fait dans un second temps comme ça on débloque cette fonctionnalité sans attendre.
Cette seconde partie est en draft dans la PR #5810. Il reste cependant des éléments à éclaircir pour fluidifier le passage d'un "module" métier à l'autre.

Pour tester : se connecter avec un compte prescripteur et aller dans l'espace candidat:

  • PH :
    • nouveaux liens dans la liste et le détail des candidats qui n'ont pas de PASS IAE
    • si on essaye d'ajouter un candidat déjà existant qui n'a pas de PASS IAE, le lien de mise à jour d'éligibilité est présent et le candidat sera ajouté à l'espace si rempli un nouveau diagnostic.
  • orienteur avec et sans org : rien ne change

🍰 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 23, 2025
@tonial tonial requested review from EwenKorr and xavfernandez March 23, 2025 08:41
@tonial tonial self-assigned this Mar 23, 2025
@notion-workspace

Copy link
Copy Markdown

@github-actions

Copy link
Copy Markdown

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

@tonial tonial requested a review from hellodeloo March 23, 2025 18:11
Comment thread itou/www/eligibility_views/views.py Outdated
Comment thread itou/www/eligibility_views/views.py Outdated
Comment thread itou/templates/job_seekers_views/includes/list_results.html Outdated
@tonial tonial force-pushed the alaurent/update_diag branch from d9dc7aa to 01a88b3 Compare March 24, 2025 12:52

@hellodeloo hellodeloo left a comment

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.

UI LGTM

@tonial tonial force-pushed the alaurent/update_diag branch 2 times, most recently from f3bf321 to aba19be Compare March 24, 2025 14:14
@tonial tonial requested a review from EwenKorr March 24, 2025 14:39
@tonial tonial force-pushed the alaurent/update_diag branch 2 times, most recently from 4b23b46 to 41a054d Compare March 24, 2025 19:59

@EwenKorr EwenKorr left a comment

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.

À part des petites typo ça me paraît bon ! 👍

response = client.get(url)
assert str(parse_response_to_soup(response, "#main")) == snapshot

IAEEligibilityDiagnosisFactory(job_seeker=job_seeker, from_prescriber=True, expired=True)

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.

Besoin de créer un diag ici ?

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.

Ah, c'est pour vérifier que le last_considered_valid() renvoie bien le nouveau ?

@tonial tonial Mar 25, 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.

Je voulais vérifier qu'un diag expiré n'est pas utilisé (et on a donc la même page que sans diag) mais une partie du test manquait :

        response = client.get(url)
        assert str(parse_response_to_soup(response, "#main")) == snapshot

Comment thread tests/www/eligibility_views/test_views.py Outdated
Comment thread tests/www/job_seekers_views/test_details.py Outdated
Comment thread itou/users/models.py
Comment thread itou/users/models.py
Comment thread tests/users/test_models.py
@tonial tonial force-pushed the alaurent/update_diag branch from 41a054d to 7e27a90 Compare March 25, 2025 13:06
@tonial tonial enabled auto-merge March 25, 2025 13:08
@tonial tonial added this pull request to the merge queue Mar 25, 2025
Merged via the queue into master with commit c616d44 Mar 25, 2025
@tonial tonial deleted the alaurent/update_diag branch March 25, 2025 13:24
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