Repository navigation
環状路線のETA取得時のdirectionIdとfrom/toの割り当てが進行方向と逆だった不具合を修正 - #6337
Merged
Merged
Conversation
Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WpLyvxXSyp54snZ63h5HwS
Contributor
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthrough環状路線(LOOP)における Changes環状路線direction対応
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
This was referenced Jul 4, 2026
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.
概要
#6334 のフォローアップ。環状路線のETA取得で
directionIdを送るようにしたが、環状路線における INBOUND/OUTBOUND と API 駅格納順の対応が線形路線と逆であることを見落としており、山手線内回り乗車時に逆側(外回り)の弧が返って ETA が一切表示されなかった(canary ビルドの実機で確認された不具合)。変更の種類
変更内容
LOOP_LINE_DIRECTION_IDのマッピングを反転:INBOUND(内回り)→ 1(配列逆順)/OUTBOUND(外回り)→ 0(格納順)。環状路線の進行方向規約は線形路線と逆(useNextStationの環状分岐groupIndex - 1、useLoopLineの inbound が反転配列走査であることに整合)。山手線の格納順(大崎→渋谷→新宿→池袋→上野→東京→品川)は外回りに相当するfromStationId/toStationIdも進行方向の始端→終端になるよう線形路線と逆に割り当てる。従来の割り当てのままだと StationAPI の方向指定つき弧選択(環状路線の到着時間推定で継ぎ目をラップする弧を選択し山手線のETAが出ない問題を修正する StationAPI#1581)が継ぎ目を跨いだ2駅分の弧に潰れ、ETA 対象駅が返らないisLoopLine === false)の from/to と directionId 未送信の挙動は従来と同一directionIdとfromStationId/toStationIdの両方を検証するようにしたテスト
ローカルで
npm run lint && npm test && npm run typecheckを実行し、すべて通過(181 スイート / 1928 テスト)。npm run lintが通ることnpm testが通ることnpm run typecheckが通ること関連Issue
参考: #6334 / TrainLCD/StationAPI#1581
スクリーンショット(任意)
Generated by Claude Code
Summary by CodeRabbit