[Refactor]: Consolidate ingestion routes under `features/ingestion/api/`
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 backend/app/features/ingestion/api.py and the five routers in backend/app/api/ (ingestion_summary.py, job_health.py, rejected_executions.py, source_directories.py, metadata_backfill.py), then main.py for router registration. The first step is a maintainer decision on the route-placement convention, so confirm it before moving files. Done means no /ingestions/* router remains under backend/app/api/, /openapi.json is unchanged, and make backend-test passes. The issue is blocked by #306.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Is your feature request related to a problem?
Ingestion routes are split across two locations:
backend/app/features/ingestion/api.py:/ingestions(from-path, from-upload, from-hpc-upload, archive-checkpoints, discovery-results, state).backend/app/api/: five more routers with/ingestionsprefixes and theIngestionstag:ingestion_summary.pyjob_health.py(/ingestions/jobs)rejected_executions.pysource_directories.pymetadata_backfill.py(/ingestions/metadata-backfill)
The modules in app/api/ import private helpers from features/ingestion/api.py, so the split already crosses module boundaries.
The convention is also contradictory. AGENTS.md says "New endpoints go in backend/app/api/" and "API routes in backend/app/api/", but every feature (catalog, ingestion, machine, user, and others) owns its routes in features/*/api.py.
Blocked by #306, which adds public features/ingestion/access.py helpers.
Describe the solution you'd like
- Decide on the convention and update
AGENTS.md. Recommended: feature routes live infeatures/<feature>/api/, andapp/api/keeps only cross-cutting routes (health.py,meta.py,version.py). - Move the five ingestion routers into
features/ingestion/api/(for example,summary.py,job_health.py,rejected_executions.py,source_directories.py,metadata_backfill.py) and updatemain.pyregistration. - Move the related tests to match.
Acceptance criteria
AGENTS.mdstates one route-placement convention, and it matches the code.- No
/ingestions/*router is defined underbackend/app/api/. /openapi.jsonis identical before and after: same paths, methods, tags, and schemas.make backend-testandmake pre-commit-runpass.
Describe alternatives you've considered
- Keep routes in
app/api/and move feature routes there. This conflicts with the feature-based architecture and would touch every feature. - Leave the routes as is and only fix
AGENTS.md. This documents the inconsistency instead of fixing it.
- Lenguaje dominante
- Python
- Estrellas
- 2
- Forks
- 2
- Merge medio
- 12 h 49 min
- PR fusionados (30 d)
- 30
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Tiene una 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 E3SM-Project/simboard
-
enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
E3SM-Project/simboard#504 ·
Los mantenedores suelen responder en 1 día
-
doc
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
E3SM-Project/simboard#356 ·
Los mantenedores suelen responder en 1 día
-
devops
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
E3SM-Project/simboard#292 ·
Los mantenedores suelen responder en 1 día
-
devops
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
E3SM-Project/simboard#170 ·
Los mantenedores suelen responder en 1 día
-
refactor
Dificultad 4/5 3-5 días Aptitud para principiantes 38/100
E3SM-Project/simboard#509 ·
Los mantenedores suelen responder en 1 día
Todos los issues de E3SM-Project/simboard
Issues similares
-
backend: claude chore dependencies
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
briandconnelly/amicus#606 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
semantica-agi/semantica#2320 ·
Los mantenedores suelen responder en 2 días
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 77/100
vllm-project/vllm-omni#11465 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
jxxghp/MoviePilot#7699 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
vllm-project/vllm-ascend#24010 ·
Los mantenedores suelen responder en 1 día