Skip to content
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

Merged
merged 26 commits into from
Feb 5, 2021

Conversation

bchong95
Copy link
Contributor

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 the FeedRangeState<TState> which is a composite of FeedRange and State to lower the number of parameters on most functions that require both.

DmitriMelnikov
DmitriMelnikov previously approved these changes Jan 22, 2021
Copy link
Contributor

@DmitriMelnikov DmitriMelnikov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

Copy link
Contributor

@vivekr20 vivekr20 left a 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.

sboshra
sboshra previously approved these changes Feb 3, 2021
Copy link
Contributor

@sboshra sboshra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

Copy link
Contributor

@vivekr20 vivekr20 left a 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.

vivekr20
vivekr20 previously approved these changes Feb 3, 2021
vivekr20
vivekr20 previously approved these changes Feb 4, 2021
@sboshra sboshra merged commit 8102b37 into master Feb 5, 2021
@sboshra sboshra deleted the users/brchon/Pagination/Options branch February 5, 2021 03:08
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.

4 participants