Skip to content

Conversation

@francoisfreitag
Copy link
Member

🤔 Pourquoi ?

Nos partenaires et le site s’attendent à ce que les deux champs soient remplis.

🏝️ Comment tester

  • Se connecter en tant que candidat
  • Depuis le tableau de bord, accéder au profil du candidat
  • Vérifier que le prénom et le nom sont obligatoires

@francoisfreitag francoisfreitag added the modifié Modifié dans le changelog. label Apr 25, 2024
@francoisfreitag francoisfreitag self-assigned this Apr 25, 2024
Be consistent with the signup form, and expectations from France Travail
and the ASP.
@francoisfreitag francoisfreitag changed the title Profil utilisateur : Rendre les champs prénom et nom obligatoires Profil utilisateur : Rendre les champs prénom et nom obligatoires [GEN-229] Apr 25, 2024
@notion-workspace
Copy link


self.fields["title"].required = True
self.fields["birthdate"].required = True
for required_fieldname in ["title", "birthdate", "first_name", "last_name"]:
Copy link
Contributor

Choose a reason for hiding this comment

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

Peut-être en faire une constante au même niveau que PROFILE_FIELDS ?

Copy link
Member Author

Choose a reason for hiding this comment

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

J’ai vu que c’était fait ailleurs. Ne voyant pas trop l’intérêt, je ne l’ai pas fait. Ça ajoute une indirection pour peu de valeur ajoutée, expose la constante à des mutations futures. Mais l’opposition n’est pas véhémente, si tu trouves ça mieux, je change sans discuter plus.

Copy link
Contributor

Choose a reason for hiding this comment

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

Non c'est plus par cohérence et pour la lisibilité. Mais en l'état pour moi c'est tout bon (c'est approved)

Copy link
Contributor

@xavfernandez xavfernandez left a comment

Choose a reason for hiding this comment

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

A voir avec le métier mais cela aurait peut-être du sens de rajouter first_name & last_name ici également:

# Force the job seeker to fill its title to use the site
if not request.user.title:
return HttpResponseRedirect(reverse("dashboard:edit_user_info"))

@francoisfreitag
Copy link
Member Author

A voir avec le métier mais cela aurait peut-être du sens de rajouter first_name & last_name ici également:

# Force the job seeker to fill its title to use the site
if not request.user.title:
return HttpResponseRedirect(reverse("dashboard:edit_user_info"))

Proposé sur https://itou-inclusion.slack.com/archives/C01AQKD7MAN/p1714381080261479

@francoisfreitag francoisfreitag added this pull request to the merge queue Apr 29, 2024
Merged via the queue into master with commit e32ecc5 Apr 29, 2024
@francoisfreitag francoisfreitag deleted the ff/name-3 branch April 29, 2024 09:26
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.

4 participants