[Discover + Join/Leave] Handle onboarding-required discovery access
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 42/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- dart, postgresql
- Ambito
- authentication, mobile
Direzione di ricerca
Start with the SQL function in supabase/schemas/private/functions/session_visible.sql to see how onboarding_required is raised, then find AuthController.retry and the account check it runs. The new file lib/screens/discover_screen.dart should map a PostgrestException with onboarding_required to that recheck, while an empty list stays an empty state. Done means test/screens/discover_screen_dp_d02_3_test.dart passes, flutter analyze is clean, and #102 is resolved first.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
What to build
Handle a discovery request that the server refuses because setup is incomplete. Run the existing account check again so the student returns to the correct screen.
Files
lib/screens/discover_screen.dart(new file)- Starting example: supabase/schemas/private/functions/session_visible.sql
Steps
- When loader throws PostgrestException with message onboarding_required/codePT403, call
AuthController.retryand let account check choose the screen. - Other403/empty list stays its existing error/empty distinction; do not treat any empty result as failed onboarding.
- Show generic retry for unavailable network/unknown exceptions.
Example
onboarding_required → account recheck;[] → empty list, not an auth reset.
Check it works
In test/screens/discover_screen_dp_d02_3_test.dart, check the example above and the failure or limit described in the steps. Run flutter test test/screens/discover_screen_dp_d02_3_test.dart and flutter analyze.
Before starting
- #102 — Resolve host names and map session cards
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: network audit bug good first issue priority: P3 security severity: low type: denial-of-service
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
pierruno-labs/prowl#29 ·
-
RUSTSEC-2026-0348: Brotli certificate decompression can allocate up to 1 GiB before authenticationAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
Redact user-identity passwords in standard association logsForse già presa @jdotc1 l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
pydicom/pynetdicom#1098 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100