fix(users): add target round and role payload to user upgrade endpoint

オープン
#22 コメント 0 件 リアクション 0 件 担当者 1 名 GitHub で見る

@Rithish-2914 がすでに取り組んでいます。

2026年9月18日 から。

評価

この issue はまだ評価されていません。

説明

enhancement
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
  1. In the admin panel, trigger a user upgrade/promotion for a participant.
  2. Network tab inspects POST /admin/users/:id/upgrade sending {} (empty payload).
  3. Observed Behavior: The backend cannot determine which round to qualify the user for.
  4. 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
  1. Update upgradeUserToRound(id, payload) in src/api/users.ts to accept UpgradeUserPayload { round_qualified?: number, role?: string }.
  2. Update SetUserRound to pass the target round when bulk promoting.
Alternatives considered

No response

主要言語
TypeScript
スター
0
フォーク
1
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

CodeChefVIT/cookoff-admin-11.0 のほかの issue

CodeChefVIT/cookoff-admin-11.0 の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。