[Refactor]: Consolidate ingestion routes under `features/ingestion/api/`
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 35/100
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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.
- 主要言語
- Python
- スター
- 2
- フォーク
- 2
- 平均マージ
- 12時間 49分
- マージ済み PR(30日)
- 30
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
E3SM-Project/simboard のほかの issue
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
E3SM-Project/simboard#504 ·
メンテナーはふだん 1 日以内に返信
-
doc
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
E3SM-Project/simboard#356 ·
メンテナーはふだん 1 日以内に返信
-
devops
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
E3SM-Project/simboard#292 ·
メンテナーはふだん 1 日以内に返信
-
devops
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
E3SM-Project/simboard#170 ·
メンテナーはふだん 1 日以内に返信
-
refactor
難易度 4/5 3〜5日 初心者へのやさしさ 38/100
E3SM-Project/simboard#509 ·
メンテナーはふだん 1 日以内に返信
E3SM-Project/simboard の issue をすべて見る
似ている issue
-
backend: claude chore dependencies
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
briandconnelly/amicus#606 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
semantica-agi/semantica#2320 ·
メンテナーはふだん 2 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
vllm-project/vllm-omni#11465 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
jxxghp/MoviePilot#7699 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
vllm-project/vllm-ascend#24010 ·
メンテナーはふだん 1 日以内に返信