西武バスGTFSを常時有効化しENABLE_EXPERIMENTAL_BUS_FEATUREフラグを削除 - #1594
Merged
Conversation
- GtfsFeedのexperimentalフィールドと関連の環境変数判定を削除し、 設定済みの全GTFSフィード(都営バス・西武バス)を常にインポートするように変更 - .env / AGENTS.md / docs/architecture.md / README.md から ENABLE_EXPERIMENTAL_BUS_FEATUREおよびexperimental表記を削除 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FVJjKGTcRodoo6TEeiy6he
Contributor
📝 WalkthroughWalkthrough実験的バスフィード機能フラグ(ENABLE_EXPERIMENTAL_BUS_FEATURE)に関するロジックがimport.rsから削除され、GTFSフィードは常にToei BusとSeibu Busを含む全フィードを取り込むようになった。関連する.env、AGENTS.md、README.md、docs/architecture.mdの記述もこれに合わせて更新された。 Changes実験フラグ撤去とフィード常時有効化
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
Suggested labels: Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
Contributor
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@stationapi/src/import.rs`:
- Around line 317-319: `enabled_gtfs_feeds()` は実質 `GTFS_FEEDS.to_vec()`
の単なるラッパーで、名前にある「enable」判定を行っていません。`enabled_gtfs_feeds` の意図が分かるように、呼び出し側で直接
`GTFS_FEEDS.to_vec()` を使うか、この関数を将来の拡張用エイリアスであることが分かるように明確なコメントを追加して、`GtfsFeed`
の返却意図を誤解しない形にしてください。
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: ASSERTIVE
Plan: Pro
Run ID: fb64d443-fbb5-4f6d-b220-d1675e7af9d9
📒 Files selected for processing (5)
.envAGENTS.mdREADME.mddocs/architecture.mdstationapi/src/import.rs
💤 Files with no reviewable changes (1)
- .env
フィルタリングを行わない薄いラッパーになっていたため、 呼び出し側で GTFS_FEEDS.to_vec() を直接使用する形に変更 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FVJjKGTcRodoo6TEeiy6he
10 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要
西武バスのGTFSフィードを
ENABLE_EXPERIMENTAL_BUS_FEATURE環境変数なしで常時インポートするようにし、同フラグの記述をコード・設定・ドキュメントの全ファイルから削除しました。変更の種類
変更内容
stationapi/src/import.rs:GtfsFeedのexperimentalフィールド、ENABLE_EXPERIMENTAL_BUS_FEATURE_ENV定数、is_experimental_bus_feature_enabled()/gtfs_feeds_for_experimental_enabled()/enabled_gtfs_feeds()を削除し、取り込み処理がGTFS_FEEDS(都営バス・西武バス)を直接参照するように変更。テストをtest_gtfs_feeds(toei と seibu の両方が含まれることを検証)に置き換え.env:ENABLE_EXPERIMENTAL_BUS_FEATURE=falseの行を削除AGENTS.md/docs/architecture.md: フラグの説明を削除し、全GTFSフィードが常にインポートされる旨に更新README.md: 西武バスのデータソース表記から「(experimental feed)」を削除レビュー時の注意: 西武バスフィードは ODPT の consumer key を要求するため、本変更以降は
ODPT_ACCESS_TOKEN未設定の環境ではGTFSインポートがエラーになります(従来はフラグ無効時にスキップ)。バス機能全体を止めるDISABLE_BUS_FEATUREは従来どおり利用できます。テスト
cargo fmt --all -- --checkが通ることcargo clippy -- -D warningsが通ることcargo test(SQLX_OFFLINE=true)が通ること(396件成功)関連Issue
スクリーンショット(任意)
Generated by Claude Code
Summary by CodeRabbit