Skip to content

Candidature: Correction du badge d'éligibilité quand le PASS IAE est expiré [GEN-1462] - #5987

Merged
tonial merged 2 commits into
masterfrom
alaurent/eligibility_badge
Apr 22, 2025
Merged

Candidature: Correction du badge d'éligibilité quand le PASS IAE est expiré [GEN-1462]#5987
tonial merged 2 commits into
masterfrom
alaurent/eligibility_badge

Conversation

@tonial

@tonial tonial commented Apr 17, 2025

Copy link
Copy Markdown
Contributor

🤔 Pourquoi ?

On ne veut plus marquer PASS expiré sur le badge, et laisser l'employeur avoir l'alerte qui lui dit de passer par un prescripteur habilité dans le parcours d'embauche.

J'ai donc revu ma copie

Si on a un diagnostic (de prescripteur?) valide, alors on est éligible, même si on a un PASS expiré dans le délais de carence.

Le template eligibility_badge.html est sacrément plus compliqué, et il manque un joli test pour tester toutes les combinaisons... j'attends un retour sur la carte notion

🍰 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 modifié Modifié dans le changelog. bug labels Apr 17, 2025
@tonial tonial self-assigned this Apr 17, 2025
@tonial
tonial marked this pull request as draft April 17, 2025 14:33
@tonial
tonial force-pushed the alaurent/eligibility_badge branch 2 times, most recently from e20cbc1 to 679d04d Compare April 18, 2025 13:02
@tonial
tonial marked this pull request as ready for review April 18, 2025 13:06
the first asserts would still work even without calling
with_list_related_data()
@tonial
tonial force-pushed the alaurent/eligibility_badge branch 2 times, most recently from 7e28a90 to c3785aa Compare April 22, 2025 05:01
Comment thread tests/job_applications/tests.py
Comment thread itou/templates/apply/includes/eligibility_badge.html Outdated
Comment thread tests/www/apply/__snapshots__/test_list.ambr

@vincentporte vincentporte left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🎯

Comment thread itou/templates/apply/includes/eligibility_badge.html Outdated
Comment thread itou/templates/apply/includes/eligibility_badge.html Outdated

@xavfernandez xavfernandez 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.

A part le soucis de nommage, ça me semble top 👍

@tonial
tonial force-pushed the alaurent/eligibility_badge branch from c3785aa to c54078f Compare April 22, 2025 09:04
Some templates didn't use the same logic as eligibility_badge.html
@tonial
tonial force-pushed the alaurent/eligibility_badge branch from c54078f to 3a27cb5 Compare April 22, 2025 12:38
{% if is_subject_to_eligibility_rules %}
{% if job_seeker.has_valid_approval %}
{% approval_state_badge job_seeker.latest_approval force_valid=force_valid span_extra_class=badge_class %}
{% approval_state_badge job_seeker.latest_approval force_valid=force_valid_approval span_extra_class=badge_class %}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

comme job_seeker.has_valid_approval, force_valid=force_valid_approval n'est pas très utile ?

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.

force_valid=True fait qu'on affiche que le passe est valid sans préciser s'il est suspendu, futur, ou en cours.
C'est donc encore pertinent de le garder :)

@tonial
tonial added this pull request to the merge queue Apr 22, 2025
Merged via the queue into master with commit 5502d46 Apr 22, 2025
@tonial
tonial deleted the alaurent/eligibility_badge branch April 22, 2025 14:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug modifié Modifié dans le changelog.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants