sergehuber opened a new pull request, #923: URL: https://github.com/apache/unomi/pull/923
## Summary Follow-up to #922 (UNOMI-1014). This commit was meant for #922 but was not pushed before it merged. - Tests: `testAggregateAndMetricsStayInTheCurrentTenant` also covers the non-optimized aggregate and the metrics query **without a condition**. The no-condition path is where the old global aggregation counted every tenant's documents. - Javadoc: `_all` is no longer described as a global count. It is the current tenant's item count, and a `null` `AggregateQuery` takes the optimized path, which does not return it (`QueryService`, `PersistenceService`, `QueryServiceEndPoint`). No runtime code changes. The Javadoc also feeds the generated OpenAPI descriptions, so their wording changes too. No test or snapshot pins the old text. ## Test plan - [x] `PersistenceServiceIT` on Elasticsearch (9/9) - [x] `PersistenceServiceIT` on OpenSearch (9/9) - [ ] CI 🤖 Generated with [Claude Code](https://claude.com/claude-code) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
