[Refactor]: Consolidate ingestion routes under `features/ingestion/api/`
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 35/100
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- Python
- Stelle
- 2
- Fork
- 2
- Merge medio
- 12h 49m
- PR unite (30g)
- 30
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di E3SM-Project/simboard
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
E3SM-Project/simboard#504 ·
I maintainer di solito rispondono entro 1 giorno
-
doc
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
E3SM-Project/simboard#356 ·
I maintainer di solito rispondono entro 1 giorno
-
devops
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
E3SM-Project/simboard#292 ·
I maintainer di solito rispondono entro 1 giorno
-
devops
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
E3SM-Project/simboard#170 ·
I maintainer di solito rispondono entro 1 giorno
-
refactor
Difficoltà 4/5 3-5 giorni Idoneità per principianti 38/100
E3SM-Project/simboard#509 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di E3SM-Project/simboard
Issue simili
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
jxxghp/MoviePilot#7699 ·
I maintainer di solito rispondono entro 1 giorno
-
test_real_pandoc_failure_is_one_path_free_line fails on macOS CI with current Homebrew pandocApertabug TAG: unit tests
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
learningequality/ricecooker#898 ·
-
next
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
j3ko/agent-plugins#80 ·
I maintainer di solito rispondono entro 1 giorno
-
bug:unconfirmed
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
Heroic-Games-Launcher/HeroicGamesLauncher#6187 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 1-3 ore Idoneità per principianti 82/100
BCStudentSoftwareDevTeam/cas#491 ·
I maintainer di solito rispondono entro 8 giorni