The signup API accepts `organizerDisplayName`, but nothing stores or reads it
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 74/100
- Loại issue
- Tái cấu trúc
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- typescript
Hướng nghiên cứu
Đọc src/schemas/signups.ts và src/mcp/tools/signups-write.ts, sau đó kiểm tra các bài kiểm thử liên quan, đặc biệt là src/mcp/tools/signups-write.test.ts. Xóa phần xử lý organizerDisplayName không được sử dụng, đồng thời giữ nguyên hành vi loại bỏ visibility hiện có và cập nhật chú thích của hành vi đó. Hoàn tất khi khóa này không còn xuất hiện trong src và các bước kiểm tra lint, định dạng, kiểu, knip và kiểm thử được liệt kê đều đạt.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
What happens
SignupCreateInputSchema in src/schemas/signups.ts accepts organizerDisplayName (a NameSchema), and SignupUpdateInputSchema inherits it. Nothing else in the repo uses it. There's no column for it, and createSignup and updateSignup never write it. No screen, email, help page, doc or test sends or reads it. The only other mention is in update_signup (src/mcp/tools/signups-write.ts), which .omits it, with a comment saying no column stores it.
So a REST create or update with a valid value is quietly dropped. A blank, non-string or over-100-character value is refused with a 400 on a field that does nothing.
Open issue #584 (a signup's page gives no way to reach its organizer) already notes this. Whether to delete the key or build on it for #584 is your call, so this is held back.
Fix, in outline (if deleting)
src/schemas/signups.ts: remove theorganizerDisplayNameline, and dropNameSchemafrom that file's import if nothing else there uses it.src/mcp/tools/signups-write.ts: removeorganizerDisplayName: truefrom the.omit, and reword the comment to covervisibilityonly.- Test: a schema test that the key is stripped from parsed input.
Watch for
- Fewer refusals. Both schemas strip unknown keys. After the change, a REST request carrying a bad
organizerDisplayNamesucceeds instead of getting a 400. Nothing that succeeds today starts failing. Say so in the PR. - The activity log loses the key.
signup.updatedrecordschanged: Object.keys(data), so an update that sends the key today lists it inchanged, and afterwards won't. No code readschanged. - The MCP comment is also wrong about
visibility. It says acceptingvisibility"would report a change that never happened". In fact the update schema refusesvisibility, and the.omitturns that refusal into a silent strip.src/mcp/tools/signups-write.test.tspins the strip, so keep the behaviour and only make the comment accurate.
Done when
organizerDisplayNameappears nowhere insrc.pnpm lint && pnpm format:check && pnpm typecheck && pnpm knip && pnpm testpass.
Found by the pipeline's refactor scout in the MCP tools and signup schemas (src/mcp/tools, src/schemas/signups.ts), at be0c273. Checked by an independent verify agent: a whole-repo grep, plus a scratch vitest parse of both schemas with and without the key. https://claude.ai/code/session_016YZ9SS4Qrr2sRQj4bhaMwW
Held back by the scout's cap. Add pipeline:ready to queue it.
- Ngôn ngữ chính
- TypeScript
- Star
- 19
- Fork
- 4
- Merge trung bình
- 19 giờ 38 phút
- Pull request đã merge (30 ngày)
- 197
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của richshaw/OpenSignup
-
enhancement pipeline:proposed pipeline:ux
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
richshaw/OpenSignup#654 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
A failed database query logs its parameters, so OAuth tokens and participant details can end up in the logsCó thể đã có người làm @richshaw đã nhận hôm nay. Đang mởbug pipeline:building
richshaw/OpenSignup#800 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Two breadcrumb pages belong to URLs that always redirect, so they never showCó thể đã có người làm @richshaw đã nhận 1 ngày trước. Đang mởenhancement good first issue pipeline:stuck
richshaw/OpenSignup#793 · 1 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
A failed "Turn reminders back on" reloads the page with no errorCó thể đã có người làm @ShahadatTest đã nhận 2 ngày trước. Đang mởbug good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 25/100
richshaw/OpenSignup#785 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
The Build tab lets a list get a 21st item or one over 60 characters, then rolls it back with a cryptic errorCó thể đã có người làm @richshaw đã nhận 2 ngày trước. Đang mởbug pipeline:building pipeline:ux
richshaw/OpenSignup#784 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của richshaw/OpenSignup
Issue tương tự
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
shoelace-style/webawesome#2979 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Chip source filter and denial markers miss Storage rows when a Storage activity source is pickedĐang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 73/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 77/100
omdsh-dev/DSH-better-sidebar#1141 ·
Maintainer thường phản hồi trong vòng 2 ngày