Export links and the webcal feed 404 under npm run dev
Los mantenedores suelen responder en 7 días
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 83/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- javascript, nginx, node.js
Línea de trabajo
Lee app/facade.js y compara su enrutamiento de desarrollo con los alias de services/nginx/conf.d/shift.conf. Sigue las referencias al campo exportable y a API_ICS_URL mencionadas en el issue para confirmar las rutas solicitadas. Añade las dos asignaciones a la fachada de desarrollo y, después, verifica que ambas URL devuelvan la misma respuesta que /api/ical.php al ejecutar npm run dev.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Under npm run dev, every event's Export link returns 404, in both the Vue calendar and the Hugo theme. The all-events webcal feed does too.
/api/ics.php?event_id=11 -> 404 (what Export links to)
/api/ical.php?event_id=11 -> 200 (the real endpoint)
/api/shift-calendar.php -> 404 (the webcal feed)
Cause
There's no ics.php or shift-calendar.php endpoint in app/. nginx serves ical.php under both names:
# services/nginx/conf.d/shift.conf
location = /api/ics.php { proxy_pass http://node:3080/api/ical.php; }
location = /api/shift-calendar.php { proxy_pass http://node:3080/api/ical.php; }
and the API's exportable field (calDaily.getExportable()) and the Vue app's API_ICS_URL both point at ics.php. So production and the Docker setup work, but node dev has no nginx, and app/facade.js — which stands in for nginx there — doesn't map either name.
Production is unaffected. The cost is that ICS changes can't be checked end to end from the Export link without switching to Docker.
Fix
Mirror the two nginx aliases in facade.js, which only runs under npm run dev.
- Lenguaje dominante
- JavaScript
- Estrellas
- 30
- Forks
- 26
- Merge medio
- 6 d 24 min
- PR fusionados (30 d)
- 6
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Sin plantilla de pull request
- Sin 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 shift-org/shift-docs
-
Unknown --db values report a TypeError instead of the intended errorPosiblemente ocupada @gangster la tomó hace 74 días. Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
shift-org/shift-docs#1091 ·
Los mantenedores suelen responder en 7 días
-
validateRideLength accepts any Object.prototype key as a ride lengthPosiblemente ocupada @gangster la tomó hace 74 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
shift-org/shift-docs#1089 ·
Los mantenedores suelen responder en 7 días
-
Favorites page fetches every favorite because getDaily's guard is invertedPosiblemente ocupada @gangster la tomó hace 74 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
shift-org/shift-docs#1087 ·
Los mantenedores suelen responder en 7 días
-
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
shift-org/shift-docs#1126 ·
Los mantenedores suelen responder en 7 días
-
Address npm audit vulnerabilities (nodemailer, multer, express deps)Posiblemente ocupada @gangster la tomó hace 3 días. Abierto
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
shift-org/shift-docs#1118 · 1 comentario ·
Los mantenedores suelen responder en 7 días
Todos los issues de shift-org/shift-docs
Issues similares
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Billionmail/BillionMail#389 ·
-
beginner-friendly category:finding-titles community enhancement first-timers-only good first issue hacktoberfest help wanted low hanging fruit micro-contribution type: task up-for-grabs
Dificultad 1/5 1-3 horas Aptitud para principiantes 85/100
Berserk-hub150/skillhawk#227 · 1 comentario ·
Los mantenedores suelen responder en 8 días
-
Remove responsibilities not working in Custom Roles & BadgesPosiblemente ocupada @thomasgwatson la tomó hoy. Abiertoagent-ready agent:needs-test
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
gkjohnson/three-mesh-bvh#933 ·
-
scope: curriculum status: waiting triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
freeCodeCamp/freeCodeCamp#71076 ·
Los mantenedores suelen responder en 1 día