[Sessions: create / edit / cancel] Bind edit save/cancel outcomes
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 52/100
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- PLpgSQL
- Star
- 0
- Fork
- 0
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của DevDogsUGA/DogPack
-
polish
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
DevDogsUGA/DogPack#131 ·
-
polish
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
DevDogsUGA/DogPack#130 ·
-
moderation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
DevDogsUGA/DogPack#119 ·
-
moderation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
DevDogsUGA/DogPack#113 ·
-
discover
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
DevDogsUGA/DogPack#106 ·
Tất cả issue của DevDogsUGA/DogPack
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
-
Show Full DetailsĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
leonlatsch/Photok#809 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Submission] SOS紧急联络Đang mởsubmit-adaption submit-adaption-pre
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 92/100
BetterAndroid/android-notification-icon-project#781 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
Maintainer thường phản hồi trong vòng 1 ngày
-
[UI Bug] Home navigation button not selected after pressing Back from Mix, Library, or SearchĐang mởbug:unconfirmed
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
maxrave-dev/SimpMusic#2714 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 3 ngày