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] Cancel through status-only update

Đang mở
#96 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
1-2 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, sql
Lĩnh vực
database, mobile

Hướng nghiên cứu

Start with cancelSession in lib/sessions/session_repository.dart, and read the server guard at supabase/schemas/private/functions/sessions_guard_update.sql to see how cancellation timestamps are set. Read issue #29 first, since this issue builds on it. Done means the cancel call sends only a status update filtered by id and hostId, an already-cancelled session is treated as success on retry, and missing or unauthorized sessions raise a readable error. Verify with test/sessions/session_repository_dp_s09_test.dart, flutter test on that file, and flutter analyze.

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

Cancel a hosted meeting by changing its status, not deleting it. The server supplies the cancellation timestamp, and retrying an already-completed cancellation should be handled safely.

Files

Steps

  1. Update {"status":"cancelled"} only, filtered by id and hostId.
  2. Do not delete row or set cancelledAt; server guard supplies timestamp. For session_cancelled, re-read own row and treat an already-cancelled state as satisfied.
  3. Unknown/missing/permission errors fail with a readable cancellation error.

Example

Request body contains only status; already cancelled row does not become a second update/delete.

Check it works

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

Before starting

  • #29 — Read caller hosted sessions

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ề Databases

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.