Skip to content

経路推定の廃止 - #5784

Merged
TinyKitten merged 1 commit into
devfrom
feature/remove-route-estimation
Apr 8, 2026
Merged

TinyKitten merged 1 commit into
devfrom
feature/remove-route-estimation

Conversation

@TinyKitten

@TinyKitten TinyKitten commented Apr 8, 2026 •

Copy link
Copy Markdown
Member

概要

需要もなく負荷も高い経路推定コードの削除

変更の種類

  • バグ修正
  • 新機能
  • リファクタリング
  • ドキュメント
  • CI/CD
  • その他

変更内容

テスト

  • npm run lint が通ること
  • npm test が通ること
  • npm run typecheck が通ること

関連Issue

スクリーンショット(任意)

Summary by CodeRabbit

リリースノート

  • Chore
    • 列車タイプの不一致検出機能を削除しました
    • ルート推定機能および関連するユーティリティを削除しました
    • これらの機能に対応するテストを削除しました

@github-actions github-actions Bot added the react label Apr 8, 2026
@coderabbitai

coderabbitai Bot commented Apr 8, 2026 •

Copy link
Copy Markdown
Contributor
📝 Walkthrough

Walkthrough

ルート推定機能に関連する複数のファイルを削除する大規模なリファクタリング。useRouteEstimation、useTrainTypeMismatchDetector、関連するユーティリティ関数、Jotaiアトム、すべてのテストスイートを削除。useWarningInfoから訓練型ミスマッチ検出ロジックを削除。

Changes

Cohort / File(s) Summary
フック実装と再エクスポート
src/hooks/index.ts, src/hooks/useRouteEstimation.ts, src/hooks/useTrainTypeMismatchDetector.ts
ルート推定状態管理フック、訓練型ミスマッチ検出フック、およびそれらの再エクスポートを削除。
フック関連テスト
src/hooks/useRouteEstimation.test.tsx, src/hooks/useTrainTypeMismatchDetector.test.tsx
392行と423行のテストスイートを削除。Apollo lazy query、Jotaiアトム、バッファリングヘルパーのモックと検証をカバーしていた。
ステート管理
src/store/atoms/routeEstimation.ts
ルート推定状態Jotaiアトム、関連インターフェース、初期化ロジックを削除。
ルート推定ユーティリティ
src/utils/routeEstimation/estimateDirection.ts, src/utils/routeEstimation/estimateRoute.ts, src/utils/routeEstimation/preprocessLogs.ts, src/utils/routeEstimation/scoreLine.ts, src/utils/routeEstimation/types.ts
方向推定、ルート推定、GPS ログ前処理、ラインスコアリング、型定義を含むユーティリティモジュール全体を削除。
ルート推定ユーティリティテスト
src/utils/routeEstimation/__tests__/estimateDirection.test.ts, src/utils/routeEstimation/__tests__/estimateRoute.test.ts, src/utils/routeEstimation/__tests__/preprocessLogs.test.ts, src/utils/routeEstimation/__tests__/scoreLine.test.ts
ユーティリティ関数の包括的なテストカバレッジ(合計496行)を削除。
モジュール再エクスポート
src/utils/routeEstimation/index.ts
ルート推定関連のすべての公開エクスポート(推定関数、前処理ヘルパー、スコアリング関数、型定義)を削除。
既存フック修正
src/hooks/useWarningInfo.ts
useTrainTypeMismatchDetectorへの依存関係を削除。訓練型ミスマッチ警告ブランチをロジック決定木から削除。

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Possibly related PRs

Poem

🐰✨ 推定の道を走りたれど、
必要なき枝は払いにけり。
シンプルさ求めて削り落とし、
新しき風のために。
コードの森、すっきりと清し。🌳

🚥 Pre-merge checks | ✅ 2 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning PRの説明は必須セクションの大部分が未入力で不完全です。変更内容と関連Issueの詳細情報が不足しています。 「変更内容」セクションに削除の具体的な理由と影響範囲を記述し、「関連Issue」に該当するIssueリンクを追加してください。
✅ Passed checks (2 passed)
Check name Status Explanation
Title check ✅ Passed PRタイトル「経路推定の廃止」は、このPRの主な変更内容(経路推定機能の完全な削除)を明確かつ簡潔に要約しており、スキャンした履歴から主な変更が理解できます。
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/remove-route-estimation

Comment @coderabbitai help to get the list of available commands and usage tips.

@TinyKitten TinyKitten self-assigned this Apr 8, 2026
@TinyKitten
TinyKitten merged commit 05bc2e6 into dev Apr 8, 2026
6 checks passed
@TinyKitten
TinyKitten deleted the feature/remove-route-estimation branch April 8, 2026 06:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant