[Report & Block] Map report response/error outcomes
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- Mezza giornata
- Idoneità per principianti
- 45/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- dart, flutter, typescript
Direzione di ricerca
Start in lib/moderation/report_client.dart, where reportErrorMessage(int status, String? code) is to be added, and check the Supabase function handler it is modeled on. Confirm that prerequisite #34 is merged first, since this extends its file. Done means the status-to-message mapping in the steps passes test/moderation/report_client_dp_r01_2_test.dart, and flutter analyze is clean.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
What to build
Turn reporting failures into safe messages students can act on. A received-report confirmation must appear only after the service accepts the report, not after a failed or limited request.
Files
lib/moderation/report_client.dart(extend the prerequisite’s file)- Starting example: supabase/functions/report/handler.ts
Code to add or extend:String reportErrorMessage(int status,String? code).
Steps
- Map401→Sign in again.;403→Reports are unavailable for this account.;404→This content is unavailable.;429→Please wait before reporting again.;502/503→Reporting is temporarily unavailable.
- 400 self-report/invalid input yields readable validation error, unknown generic fallback.
- Keep form input on every failure; no raw secret/error body.
Example
429 does not claim receipt;201 only means an accepted report, not moderation action.
Check it works
In test/moderation/report_client_dp_r01_2_test.dart, check the example above and the failure or limit described in the steps. Run flutter test test/moderation/report_client_dp_r01_2_test.dart and flutter analyze.
Before starting
- #34 — Send reports through DogPack report function
References
Assign yourself before starting, or comment to claim the issue. Project setup.
- Lingua principale
- PLpgSQL
- Stelle
- 0
- Fork
- 0
- 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 DevDogsUGA/DogPack
-
polish
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
DevDogsUGA/DogPack#131 ·
-
polish
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
DevDogsUGA/DogPack#130 ·
-
moderation
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
DevDogsUGA/DogPack#119 ·
-
moderation
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
DevDogsUGA/DogPack#113 ·
-
discover
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
DevDogsUGA/DogPack#106 ·
Tutte le issue di DevDogsUGA/DogPack
Issue simili
-
area/linq bug package/core triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno
-
bug engine
Difficoltà 2/5 1-3 ore Idoneità per principianti 86/100
frostney/GocciaScript#1746 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
omegaup/omegaup#10353 · 1 commento ·
I maintainer di solito rispondono entro 5 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
EmbarkStudios/cargo-deny#910 ·