[Discover + Join/Leave] Read authorized session detail
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
- 58/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, postgresql
- Lĩnh vực
- authorization, database, mobile
Hướng nghiên cứu
Start with supabase/schemas/dogpack/tables/session_members.sql to see which rows the current student can read, then create lib/sessions/session_repository.dart with loadSession(client, sessionId). Select the SessionRecord fields from sessions with maybeSingle and map the row with SessionRecord.fromRow, returning null when no row is visible. Done means the tests in test/sessions/session_repository_dp_d06_2_test.dart pass under flutter test, flutter analyze is clean, and a visible cancelled record is still returned. Issues #33 and #30 should be read first, since this builds on them.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
What to build
Load one meeting’s details using the current student’s permissions. Return no meeting when it cannot be viewed, rather than using privileged access to uncover hidden data.
Files
lib/sessions/session_repository.dart(new file)- Starting example: supabase/schemas/dogpack/tables/session_members.sql
Code to add or extend:Future<SessionRecord?> loadSession(client,sessionId).
Steps
- Select
SessionRecordfields from sessions by id using maybeSingle. - Return null when row is hidden/missing, otherwise
SessionRecord.fromRow. - Do not use service key to reveal hidden content; cancellation visibility follows server membership RLS.
Example
Hidden/missing → null/unavailable; visible cancelled joined record preserved.
Check it works
In test/sessions/session_repository_dp_d06_2_test.dart, check the example above and the failure or limit described in the steps. Run flutter test test/sessions/session_repository_dp_d06_2_test.dart and flutter analyze.
Before starting
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ự
-
loginWithCustomTokenExchange() fails when an organization is configuredCó thể đã có người làm @awss1i đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
auth0/auth0-PHP#883 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 81/100
apache/rocketmq-dashboard#6895 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
New Blacklist EntityĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 72/100
StevenBlack/hosts#3272 ·
-
enhancement frontend
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
Albertinesilva/backend-engineering-journey-java-springboot#46 ·
-
Snyk: vulnerabilities in jackson-databind 2.21.5Có thể đã có người làm @harrywu23 đã nhận hôm nay. Đang mởbug
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 80/100
SOFTENG-310-Group-4/Project-A1-310-Group-4#115 ·
Maintainer thường phản hồi trong vòng 1 ngày