Skip to content

fix: exclude wall battles from remaining faction/meta totals - #184

Merged
kxuxi merged 1 commit into
mainfrom
codex/44-exclude-wall-battles-from-remaining-totals
Aug 14, 2026
Merged

fix: exclude wall battles from remaining faction/meta totals#184
kxuxi merged 1 commit into
mainfrom
codex/44-exclude-wall-battles-from-remaining-totals

Conversation

@kxuxi

@kxuxi kxuxi commented Aug 14, 2026

Copy link
Copy Markdown
Owner

Summary

  • 前回のPR(fix: 兵種・装備の勝率から壁戦を除外 #183)で武将・兵種・装備の勝率統計から【壁戦】を除外したが、国(勢力)関連の統計とメタ分析にはまだ抜け漏れがあった
  • collectFactionBattles(国の戦績)、factionSummaries(国一覧の戦闘数)、factionMemberUnitTrends(所属武将の使用兵種チップ)、traitMatchupMatrix/collectTraitMatchupBattles(特性別対戦成績)、metaOverview(メタ分析タブ)、equipSynergy(武器×品物の組み合わせ)に、他の集計関数と同じ isWallBattle(card) ガードを追加
  • yearBucketWinRankings(年代別ランキング)にも同様のガードを追加し、壁戦の勝敗が年代MVP判定に混ざらないようにした

Test plan

  • npx tsc --noEmit
  • npx vitest run(677件、各関数に壁戦除外の回帰テストを追加)
  • npx eslint .
  • npm run build

collectFactionBattles, factionSummaries, factionMemberUnitTrends,
traitMatchupMatrix/collectTraitMatchupBattles, metaOverview, and
equipSynergy were still counting 【壁戦】 (NPC wall defense) toward
battle totals, unlike the other collectors already fixed.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@vercel

vercel Bot commented Aug 14, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
onore-analytics Ready Ready Preview Aug 14, 2026 3:32pm

@kxuxi
kxuxi merged commit f30b9ed into main Aug 14, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant