Skip to content

refactor: remove passthrough service methods#135

Merged
adrunkhuman merged 1 commit intomasterfrom
refactor/remove-passthrough-service-methods
Mar 21, 2026
Merged

refactor: remove passthrough service methods#135
adrunkhuman merged 1 commit intomasterfrom
refactor/remove-passthrough-service-methods

Conversation

@adrunkhuman
Copy link
Owner

Closes #133

Summary

  • Deleted AdminService.get_fixture_by_week — zero external callers, dead method
  • Deleted AdminService.get_recent_fixtures — pure return await self.db.* proxy with no added value
  • Updated PredictionsPanelView.load_fixture_options and ResultsPanelView.load_fixture_options to call self.db.get_recent_fixtures directly (both views already hold db via OwnerRestrictedView)

Audited all remaining AdminService methods — none are passthroughs. Every remaining method orchestrates multiple DB calls, enforces business rules, or composes operations.

Test plan

  • /admin panel → Predictions tab loads fixture dropdown correctly
  • /admin panel → Results tab loads fixture dropdown correctly
  • No regressions in fixture/prediction/results workflows

🤖 Generated with Claude Code

Delete AdminService.get_fixture_by_week (dead, zero external callers)
and AdminService.get_recent_fixtures (pure proxy). Update
PredictionsPanelView and ResultsPanelView to call self.db directly —
both already hold db via OwnerRestrictedView.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@railway-app railway-app bot temporarily deployed to patient-quietude / matchday-typer-pr-135 March 21, 2026 22:08 Destroyed
@railway-app
Copy link

railway-app bot commented Mar 21, 2026

🚅 Deployed to the matchday-typer-pr-135 environment in patient-quietude

Service Status Web Updated (UTC)
matchday-typer 🕒 Building (View Logs) Mar 21, 2026 at 10:09 pm

@adrunkhuman adrunkhuman merged commit 0aba25b into master Mar 21, 2026
1 of 2 checks passed
@adrunkhuman adrunkhuman deleted the refactor/remove-passthrough-service-methods branch March 21, 2026 22:09
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.

refactor: remove passthrough service methods that add no logic over db

1 participant