-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Le badge 20+ candidatures sur les résultats de recherche ne doit pas inclure de candidatures archivées #5378
base: master
Are you sure you want to change the base?
Conversation
ead2a31
to
5538caa
Compare
@@ -17,7 +17,7 @@ | |||
<label class="fw-bold stretched-link order-2 order-md-1 m-0" for="{{ choice.id_for_label }}"> | |||
{{ choice.choice_label }} | |||
</label> | |||
{% if job_description.is_popular %} | |||
{% if job_description.is_overwhelmed %} | |||
<div class="order-1 order-md-2"> | |||
<span class="badge badge-sm rounded-pill bg-accent-03 text-primary ms-0 ms-lg-2 mt-1 mt-lg-0"><i class="ri-group-line"></i>20+ candidatures</span> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tu pourrais ici aussi utiliser job_description.OVERWHELMED_THRESHOLD
au lieu de 20 (comme dans _card_jobdescription.html
)
|
||
# Test overwhelmed threshold: overwhelmed job description | ||
overwhelmed_job_description = siae_job_descriptions[0] | ||
for _ in range(JobDescription.OVERWHELMED_THRESHOLD + 1): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tu pourrais en profiter pour le remplacer par JobApplicationFactory.create_batch(JobDescription.OVERWHELMED_THRESHOLD + 1, to_company=company, selected_jobs=[overwhelmed_job_description], job_seeker=job_seeker)
overwhelmed_job_description = siae_job_descriptions[0] | ||
for _ in range(JobDescription.OVERWHELMED_THRESHOLD + 1): | ||
JobApplicationFactory( | ||
to_company=company, selected_jobs=[overwhelmed_job_description], job_seeker=job_seeker |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Il faudrait aussi vérifier que les candidatures archivées ne comptent pas, peut être en archivant une des candidatures créées ici ?
C'est beaucoup plus logique avec ton renommage :) |
https://www.notion.so/plateforme-inclusion/Le-badge-20-candidature-sur-les-r-sultats-de-recherche-ne-doit-pas-inclure-de-candidatures-archiv-e-177e8fa5c35b80e49344f093e58cf484
🤔 Pourquoi ?
Les candidatures archivées (trop anciennes) ne doivent pas être comptées pour l’affichage du badge 20+ candidatures car :
🌈 Et un petit bonus technique en passant
popular
enoverwhelmed
qui est plus pertinent car l'état en question est en fait indésirable.