fix(users): add target round and role payload to user upgrade endpoint
@Rithish-2914 ci sta già lavorando.
Dal 18/9/2026.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
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
- Lingua principale
- TypeScript
- Stelle
- 0
- Fork
- 1
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di CodeChefVIT/cookoff-admin-11.0
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
-
fix(submissions): consume flat UserSubmissionResponse[] instead of nested .submission/.resultsApertaenhancement
Difficoltà 3/5 1-2 giorni Idoneità per principianti 55/100
-
fix(leaderboard): align leaderboard API response parsing and podium rankingsForse di nuovo libera @Rithish-2914 l’ha presa 54 giorni fa e non c’è nessuna pull request aperta. Apertaenhancement
CodeChefVIT/cookoff-admin-11.0#19 · 1 assegnatario ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
Tutte le issue di CodeChefVIT/cookoff-admin-11.0
Issue simili
-
nb stats: the high-error-rate anomaly and the error-causes line give different cause splits for the same errorsForse già presa @jeanibarz l’ha presa oggi. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 89/100
jeanibarz/agent-notebook#418 ·
I maintainer di solito rispondono entro 1 giorno
-
Page sections overlap each other on every page (e.g. Seasons, Actors and Reviews on show pages)Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
I maintainer di solito rispondono entro 1 giorno
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
josephfung/curia#2563 ·
I maintainer di solito rispondono entro 1 giorno
-
README demo: offer a controlled video variant next to the GIF for reduced motion and mobile dataApertaaccessibility
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
onetechgroupll/eigen-beam#26 ·
I maintainer di solito rispondono entro 1 giorno
-
maintenance
Difficoltà 2/5 1-3 ore Idoneità per principianti 77/100
killi199/time-tracking#532 ·
I maintainer di solito rispondono entro 1 giorno