Skip to content

Fix QueryDetailsTracker keyword initialization#1195

Draft
jwils wants to merge 1 commit into
mainfrom
joshuaw/fix-query-details-tracker
Draft

Fix QueryDetailsTracker keyword initialization#1195
jwils wants to merge 1 commit into
mainfrom
joshuaw/fix-query-details-tracker

Conversation

@jwils
Copy link
Copy Markdown
Collaborator

@jwils jwils commented May 19, 2026

Why

QueryDetailsTracker.empty initializes the tracker with keyword arguments, but the underlying Struct was positional-only. On Ruby/JRuby versions that reject those keywords, health checks can raise ArgumentError: unknown keywords: shard_routing_values.

What

  • Enable keyword initialization for the mutable tracker struct
  • Add a direct .empty unit spec covering all initialized fields

Risk Assessment

Low — this aligns the Struct constructor with existing call sites and RBS; behavior remains the same aside from accepting the intended keyword initializer.

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