semmelei statistics: Admin endpoint for order positions
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 45/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- typescript
Línea de trabajo
Read the specification in #351, especially “Implementation Decisions,” then inspect the existing semmelei admin routes and models; the issue names procurement and items HTTP tests as prior art. Implement the endpoint and test its authorization, period-union, and response cases through the semmelei test harness, then run just gen-api semmelei and commit the generated API output.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Part of #351 (spec). Read the spec first; this ticket covers its backend part.
What to build
An Admin-only endpoint that returns the order positions for a period, as described in #351 "Implementation Decisions".
Contract (frontend tickets build against this)
GET an admin statistics route (e.g. /admin/statistics/positions), query from and to: dates, inclusive, meant as Europe/Berlin calendar days.
A position is returned when its order was placed within [from 00:00, to+1 00:00) Europe/Berlin or its pickup day's effective pickup date lies within [from, to].
Response { positions: StatisticsPosition[] }, snake_case like the other admin schemas:
| field | type | meaning |
|---|---|---|
order |
uuid | the order, to count orders |
ordered_at |
datetime | point in time the order was placed |
status |
OrderStatus | the order's status |
pickup_date |
date | effective pickup date of the pickup day |
deadline |
datetime | the pickup day's Deadline |
dispatched |
bool | pickup day has been Dispatched |
called_off |
bool | pickup day is Called Off |
item |
uuid or null | Item reference, null when the Item was deleted |
item_name |
string or null | the Item's current name, null when deleted |
category |
{ uuid, name } or null |
the Item's current category |
name |
string | name snapshot at order time |
quantity |
int | units ordered |
price_cents |
int | price snapshot in euro cents |
No schema change: everything is derived from existing models.
Acceptance criteria
- Verkauf and anonymous requests are rejected; Admins get the data
- Period union: placed in period, picked up in period, both, neither (excluded)
- Cancelled orders are returned with their status; orders of Called Off days carry
called_off - Deleted Items:
itemanditem_namenull,namekeeps the snapshot - Renamed Items:
item_nameis the current name,namethe snapshot - Moved pickup days report the effective
pickup_date -
dispatchedreflects the Dispatch - HTTP tests through the semmelei test harness (prior art: procurement and items tests)
-
just gen-api semmeleiregenerated and committed with the endpoint
- Lenguaje dominante
- TypeScript
- Estrellas
- 0
- Forks
- 1
- Merge medio
- 9 h 53 min
- PR fusionados (30 d)
- 136
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
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 myOmikron/code
-
wayfinder:task
Dificultad 1/5 Menos de una hora Aptitud para principiantes 90/100
Los mantenedores suelen responder en 1 día
-
wayfinder:task
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
myOmikron/code#102 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
ready-for-agent
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
Los mantenedores suelen responder en 1 día
-
ready-for-agent
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
Los mantenedores suelen responder en 1 día
-
ready-for-agent
Dificultad 5/5 Más de una semana Aptitud para principiantes 38/100
Los mantenedores suelen responder en 1 día
Todos los issues de myOmikron/code
Issues similares
-
Add: ON Phim Viet SDAbiertocheck:passed streams:add
Dificultad 2/5 1-3 horas Aptitud para principiantes 64/100
Los mantenedores suelen responder en 1 día
-
Subagent progress token count ignores usage.iterations and swings on multi-iteration responsesAbiertoarea:agents area:cost bug platform:macos
Dificultad 2/5 1-3 horas Aptitud para principiantes 77/100
anthropics/claude-code#105375 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 79/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 79/100
galaxyproject/loom#616 ·
Los mantenedores suelen responder en 1 día
-
e2e-failure ready-to-code
Dificultad 2/5 1-3 horas Aptitud para principiantes 79/100
redhat-developer/rhdh-plugin-export-overlays#4580 · 1 comentario ·
Los mantenedores suelen responder en 1 día