Parse every declared query, not the two somebody remembered

TestMediaService
Shipped
September 7, 2026 at 3:34 AM UTC
Author
Kamo
Commit
86f3671

The three queries this feature added were never parsed by anything. That matters more than a wrong predicate would: Spring Data validates every @Query while it builds the repository beans, so one malformed string fails at CONTEXT STARTUP and takes the whole of MediaService with it — chat, media, support tickets, all of it — over a line nobody had called yet. The thread's speaker-numbering query is exactly the shape that would do it, with an aggregate in ORDER BY. Written as a sweep over every @Query on the three repositories rather than as three named cases, because a test that names what it knows about would only have covered the vote queries if somebody had remembered to come back and add them. It asserts a floor on how many it parsed, since a sweep that silently finds nothing to sweep is the failure mode of a sweep.

All changes

Like what you see shipping?

Every one of these updates lands in your workspace automatically. Start free and watch it grow week after week.

Start Free ForeverView Pricing