[Discover + Join/Leave] Read authorized session detail
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 58/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- dart, flutter, postgresql
- Ambito
- authorization, database, mobile
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- PLpgSQL
- Stelle
- 0
- Fork
- 0
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di DevDogsUGA/DogPack
-
polish
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
DevDogsUGA/DogPack#131 ·
-
polish
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
DevDogsUGA/DogPack#130 ·
-
moderation
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
DevDogsUGA/DogPack#119 ·
-
moderation
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
DevDogsUGA/DogPack#113 ·
-
discover
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
DevDogsUGA/DogPack#106 ·
Tutte le issue di DevDogsUGA/DogPack
Issue simili
-
Claude Code guards in .claude/settings.json never block: they read unset variables and exit 1Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
starkware-libs/sequencer#15229 ·
I maintainer di solito rispondono entro 1 giorno
-
complexity::1-low effort::1-hours priority::3-could
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
jumpingrivers/audit.workbench#42 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
I maintainer di solito rispondono entro 5 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
Difficoltà 2/5 Mezza giornata Idoneità per principianti 68/100
aws-samples/sample-per-model-bedrock#242 ·
I maintainer di solito rispondono entro 1 giorno