Improve user name handling
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 35/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- python
- 領域
- full-stack, web-dev
調査の方向性
まずユーザーモデル、プロフィールページ、そして first_name と last_name を処理するマイグレーションを見つけます。名前がどのように表示・編集されるかを確認します。既存の名前が移行され、ユーザーがプロフィールから一方の名前だけを更新でき、その動作がテストでカバーされていれば完了です。
索引モデルが issue の本文から書いたものです。
説明
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.
- 主要言語
- Python
- スター
- 317
- フォーク
- 91
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
getpatchwork/patchwork のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
getpatchwork/patchwork#668 ·
-
bug web-ui
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
getpatchwork/patchwork#546 · コメント 2 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 52/100
getpatchwork/patchwork#664 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
getpatchwork/patchwork#663 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
getpatchwork/patchwork#645 ·
getpatchwork/patchwork の issue をすべて見る
似ている issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 90/100
learningequality/ricecooker#747 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
BSData/horus-heresy-3rd-edition#3171 ·
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
run-llama/llama_index#23199 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
KhronosGroup/glTF-Blender-IO#2769 ·