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

feat(csharp): Add custom pager #6242

Merged
merged 23 commits into from
Mar 1, 2025
Merged

feat(csharp): Add custom pager #6242

merged 23 commits into from
Mar 1, 2025

Conversation

Swimburger
Copy link
Member

@Swimburger Swimburger commented Feb 28, 2025

Description

To do in follow-up PR, reconcile BiPager and Pager, and custom pager endpoints with normal pager endpoints (breaking change).

Changes Made

  • Split up creating HTTP request and sending HTTP request in RawClient
  • Generate CustomPager and CustomPagerFactory
  • Generate custom pager endpoints

Testing

  • Unit tests added/updated
  • Manual testing completed

Copy link

github-actions bot commented Feb 28, 2025

@Swimburger Swimburger marked this pull request as ready for review March 1, 2025 06:29
@Swimburger Swimburger requested a review from dsinghvi as a code owner March 1, 2025 06:29
Copy link
Member

@amckinney amckinney left a comment

Choose a reason for hiding this comment

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

Nice! Main thing to look into is removing the type for the offset and cursor pagination. All other comments are mostly nits.

Comment on lines +29 to +36
[Obsolete("Use SendRequestAsync instead.")]
public Task<ApiResponse> MakeRequestAsync(
BaseApiRequest request,
CancellationToken cancellationToken = default
)
{
return SendRequestAsync(request, cancellationToken);
}
Copy link
Member

Choose a reason for hiding this comment

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

The RawClient is internal, so we can also just remove this entirely. We can also do that in a follow-up if you prefer.

Copy link
Member Author

Choose a reason for hiding this comment

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

I'm overly cautious here for .fernignore'd files

@Swimburger Swimburger merged commit 60b9e85 into main Mar 1, 2025
40 of 41 checks passed
@Swimburger Swimburger deleted the niels/csharp/custom-pager branch March 1, 2025 19:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants