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

[Onboarding + Enrollments] Define CourseCheck response mapping

Abierto
#13 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
78/100
Tipo de issue
Nueva funcionalidad
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
dart, flutter
Área
backend, testing

Línea de trabajo

Read the generated SDK entry point at packages/sdk_dart/lib/src/generated/catalog.dart and the app configuration in lib/config.dart, then implement the wrapper in lib/onboarding/course_lookup.dart. Add MockClient coverage in test/course_lookup_test.dart for the listed responses and query parameters; done means those tests pass without network access and errors map to unavailable.

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

Descripción

onboarding

What to build

Translate the catalog’s course-check response into four results the setup screen can use. Distinguish an offered course, a known but unoffered course, an unknown code and unavailable information.

Files

  • lib/onboarding/course_lookup.dart (new file)
  • Starting example: lib/config.dart
    Code to add or extend: enum CourseCheck { offered, notOffered, unknown, unavailable }; CourseCheck mapCourseCheck(bool exists,bool? offered).

Steps

  1. Return unknown when exists is false. When exists is true, return offered for offered=true, notOffered for offered=false, and unavailable for offered=null.
  2. Put this in mapCourseCheck(bool exists, bool? offered) and add the four values to CourseCheck. This issue only translates the response; the following issue makes the catalog request.
  3. Check all four combinations. In particular, false/null must be unknown rather than unavailable.

Example

false/null → unknown;true/false → notOffered;true/true → offered.

Check it works

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

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 Backend & API Design

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.