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

[Discover + Join/Leave] Query upcoming sessions for enrolled courses

Aperta
#101 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
55/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
dart, flutter, sql
Ambito
database, mobile

Direzione di ricerca

Start with the new lib/sessions/session_repository.dart and the example supabase/schemas/private/functions/session_visible.sql, which shows how session visibility is already expressed. Implement discoverSessions(client, term, courses, now) to return an empty list for no courses, otherwise filter by term, course, scheduled status and future start time, ordered soonest first, then map rows with SessionRecord.fromRow. Done when flutter test test/sessions/session_repository_dp_d02_test.dart and flutter analyze pass. Issues #30 and #100 should be resolved first.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

discover

What to build

Find upcoming study meetings for the student’s saved courses and selected semester. Return them soonest first, excluding cancelled meetings and courses the student has not saved.

Files

Steps

  1. Return [] immediately for empty enrolled courses.
  2. Query sessions with term equality, course inFilter, status scheduled, startsAt>now.toUtc ISO, ascending startsAt.
  3. Map rows using SessionRecord.fromRow; rely on member RLS, not administrator credentials.

Example

Course CSCI 1301+term 202702 yields only upcoming scheduled enrolled sessions in soonest order.

Check it works

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

Before starting

  • #30 — Declare a plain Discover query result
  • #100 — Display cancelled and past card states

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 Databases

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.