Skip to content

fix: implement ApiClient.resetStats to satisfy ClientApi#143

Merged
veksen merged 1 commit into
mainfrom
veksen/api-client-reset-stats
Jun 5, 2026
Merged

fix: implement ApiClient.resetStats to satisfy ClientApi#143
veksen merged 1 commit into
mainfrom
veksen/api-client-reset-stats

Conversation

@veksen
Copy link
Copy Markdown
Member

@veksen veksen commented Jun 5, 2026

The @query-doctor/core bump on main added resetStats(): Promise<void> to the ClientApi interface, which ApiClient implements but never defined — breaking tsc --noEmit and the release CI job. This adds resetStats as the natural inverse of updateStatistics, reverting the optimizer to Statistics.defaultStatsMode via the existing Remote.applyStatistics. Typecheck is now clean.

🤖 Generated with Claude Code

The @query-doctor/core bump added resetStats() to the ClientApi
interface, breaking typecheck. Implement it as the inverse of
updateStatistics — reverting the optimizer to default stats.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Copy link
Copy Markdown

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Query Doctor Analysis

View full run details

3 queries analyzed

2 pre-existing issues

Using assumed statistics (10000000 rows/table). For better results, sync production stats.

@veksen veksen merged commit 4501518 into main Jun 5, 2026
6 checks passed
@veksen veksen deleted the veksen/api-client-reset-stats branch June 6, 2026 00:03
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