Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

[Sessions: create / edit / cancel] Map mutable session edit fields

Đang mở
#92 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

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
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
dart, flutter, sql
Lĩnh vực
backend

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ả

sessions

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

Steps

  1. Return only title,description,location,startsAt,endsAt,capacity from validated draft, timestamps UTC strings.
  2. Do not include id as updated column, hostId,course,term,status or server metadata.
  3. 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

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của DevDogsUGA/DogPack

Tất cả issue của DevDogsUGA/DogPack

Issue tương tự

Thêm issue về Backend & API Design

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.