AOSSIE-Org / AOSSIE-Org/Ell-ena

if the RPC check_team_code_exists throws an exception (e.g. network error), it counts as a failed attempt->Infinite loop

Aperta
#155 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Dart
Stelle
54
Fork
110
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

### Is there an existing issue for this?

- [x] I have searched the existing issues

### What happened?

**Where**: `SupabaseService.createTeam`

**Issue**: The do-while loop tries 10 times to generate a unique ID. If the RPC check_team_code_exists throws an exception (e.g. network error), it counts as a failed attempt. 10 network errors = "Failed to create team".

**Fix**: Distinguish between "Code exists" (retry) and "Network Error" (throw immediately or retry with backoff).

### Record

- [x] I agree to follow this project's Code of Conduct
- [x] I want to work on this issue

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.