Remove or replace unused favorites API and middleware code
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 65/100
- Tipo de issue
- Refactorización
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- next.js, typescript
- Área
- authentication, backend
Línea de trabajo
Start by searching the repository for uses of the favorites helpers in src/services/api.tsx and the /user/favorites middleware match in middleware.ts; audit src/models/user.ts without removing unrelated user data. Compare any remaining callers with the /api/timetables routes and saved-timetable flow. Done when dead favorites code is removed, or dependent callers use the supported API with server-side auth enforced.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
There's still some old favorites-related code that doesn't seem to match the current saved-timetable flow.
src/services/api.tsx calls /api/user/favorites, but that route isn't present in the current tree. middleware.ts also matches /user/favorites, while saved timetables now live under /saved and the /api/timetables routes.
Please check whether anything still uses these helpers. If not, remove the dead code and obsolete middleware. If something does depend on them, move it to the supported saved-timetables API and make sure auth remains enforced server-side.
Files: src/services/api.tsx, middleware.ts, src/models/user.ts (audit only — don't delete unrelated user data/models).
- Lenguaje dominante
- TypeScript
- Estrellas
- 7
- Forks
- 39
- Merge medio
- 4 h 24 min
- PR fusionados (30 d)
- 53
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin 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 CodeChefVIT/ffcs
-
Dificultad 4/5 3-5 días Aptitud para principiantes 55/100
CodeChefVIT/ffcs#295 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 4/5 1-2 días Aptitud para principiantes 48/100
CodeChefVIT/ffcs#292 ·
Los mantenedores suelen responder en 1 día
-
Edit a course from Your Courses with a pencil buttonQuizá libre de nuevo @Aiden-Trindade la tomó hace 30 días y no hay ningún pull request abierto. Abierto
Dificultad 5/5 Más de una semana Aptitud para principiantes 43/100
CodeChefVIT/ffcs#291 · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Put the selection box and Your Courses side by side and restyle themPosiblemente ocupada @Aiden-Trindade la tomó hace 30 días. Abierto
Dificultad 4/5 3-5 días Aptitud para principiantes 55/100
CodeChefVIT/ffcs#290 · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Dificultad 4/5 3-5 días Aptitud para principiantes 43/100
CodeChefVIT/ffcs#289 ·
Los mantenedores suelen responder en 1 día
Todos los issues de CodeChefVIT/ffcs
Issues similares
-
enhancement UX
Dificultad 2/5 1-3 horas Aptitud para principiantes 67/100
online-go/online-go.com#4000 ·
Los mantenedores suelen responder en 1 día
-
enhancement good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
SnosMe/awakened-poe-trade#1976 ·
-
[BUG]Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 63/100
jonp-h/TillerQuest#319 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
terrazzoapp/terrazzo#902 ·