-
Notifications
You must be signed in to change notification settings - Fork 494
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
Internal Pagination: Fixes APIs to be cleaner. #2144
Conversation
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.
Looks good
Microsoft.Azure.Cosmos/src/ChangeFeed/ChangeFeedCrossFeedRangeAsyncEnumerable.cs
Show resolved
Hide resolved
Microsoft.Azure.Cosmos/src/ChangeFeed/Pagination/ChangeFeedPaginationOptions.cs
Outdated
Show resolved
Hide resolved
...ure.Cosmos/tests/Microsoft.Azure.Cosmos.Tests/ChangeFeed/DocumentContainerChangeFeedTests.cs
Show resolved
Hide resolved
...ure.Cosmos/tests/Microsoft.Azure.Cosmos.Tests/ChangeFeed/DocumentContainerChangeFeedTests.cs
Show resolved
Hide resolved
...osmos/tests/Microsoft.Azure.Cosmos.Tests/ChangeFeed/NetworkAttachedDocumentContainerTests.cs
Show resolved
Hide resolved
Microsoft.Azure.Cosmos/tests/Microsoft.Azure.Cosmos.Tests/Pagination/DocumentContainerTests.cs
Show resolved
Hide resolved
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.
changeFeedRequestOptions.Properties Values cannot be stringified (ToString()) as that will affect the serialization downstream.
…Azure/azure-cosmos-dotnet-v3 into users/brchon/Pagination/Options
Microsoft.Azure.Cosmos/tests/Microsoft.Azure.Cosmos.Tests/Pagination/InMemoryContainer.cs
Outdated
Show resolved
Hide resolved
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.
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.
Can you support non-string headers? This will break certain scenarios for Cassandra which worked earlier.
…Azure/azure-cosmos-dotnet-v3 into users/brchon/Pagination/Options
Internal Pagination: Fixes APIs to be cleaner.
Description
This PR cleans up the pagination API by creating
PaginationOptions
, which groups together all the static options for a particular FeedOperation. We also wired through raw headers on the request and response path for custom headers on compute gateway. Finally we used theFeedRangeState<TState>
which is a composite of FeedRange and State to lower the number of parameters on most functions that require both.