fix(users): add target round and role payload to user upgrade endpoint
@Rithish-2914 đang làm issue này rồi.
Từ ngày 18/9/2026.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
Problem
The Admin Portal cannot advance users to Round 2 or Round 3 because upgradeUserToRound() in src/api/users.ts sends an empty body {} to POST /admin/users/:id/upgrade.
The backend controller requires dto.UpgradeUserRequest with round_qualified / role in the request body to execute the qualification update.
Steps to Reproduce
- In the admin panel, trigger a user upgrade/promotion for a participant.
- Network tab inspects
POST /admin/users/:id/upgradesending{}(empty payload). - Observed Behavior: The backend cannot determine which round to qualify the user for.
- Expected Behavior: Admins should be able to promote users to Round 2 or Round 3 by passing
{ round_qualified: 2 }or{ round_qualified: 3 }in the request body.
Proposed solution
- Update
upgradeUserToRound(id, payload)insrc/api/users.tsto acceptUpgradeUserPayload { round_qualified?: number, role?: string }. - Update
SetUserRoundto pass the target round when bulk promoting.
Alternatives considered
No response
- Ngôn ngữ chính
- TypeScript
- Star
- 0
- Fork
- 1
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Không có Dockerfile hay 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 CodeChefVIT/cookoff-admin-11.0
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
-
fix(submissions): consume flat UserSubmissionResponse[] instead of nested .submission/.resultsĐang mởenhancement
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 55/100
-
fix(leaderboard): align leaderboard API response parsing and podium rankingsCó thể làm lại được @Rithish-2914 đã nhận 54 ngày trước và không có pull request nào đang mở. Đang mởenhancement
CodeChefVIT/cookoff-admin-11.0#19 · 1 người được giao ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 45/100
Tất cả issue của CodeChefVIT/cookoff-admin-11.0
Issue tương tự
-
nb stats: the high-error-rate anomaly and the error-causes line give different cause splits for the same errorsCó thể đã có người làm @jeanibarz đã nhận hôm nay. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 89/100
jeanibarz/agent-notebook#418 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Page sections overlap each other on every page (e.g. Seasons, Actors and Reviews on show pages)Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
josephfung/curia#2563 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
README demo: offer a controlled video variant next to the GIF for reduced motion and mobile dataĐang mởaccessibility
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
onetechgroupll/eigen-beam#26 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
maintenance
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 77/100
killi199/time-tracking#532 ·
Maintainer thường phản hồi trong vòng 1 ngày