[Sessions: create / edit / cancel] Bind edit save/cancel outcomes
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 52/100
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
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
lib/sessions/session_repository.dart(extend the prerequisite’s file)- Starting example: supabase/schemas/dogpack/tables/sessions.sql
Code to add or extend:Future<void> updateSession(client,userId,sessionId,draft).
Steps
- Use
sessions.update(editSessionMap(draft)).eq("id",sessionId).eq("hostId",userId). - Bind edit form save to this method with pending state; map errors through editErrorMessage and retain typed values.
- 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
- 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
-
Rename Madson cameraAperta
Difficoltà 2/5 Meno di un'ora Idoneità per principianti 75/100
StoDevX/AAO-React-Native#8785 ·
I maintainer di solito rispondono entro 1 giorno
-
Android bug feature/error-tracking react-native team/error-tracking
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
PostHog/posthog-js#5310 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
zingolabs/zingo-mobile#1656 ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
Happybello365/innov8#265 ·
I maintainer di solito rispondono entro 3 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
callstackincubator/simlock#639 ·
I maintainer di solito rispondono entro 1 giorno