Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Improve user name handling

Aperta
#333 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
python

Direzione di ricerca

Inizia individuando prima il modello utente, la pagina del profilo e la migrazione che gestisce first_name e last_name. Verifica come vengono visualizzati e modificati i nomi; il lavoro è considerato completato quando i nomi esistenti sono migrati, gli utenti possono aggiornare un singolo nome dal proprio profilo e questo comportamento è coperto da test.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

enhancement

Currently, Patchwork user accounts have immutable first_name and last_name fields. This can result in a number of issues (see Falsehoods Programmers Believe About Names for a more extensive list), but most significantly results in the following:

  • Users who go by a mononym (not uncommon in pseudonymous software developers)
  • Users cannot update their account if their name changes (not uncommon in general)

I'd suggest making the following changes:

  • Switch to a single "name" field. The two separate name fields seem to always simply be concatenated with a space for display, so this can be handled for existing users by simply doing the same in a migration. This may not be the best solution for some users (e.g. eastern name order, more than 2 names, etc…), but it'll be no worse than the current behavior, and they'll be able to fix it.
  • Provide an option to change their name from their profile page. As far as I can tell, the display name isn't used for any security-relevant purpose, so I don't believe this should cause any problems.
Lingua principale
Python
Stelle
317
Fork
91
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di getpatchwork/patchwork

Tutte le issue di getpatchwork/patchwork

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.