fix(users): add target round and role payload to user upgrade endpoint
@Rithish-2914 がすでに取り組んでいます。
2026年9月18日 から。
評価
この issue はまだ評価されていません。
説明
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
- 主要言語
- TypeScript
- スター
- 0
- フォーク
- 1
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
CodeChefVIT/cookoff-admin-11.0 のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
-
enhancement
難易度 3/5 1〜2日 初心者へのやさしさ 55/100
-
fix(leaderboard): align leaderboard API response parsing and podium rankings再び着手できるかも @Rithish-2914 が 54 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンenhancement
CodeChefVIT/cookoff-admin-11.0#19 · 担当者 1 名 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
CodeChefVIT/cookoff-admin-11.0 の issue をすべて見る
似ている issue
-
nb stats: the high-error-rate anomaly and the error-causes line give different cause splits for the same errors対応中かも @jeanibarz が今日担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 89/100
jeanibarz/agent-notebook#418 ·
メンテナーはふだん 1 日以内に返信
-
Page sections overlap each other on every page (e.g. Seasons, Actors and Reviews on show pages)オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
josephfung/curia#2563 ·
メンテナーはふだん 1 日以内に返信
-
README demo: offer a controlled video variant next to the GIF for reduced motion and mobile dataオープンaccessibility
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
onetechgroupll/eigen-beam#26 ·
メンテナーはふだん 1 日以内に返信
-
maintenance
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
killi199/time-tracking#532 ·
メンテナーはふだん 1 日以内に返信