Add max length to user input fields
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 55/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- typescript
- 領域
- frontend
調査の方向性
Start by reading application/common/types/commonTypes.ts to find the defined limits, then inspect the Participant and Admin clients and the existing Contact Us form implementation. Identify all user input fields and how their length limits are presented; done means the clients communicate limits consistently with the shared types and the approach is easy to extend to new fields.
索引モデルが issue の本文から書いたものです。
説明
PR related to #891 adds max length to most fields in the api validation, but users are still able to input unreasonably large strings.
Below I was able to input an extremely long string in the first name field (note: that it failed validation):
...JudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudi'
... 31159 more characters
[backend]: }
[backend]: },
[backend]: status: 400
[backend]: }
[backend]: {
[backend]: message: 'Validation Failed',
[backend]: details: { 'bodyRequest.firstName': { message: 'Invalid value provided' } },
[backend]: level: 'error',
[backend]: timestamp: '2026-09-22T03:41:55.923Z'
[backend]: }
It is good practice to communicate limits to users, so we should add max length information to all user input fields (Participant and Admin clients). The max lengths should align with those in application/common/types/commonTypes.ts.
There are a couple of cases where this exists already (e.g. Contact Us form). Ideally the implementation of this is done in a way that makes it easy to maintain and add to new fields that are created.
- 主要言語
- TypeScript
- スター
- 4
- フォーク
- 0
- 平均マージ
- 14時間 50分
- マージ済み PR(30日)
- 5
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Garvan-Data-Science-Platform/ctrl のほかの issue
-
難易度 1/5 1〜3時間 初心者へのやさしさ 82/100
-
admin-client backend bug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
-
backend bug
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
Garvan-Data-Science-Platform/ctrl#970 · コメント 1 件 ·
-
backend bug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
-
backend bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
Garvan-Data-Science-Platform/ctrl の issue をすべて見る
似ている issue
-
afk-ok area:data-quality importer size:S
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
enorm-labs/event-junkie#3301 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
one-zero-eight/apply-bot#39 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
bigbluebutton/bbb-ui-components-react#108 ·
メンテナーはふだん 2 日以内に返信
-
area: app type: bug
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
ExpidetGames/code-reviewer#308 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信