-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Revise queries #204
Merged
sebastianburckhardt
merged 10 commits into
feature/entities
from
core-entities/revise-queries-and-defaults
Oct 9, 2023
Merged
Revise queries #204
Changes from 8 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
af4d50d
rename StartOrchestration to ScheduleNewOrchestration and add Schedul…
sebastianburckhardt 1df4a16
specify different defaults for clean entity storage (by default, ever…
sebastianburckhardt a093953
support queries that return stateless entities, and add more properti…
sebastianburckhardt 8e234a1
make the page size an optional parameter (if absent, backend determin…
sebastianburckhardt 03fba9e
address PR feedback
sebastianburckhardt 9c8f7c8
update to latest protobuf definition
sebastianburckhardt 29586e3
rename includeStateless to includeTransient
sebastianburckhardt b0c194c
update proto
sebastianburckhardt 193fa12
update proto submodule to latest main branch
sebastianburckhardt f4e3234
Merge branch 'feature/entities' into core-entities/revise-queries-and…
sebastianburckhardt File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -9,15 +9,26 @@ namespace Microsoft.DurableTask.Client.Entities; | |||||
public readonly record struct CleanEntityStorageRequest | ||||||
{ | ||||||
/// <summary> | ||||||
/// Gets a value indicating whether to remove empty entities. | ||||||
/// Gets the default request parameters. The default is meant to represent | ||||||
/// "maximal" cleaning that is safe to call at all times. | ||||||
/// </summary> | ||||||
public static CleanEntityStorageRequest Default => new() | ||||||
{ | ||||||
RemoveEmptyEntities = true, | ||||||
ReleaseOrphanedLocks = true, | ||||||
ContinuationToken = null, | ||||||
}; | ||||||
|
||||||
/// <summary> | ||||||
/// Gets a value indicating whether to remove empty entities. Defaults to true. | ||||||
/// </summary> | ||||||
/// <remarks> | ||||||
/// An entity is considered empty, and is removed, if it has no state, is not locked. | ||||||
/// </remarks> | ||||||
public bool RemoveEmptyEntities { get; init; } | ||||||
|
||||||
/// <summary> | ||||||
/// Gets a value indicating whether to release orphaned locks or not. | ||||||
/// Gets a value indicating whether to release orphaned locks or not. Defaults to true. | ||||||
/// </summary> | ||||||
/// <remarks> | ||||||
/// Locks are considered orphaned, and are released, and if the orchestration that holds them is not in state | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
@@ -28,7 +39,7 @@ public readonly record struct CleanEntityStorageRequest | |||||
public bool ReleaseOrphanedLocks { get; init; } | ||||||
|
||||||
/// <summary> | ||||||
/// Gets the continuation token to resume a previous <see cref="CleanEntityStorageRequest"/>. | ||||||
/// Gets the continuation token to resume a previous <see cref="CleanEntityStorageRequest"/>. Defaults to null. | ||||||
/// </summary> | ||||||
public string? ContinuationToken { get; init; } | ||||||
} | ||||||
|
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You could also add a parameterless constructor and set all the bool properties to
true
there. This doesn't changedefault
- but just an idea for you to consider.