Skip to content

Rework paging for all paged endpoints #79

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

Merged
merged 6 commits into from
Jun 3, 2025
Merged

Conversation

ChrisPenner
Copy link
Member

Overview

The previous paging solution didn't have any mechanism for paging backwards 😓

This adds that.

Unfortunately most of these endpoints don't currently detect when we're out of results to return a null cursor, so I should probably do another pass on that at some point; but one thing at a time.

Implementation notes

Swaps paged endpoints to return nextCursor and previousCursor.

Test coverage

Transcripts, but should probably test on staging at some point since it's a surprisingly tricky change to get right.

@ChrisPenner ChrisPenner requested a review from hojberg May 22, 2025 22:41
hojberg added a commit to unisoncomputing/share-ui that referenced this pull request May 27, 2025
The API (with unisoncomputing/share-api#79) now
supports a previous and a next cursor. Update the API integration to match.
hojberg added a commit to unisoncomputing/share-ui that referenced this pull request May 27, 2025
The API (with unisoncomputing/share-api#79) now
supports a previous and a next cursor. Update the API integration to match.
@ChrisPenner ChrisPenner force-pushed the cp/rework-paging branch 2 times, most recently from e778c79 to c19f9be Compare June 2, 2025 20:34
@ChrisPenner ChrisPenner merged commit 618eed8 into main Jun 3, 2025
8 checks passed
@ChrisPenner ChrisPenner deleted the cp/rework-paging branch June 3, 2025 18:04
hojberg added a commit to unisoncomputing/share-ui that referenced this pull request Jun 3, 2025
The API (with unisoncomputing/share-api#79) now
supports a previous and a next cursor. Update the API integration to match.
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.

2 participants