[Discover + Join/Leave] Read authorized session detail
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
- Área
- authorization, database, mobile
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
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.
- Lenguaje dominante
- PLpgSQL
- Estrellas
- 0
- Forks
- 0
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de DevDogsUGA/DogPack
-
polish
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
DevDogsUGA/DogPack#131 ·
-
polish
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
DevDogsUGA/DogPack#130 ·
-
moderation
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
DevDogsUGA/DogPack#119 ·
-
moderation
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
DevDogsUGA/DogPack#113 ·
-
discover
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
DevDogsUGA/DogPack#106 ·
Todos los issues de DevDogsUGA/DogPack
Issues similares
-
ci-cd from-review-extraction severity:nit
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
LearningCircuit/local-deep-research#7479 ·
Los mantenedores suelen responder en 2 días
-
auth type: bug
Dificultad 1/5 Menos de una hora Aptitud para principiantes 84/100
googleapis/google-cloud-swift#1469 ·
Los mantenedores suelen responder en 1 día
-
Add a SECURITY.mdPosiblemente ocupada @islarmeeyah-cyber la tomó hoy. Abiertodocumentation good first issue Stellar Wave
Dificultad 1/5 1-3 horas Aptitud para principiantes 82/100
OlaGreat/starbound-realms#109 · 1 comentario ·
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
Webhook subscription ping disables TLS certificate verification and leaks a debug console.logAbiertobackend bug difficulty: medium priority: high security
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
trustflow-protocol/trustflow-backend#728 ·
Los mantenedores suelen responder en 1 día