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

[Sessions: create / edit / cancel] Bind edit save/cancel outcomes

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

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
52/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
dart, flutter
Ambito
mobile

Direzione di ricerca

Start in lib/sessions/session_repository.dart and read the prerequisite from #94 first, since this issue extends that file and the edit form it prefills. Add updateSession(client, userId, sessionId, draft) using the id and hostId filters, and read supabase/schemas/dogpack/tables/sessions.sql for the column names. Done when test/sessions/session_repository_dp_s08_2_test.dart passes, flutter analyze is clean, and a server refusal shows its message while keeping the typed values.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

sessions

What to build

Save the host’s confirmed meeting edits and refresh the affected screens. If the server refuses the change, show its safe message and preserve the typed values for correction.

Files

Steps

  1. Use sessions.update(editSessionMap(draft)).eq("id",sessionId).eq("hostId",userId).
  2. Bind edit form save to this method with pending state; map errors through editErrorMessage and retain typed values.
  3. Successful save refreshes host list/detail; Cancel makes no call.

Example

Own update has ID+host conditions; capacity conflict shows supplied message without losing input.

Check it works

In test/sessions/session_repository_dp_s08_2_test.dart, check the example above and the failure or limit described in the steps. Run flutter test test/sessions/session_repository_dp_s08_2_test.dart and flutter analyze.

Before starting

  • #94 — Prefill the host edit form

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 Mobile Dev

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.