[Sessions: create / edit / cancel] Map mutable session edit fields
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- Nửa ngày
- Mức phù hợp với người mới
- 50/100
Hướng nghiên cứu
Start with the schema in supabase/schemas/dogpack/tables/sessions.sql to see which columns exist, then create lib/sessions/session_repository.dart with Map<String,dynamic> editSessionMap(SessionDraft draft). The map should contain only title, description, location, startsAt, endsAt and capacity, with timestamps as UTC strings, and must omit hostId, course, term, status and id even when the draft carries them. Done when test/sessions/session_repository_dp_s07_test.dart passes under flutter test and flutter analyze is clean.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
What to build
Choose the fields a host may change when editing a meeting. Prepare only title, description, location, time and capacity; its owner, course and semester must stay unchanged.
Files
lib/sessions/session_repository.dart(new file)- Starting example: supabase/schemas/dogpack/tables/sessions.sql
Code to add or extend:Map<String,dynamic> editSessionMap(SessionDraft draft).
Steps
- Return only title,description,location,startsAt,endsAt,capacity from validated draft, timestamps UTC strings.
- Do not include id as updated column, hostId,course,term,status or server metadata.
- Keep target id/owner conditions as separate query inputs, not request data fields.
Example
Map excludes hostId/course/term even if input carries them.
Check it works
In test/sessions/session_repository_dp_s07_test.dart, check the example above and the failure or limit described in the steps. Run flutter test test/sessions/session_repository_dp_s07_test.dart and flutter analyze.
Before starting
- #82 — Validate session time and capacity
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 72/100
-
run_all sleeps after the final job despite documenting delays between jobsCó thể đã có người làm @Gambit-Checkmate đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
-
bnv-manager-v2: accept_invite creates the Mailcow domain admin before the commitCó thể đã có người làm @myOmikron đã nhận hôm nay. Đang mởbug ready-for-agent
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
-
BUG
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
Mai-with-u/MaiBot#2187 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
AG-UI bug pkg:core
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
pydantic/pydantic-ai#10538 ·
Maintainer thường phản hồi trong vòng 1 ngày