Repository navigation
RDBC-1243 RavenDB-28134 Keep subscription settings on create, update, import and restore - #333
Open
poissoncorp wants to merge 1 commit into
Open
poissoncorp wants to merge 1 commit into
poissoncorp wants to merge 1 commit into
Conversation
…ing behavior on subscription create and update
Contributor
Author
|
The failing checks are not caused by this PR. Re-running the workflow with a current nightly server is the only step needed.
Checks run locally: SDK Sync Agent |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Subscriptions can now be created and updated with
disabled,pin_to_mentor_nodeandarchived_data_processing_behavior, andSubscriptionStatereports the last two.ArchivedDataProcessingBehaviorenum (ravendb/documents/data_archival.py, exported fromravendb); the three settings onSubscriptionCreationOptionsandSubscriptionUpdateOptions;pin_to_mentor_nodeandarchived_data_processing_behavioronSubscriptionState. Update sends a setting only when it is notNone, so the server keeps the stored value.test_ravenDB_28134.pyhas the create and update tests ofRavenDB_28134(single database only, the test base has no sharded mode) and request body tests that need no server.black --checkpassed; the request body tests passed. The server tests run only in CI.test_update_can_change_archived_data_processing_behaviorneeds a 7.2 nightly with RavenDB-28134.create_for_options_autocomplete_queryshares one default options object between calls.Decision needed
Before this change, the Python client never sent these three settings. Most of this PR adds them; the C# change itself is small. The enum is the first data archival type in the client, placed after the C# namespace
Raven.Client.Documents.DataArchival.Ticket: RDBC-1243
C# change: ravendb/ravendb#24114
SDK Sync Agent