major-domo-v2/services
Cal Corum ffa0366441 refactor: invalidate roster cache after submission instead of force-refreshing
Simplify review found that force_refresh=True on every validate_transaction()
call caused redundant API fetches on every embed render and button press.

Instead, invalidate the roster cache after successful submit_transaction() so
the next operation fetches fresh data. This preserves the cache for normal
interaction flows while still preventing stale data after submissions.

Also adds type annotation for roster_svc DI parameter.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-02 21:06:00 +00:00
..
__init__.py Add Google Sheets integration for draft pick tracking 2025-12-11 11:18:27 -06:00
base_service.py fix: remove 226 unused imports across the codebase (closes #33) 2026-02-20 11:35:04 -06:00
chart_service.py CLAUDE: Add multi-image support for charts 2025-10-20 22:00:19 -05:00
CLAUDE.md Update CLAUDE.md docs for all-season player search feature 2026-01-23 14:36:03 -06:00
custom_commands_service.py fix: batch quick-wins — 4 issues resolved (closes #37, #27, #25, #38) 2026-02-20 11:48:16 -06:00
decision_service.py fix: remove 226 unused imports across the codebase (closes #33) 2026-02-20 11:35:04 -06:00
draft_list_service.py fix: remove 226 unused imports across the codebase (closes #33) 2026-02-20 11:35:04 -06:00
draft_pick_service.py fix: remove 226 unused imports across the codebase (closes #33) 2026-02-20 11:35:04 -06:00
draft_service.py refactor: move 42 unnecessary lazy imports to top-level across codebase 2026-03-02 13:35:23 -06:00
draft_sheet_service.py fix: batch quick-wins — 4 issues resolved (closes #37, #27, #25, #38) 2026-02-20 11:48:16 -06:00
game_service.py CLAUDE: Add comprehensive scorecard submission system 2025-10-16 00:21:32 -05:00
giphy_service.py fix: address 7 security issues across the codebase 2026-02-20 09:54:53 -06:00
help_commands_service.py fix: remove 226 unused imports across the codebase (closes #33) 2026-02-20 11:35:04 -06:00
injury_service.py fix: remove 226 unused imports across the codebase (closes #33) 2026-02-20 11:35:04 -06:00
league_service.py Fix weekly freeze/thaw automation - API params not being sent 2026-01-13 14:00:54 -06:00
play_service.py CLAUDE: Add comprehensive scorecard submission system 2025-10-16 00:21:32 -05:00
player_service.py Fix API parameter name: use 'demotion_week' instead of 'dem_week' 2026-02-01 21:27:52 -06:00
roster_service.py refactor: move 42 unnecessary lazy imports to top-level across codebase 2026-03-02 13:35:23 -06:00
schedule_service.py refactor: move 42 unnecessary lazy imports to top-level across codebase 2026-03-02 13:35:23 -06:00
scorebug_service.py fix: scorebug stale data, win probability parsing, and read-failure tolerance (closes #39, #40) 2026-02-20 14:14:23 -06:00
sheets_service.py refactor: move 42 unnecessary lazy imports to top-level across codebase 2026-03-02 13:35:23 -06:00
standings_service.py refactor: move 42 unnecessary lazy imports to top-level across codebase 2026-03-02 13:35:23 -06:00
stats_service.py refactor: move 42 unnecessary lazy imports to top-level across codebase 2026-03-02 13:35:23 -06:00
team_service.py Consolidate season config variables to single source (v2.21.0) 2025-12-02 16:12:16 -06:00
trade_builder.py fix: remove 226 unused imports across the codebase (closes #33) 2026-02-20 11:35:04 -06:00
transaction_builder.py refactor: invalidate roster cache after submission instead of force-refreshing 2026-03-02 21:06:00 +00:00
transaction_service.py fix: roster validation now includes org affiliate transactions (closes #49) 2026-03-01 10:45:21 -06:00