claude-memory/graph/fixes/fix-rust-sync-excluded-ilmil-teams-due-to-active-onlytrue-5c1148.md
2026-02-28 12:10:11 -06:00

1.6 KiB

id type title tags importance confidence created updated relations
5c11485a-c808-41b6-8576-a8a388b5be1e fix Fix: Rust sync excluded IL/MiL teams due to active_only=true
sba-scout
rust
sync
bug-fix
api
teams
0.7 0.8 2026-02-28T18:09:23.796074+00:00 2026-02-28T18:10:11.310671+00:00
target type direction strength edge_id
0df0e075-ae86-4208-b08d-a02bb5fa2278 RELATED_TO outgoing 0.8 38e55a1d-2f56-428b-8160-f01f98c6e113
target type direction strength edge_id
6d3627c4-5aa1-47f0-a85f-34fe3ea685ac RELATED_TO outgoing 0.7 626fd39b-2fbf-42cc-8131-15e1bc71f492
target type direction strength edge_id
4dc83eed-b0b1-4924-b82e-faf352426785 FOLLOWS outgoing 0.85 03a7fade-b537-4461-b7bc-91193bb2f304

Fix: Rust sync excluded IL/MiL teams due to active_only=true

Problem

The Rust sync_teams() function in api/sync.rs was calling:

client.get_teams(Some(season), None, true, false)

The active_only=true parameter caused the API to exclude IL (e.g. WVIL id=549) and MiL (e.g. WVMiL id=550) teams from the response. The Python sync did not pass active_only (defaults to false), so it correctly synced all teams.

Root Cause

Mismatch between Rust and Python API call defaults for the active_only parameter.

Fix

Changed active_only from true to false in api/sync.rs.

Notes

  • The get_all_teams() DB query in queries.rs already filters IL/MiL from the Gameday opponent selector using WHERE abbrev NOT LIKE '%IL' AND abbrev NOT LIKE '%MiL', so syncing them does not pollute the UI.
  • Committed as part of 3e73644.