Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

[Report & Block] Map report response/error outcomes

Aperta
#112 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

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
Ambito
backend, mobile

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

moderation

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

  1. 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.
  2. 400 self-report/invalid input yields readable validation error, unknown generic fallback.
  3. 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

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di DevDogsUGA/DogPack

Tutte le issue di DevDogsUGA/DogPack

Issue simili

Altre issue su Backend & API Design

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.