-
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
Candidature : postuler pour un candidat depuis l'espace "Mes candidats" #4860
Conversation
dba9517
to
1670526
Compare
fa19835
to
5f62cce
Compare
🥁 La recette jetable est prête ! 👉 Je veux tester cette PR ! |
5f62cce
to
9e00177
Compare
5cad6b6
to
17d7693
Compare
17d7693
to
621e398
Compare
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.
Ça m'a l'air très efficace comme solution :)
Le mixin mérite d'être retravaillé je pense pour gérer la gestion de l'argument au début et non à la fin du traitement de la requête
0bbb5f5
to
8a3b6d5
Compare
dbebc9f
to
0a3b83b
Compare
🥁 La recette jetable est prête ! 👉 Je veux tester cette PR ! |
2821e15
to
8c8f6f7
Compare
querystring.update(kwargs) | ||
return urlunsplit(parsed._replace(query=querystring.urlencode())) | ||
querystring.update(cleaned_kwargs) | ||
return urlunsplit(parsed._replace(query=querystring.urlencode("/"))) |
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.
J'ai un doute sur ce "/"
: avant on passait back_url
par le filtre urlencode
qui avait bien ce paramètre par défaut, mais je me demande si on ne devrait pas le changer (et utiliser le template tag partout à la place de des {% if back_url %} que j'avais essaimé dans le code).
(pas pour cette PR, plus en tant que refléxion pour un nettoyage future)
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.
J'ai cru remarquer que la gestion de l'encodage des URLs dans les templates mérite un peu de nettoyage en effet.
Django 5.1 avec son nouveau template tag querystring
tombe à point nommé (cf #4943)
itou/templates/companies/includes/_list_siae_actives_jobs_row.html
Outdated
Show resolved
Hide resolved
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.
Ça me semble très bien !
Je te laisse regarder mes derniers commentaires si tu les trouves pertinents
6549146
to
61177f2
Compare
- added a link in job seekers list ("Mes candidats") and in job seeker details page to apply in the name of a specific job seeker - all the links up to `apply:start` have been updated with a GET param (`job_seeker={public_id}`), this allows to keep track of the job seeker we are applying for - when a `job_seeker` GET param is present, and when the current `user` is allowed to, an alert is displayed at the top of the page to remind that we're applying for this job seeker
When visiting `apply:start`, if a job_seeker GET param is set, go directly to ApplicationJobsView
61177f2
to
9e968ec
Compare
🤔 Pourquoi ?
ETQU, lorsque je clique sur le bouton postuler depuis une ligne de la liste candidat ou depuis une page de détail d’un candidat,
je peux faire une recherche d’emploi et postuler sans avoir à renseigner l’adresse e-mail, le NIR du candidat ou les informations personnelles du candidat.
🍰 Comment ?
On passe l'identifiant public du candidat en paramètre
GET
(job_seeker=UUID
).Une mixin permet d'ajouter aux vues utilisées la variable
job_seeker
dans le contexte, si l'utilisateur connecté a la permission (user.can_view_personal_info
). Quand cette variable existe, les URLs utilisées contiennent paramètreGET
, et un bandeau d'information rappelle que l'on postule pour un candidat.🚨 À vérifier
🏝️ Comment tester
En tant que prescripteur : aller sur Candidats > Postuler pour ce candidat.
En tant qu'employeur(-orienteur) (ETTI Une nouvelle chance dans les données de démo) :
Bloc Orientation (sur le tableau de bord) > Candidats > cliquer sur le nom du candidat pour aller sur sa fiche > Postuler pour ce candidat.
💻 Captures d'écran