Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

[Discover + Join/Leave] Read authorized session detail

Aperta
#108 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

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

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

discover

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

Steps

  1. Select SessionRecord fields from sessions by id using maybeSingle.
  2. Return null when row is hidden/missing, otherwise SessionRecord.fromRow.
  3. 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

  • #33 — Read own joined memberships
  • #30 — Declare a plain Discover query result

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

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di DevDogsUGA/DogPack

Tutte le issue di DevDogsUGA/DogPack

Issue simili

Altre issue su Security

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.