Skip to content

RDBC-1244 Do not share the default options of create_for_options_autocomplete_query between calls - #335

Open
poissoncorp wants to merge 1 commit into
ravendb:v7.2from
poissoncorp:sdk-sync/RDBC-1244
Open

poissoncorp wants to merge 1 commit into
ravendb:v7.2from
poissoncorp:sdk-sync/RDBC-1244

Conversation

@poissoncorp

Copy link
Copy Markdown
Contributor

create_for_options_autocomplete_query without options now builds the query from the type of each call, instead of reusing the query of the first call.

  • Changed: ravendb/documents/subscriptions/document_subscriptions.py. options defaults to None and each call creates its own SubscriptionCreationOptions, as create_for_class does. Before, the default was one shared instance, and ensure_criteria wrote the generated query into it.
  • Tests: ravendb/tests/issue_tests/test_RDBC_1244.py. A server test creates subscriptions for User and Company without options and checks both stored queries. A test without a server checks that two calls pass two separate options objects with their own queries; it fails without the fix.
  • Checks: black --check . passed, the test without a server passed. The server test runs only in CI.

Ticket: RDBC-1244
C# change: none

SDK Sync Agent

@poissoncorp poissoncorp added the sdk-sync Port of C# client changes from an SDK sync task label Dec 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

sdk-sync Port of C# client changes from an SDK sync task

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant