[19.0] endpoint_log: log endpoint calls in database with api_log
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
- 35/100
Línea de trabajo
Start with the open question of which repository should host the module, since that decides the dependency direction. Then read fastapi_log in OCA/rest-framework as the model for the bridge, and look at how ir.http._dispatch receives the functools.partial registered by endpoint_route_handler in web-api. Done means a maintainer has chosen the location and a bridge module logs endpoint calls to api.log, with the migration tracked in OCA/rest-framework#616.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Endpoints currently leave no database record of the calls they receive. The log() helper available to code snippets writes manual messages to ir.logging, and nothing records the request and response themselves.
OCA/rest-framework already provides a generic model for this. api_log stores the URL, method, sanitised headers, body, status, timing and stack trace in api.log, and its api.log_collection.mixin adds a log switch and a Logs button to any model. fastapi_log is the bridge for fastapi.endpoint. The 19.0 migration is OCA/rest-framework#616.
I'd like to contribute an endpoint_log bridge for endpoint.endpoint, and I have a working version for 19.0:
endpoint.endpointinheritsapi.log_collection.mixin.- Logging hooks into
ir.http._dispatch, which receives thefunctools.partialthatendpoint_route_handlerregisters for each route. The endpoint record is resolved from it. The controller is not overridden, because routes call it by its dotted path. - Logs are written through a separate cursor, as in
fastapi_log, so the logs of failed calls are kept. api_logdepends only onweb, so the dependency stays light.
Question for maintainers: where should this module live?
- In web-api, depending on OCA/rest-framework for
api_log. - In rest-framework, next to
fastapi_log, depending on web-api forendpoint.
I'd lean towards web-api, since the module is about endpoints, but I'm happy to go either way.
@qrtl QT7417
Assisted-by: Claude Opus 5.5
- Lenguaje dominante
- Python
- Estrellas
- 49
- Forks
- 124
- Merge medio
- 4 d 13 h
- PR fusionados (30 d)
- 11
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 OCA/web-api
-
Fast API Endpoints CacheAbiertobug
Dificultad 3/5 1-2 días Aptitud para principiantes 55/100
OCA/web-api#200 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
Migration to version 20.0Abiertohelp wanted no stale work in progress
Dificultad 3/5 1-2 días Aptitud para principiantes 45/100
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 4/5 3-5 días Aptitud para principiantes 22/100
OCA/web-api#120 · 3 comentarios ·
Los mantenedores suelen responder en 1 día
-
Migration to version 19.0Abiertohelp wanted no stale work in progress
Dificultad 3/5 1-2 días Aptitud para principiantes 50/100
OCA/web-api#116 · 4 comentarios ·
Los mantenedores suelen responder en 1 día
-
Migration to version 18.0Abiertohelp wanted no stale work in progress
Dificultad 4/5 3-5 días Aptitud para principiantes 25/100
OCA/web-api#64 · 1 comentario ·
Los mantenedores suelen responder en 1 día
Todos los issues de OCA/web-api
Issues similares
-
plot_graph crashes when a mesh node has no m2m edgePosiblemente ocupada @tygvi la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
mllam/neural-lam#883 · 1 comentario ·
Los mantenedores suelen responder en 2 días
-
enhancement possible-duplicate
Dificultad 1/5 1-3 horas Aptitud para principiantes 78/100
AOSSIE-Org/PictoPy#1715 · 2 comentarios ·
Los mantenedores suelen responder en 6 días
-
SQLite connector omits generated columns from the catalog, and drops relationships sourced on themAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
NVIDIA/auto-ontology#511 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
ethereum/execution-specs#3996 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
cpp-best-practices/project_validator#267 ·
Los mantenedores suelen responder en 1 día