Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

[Discover + Join/Leave] Read authorized session detail

Abierto
#108 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
58/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
dart, flutter, postgresql

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
PLpgSQL
Estrellas
0
Forks
0
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de DevDogsUGA/DogPack

Todos los issues de DevDogsUGA/DogPack

Issues similares

Más issues de Security

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.