Null for a required rollout schedule or stage field answers 500 instead of 422
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ó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 42/100
Hướng nghiên cứu
Reproduce by sending {"name": null} to PUT /api/v1/rollout-schedules/{schedule_id} against PostgreSQL and watch the 500 come from the NOT NULL database error. Read the rollout-schedule and stage update handlers, and how the earlier input refusal in #957 maps errors to 422. Done when each listed nullable field (name, max_percentage, status, stage_order, target_percentage, trigger_type) returns 422 naming the field, with no change to the D213 sweep's batch.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Sending null for a required field on a rollout schedule or stage update answers 500 instead of 422.
What happens
Measured on main (ec7b3b8a) against PostgreSQL: PUT /api/v1/rollout-schedules/{schedule_id} with {"name": null} answers 500. The database refuses the NOT NULL column and the error is not mapped.
By reading, the same applies to:
max_percentageandstatuson the schedule update;name,stage_order,target_percentageandtrigger_typeon the stage update.
Nothing is changed; the request fails as a whole.
Expected
422 naming the field, like the other input refusals. The same family as #957.
Priority
LOW under D213; after launch. The D213 bug sweep's rollout-schedule input batch makes sure its new error mapping leaves this path exactly as it is today, so this stays a separate fix.
- Ngôn ngữ chính
- Python
- Star
- 0
- Fork
- 4
- Merge trung bình
- 5 giờ 36 phút
- Pull request đã merge (30 ngày)
- 509
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- 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 Controlvar/controlvar
-
bug post-launch
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Controlvar/controlvar#1748 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Dashboard: the sequential panel's "Ready to stop" banner shows no sample-ratio-mismatch cautionĐang mởbug post-launch
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Controlvar/controlvar#1737 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug post-launch
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
Controlvar/controlvar#1562 ·
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 90/100
Controlvar/controlvar#1447 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Experiment setup: emptying a traffic share box and typing a number shows a leading zero ("034")Đang mởbug post-launch
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Controlvar/controlvar#1428 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của Controlvar/controlvar
Issue tương tự
-
docs: Release playbookĐang mởdocumentation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
awslabs/social-messaging-agent-runtime-toolkit#140 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
subtask
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
fga-eps-mds/2026.2-MeasureSoftGram-DOC#187 ·
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 83/100
txn2/mcp-data-platform#2493 ·
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 75/100
YO-WHATS-UP2/minigit#78 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
documentation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
liberation-data/drivine-python#432 ·
Maintainer thường phản hồi trong vòng 1 ngày