Skip to content
This repository was archived by the owner on Feb 26, 2026. It is now read-only.

refactor: Pull db logic out of BaseHistoryInfra#273

Closed
metlos wants to merge 1 commit intomasterfrom
metlos/scoring-base-service
Closed

refactor: Pull db logic out of BaseHistoryInfra#273
metlos wants to merge 1 commit intomasterfrom
metlos/scoring-base-service

Conversation

@metlos
Copy link
Collaborator

@metlos metlos commented Feb 13, 2026

… such that it can be reused by other services.

This is a relatively simple refactoring that pulls database and repository related functionality out of BaseHistoryInfra into a BaseService a base class reusable by other services and DatabaseRetries that concentrates the retry logic into one place.

This is support work for session scoring but stands on its own so I'm not adding it into the PR stack for the session scoring.

…abaseRetries

such that it can be reused by other services.
@metlos metlos requested a review from alexeykazakov February 13, 2026 14:40
@codecov
Copy link

codecov bot commented Feb 13, 2026

Codecov Report

❌ Patch coverage is 92.06349% with 15 lines in your changes missing coverage. Please review.
✅ Project coverage is 83.80%. Comparing base (57f4ed4) to head (ef4fbf1).

Files with missing lines Patch % Lines
backend/tarsy/repositories/retries.py 92.30% 8 Missing ⚠️
backend/tarsy/services/base_service.py 91.25% 7 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##           master     #273   +/-   ##
=======================================
  Coverage   83.79%   83.80%           
=======================================
  Files         143      145    +2     
  Lines       13543    13595   +52     
=======================================
+ Hits        11349    11393   +44     
- Misses       2194     2202    +8     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants