Skip to content

RavenDB-27689 Write a single include clause for subscription counter and time series includes - #323

Merged
poissoncorp merged 1 commit into
ravendb:v7.2from
poissoncorp:RavenDB-27689-subscription-counter-includes
Oct 23, 2026
Merged

poissoncorp merged 1 commit into
ravendb:v7.2from
poissoncorp:RavenDB-27689-subscription-counter-includes

Conversation

@poissoncorp

Copy link
Copy Markdown
Contributor

Subscriptions with counter includes sent an include clause the server rejected. ensure_criteria now writes a single comma-separated clause, as C# does:

  • Named counters: include is written when nothing was included yet. The check was inverted, so include_counters("Pros", "Cons") sent as doccounters('pros'),counters('cons').
  • All counters after a document include: the , separator is written, so doc.Company,counters() instead of doc.Companycounters(). C# and Node.js miss this separator too.
  • Several time series: each one is counted, so the second no longer opens a second include clause. Not in the ticket.

Tests: ravendb/tests/issue_tests/test_RavenDB_27689.py, 4 tests against a 7.2.7 RC server, all failing on the previous code. black --check passed.

Ticket: RavenDB-27689

@poissoncorp
poissoncorp merged commit 87e215b into ravendb:v7.2 Oct 23, 2026
5 checks passed
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