[Report & Block] Render own block list with safe identity fallback
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 75/100
Hướng nghiên cứu
Đọc lib/moderation/block_repository.dart và schema tại supabase/schemas/dogpack/tables/blocks.sql để xem repository chặn hiện có và cấu trúc bảng. Thêm phương thức blockedUserIds lọc theo blockerId, sau đó cập nhật màn hình để hiển thị tên đã lưu trong bộ nhớ đệm hoặc Blocked user <shortID>. Chạy flutter test test/moderation/block_repository_dp_r06_test.dart và flutter analyze; hoàn thành khi test bao phủ phương án dự phòng cho hồ sơ ẩn và test pass.
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 the current student’s own block list and show a safe label for each entry. The list must still support unblocking when the blocked person’s profile is hidden.
Files
lib/moderation/block_repository.dart(extend the prerequisite’s file)- Starting example: supabase/schemas/dogpack/tables/blocks.sql
Code to add or extend:Future<List<String>> blockedUserIds(client,blockerId).
Steps
- Select blockedId from blocks filtered by caller blockerId, not all rows.
- Screen renders each own block using known cached name only when authorized, otherwise Blocked user .
- Do not fetch hidden profiles with administrator credentials to fill names.
Example
Hidden profile still has an unblock row with safe fallback, not guessed name.
Check it works
In test/moderation/block_repository_dp_r06_test.dart, check the example above and the failure or limit described in the steps. Run flutter test test/moderation/block_repository_dp_r06_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 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 ·
-
discover
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
DevDogsUGA/DogPack#99 ·
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 70/100
callstackincubator/simlock#639 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
jules
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
open-learning-exchange/myplanet#18193 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 4 ngày
-
getCredentials fails on an unrecognized fingerprint while the biometric prompt is still openĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
auth0/Auth0.Android#1095 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Nullable GIF input causes NullPointerException in GifStreamObject.loadCó thể đã có người làm @blihio đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
pedroSG94/RootEncoder#2216 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
bug
Độ khó 2/5 Dưới một giờ Mức phù hợp với người mới 78/100
brunodev85/winlator-app#90 ·