Skip to content

feat: added Missing APIOption overload for PackagesClient.GetAll* #2923#2934

Merged
kfcampbell merged 2 commits intooctokit:mainfrom
lars-zweifel:feature/packages-client-pagination
Jun 21, 2024
Merged

feat: added Missing APIOption overload for PackagesClient.GetAll* #2923#2934
kfcampbell merged 2 commits intooctokit:mainfrom
lars-zweifel:feature/packages-client-pagination

Conversation

@lars-zweifel
Copy link
Contributor

Resolves #2923


Before the change?

PackagesClient.GetAll* were not able to paginate and the results capped at 30 results

After the change?

Overload parameter APIOptions for PackagesClient.GetAll*
Methods. Extended the Tests for PackagesClient.GetAll* to behave the same as RepositoriesClient.GetAll*.

Pull request checklist

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been reviewed and added / updated if needed (for bug fixes / features)

Does this introduce a breaking change?

Please see our docs on breaking changes to help!

  • Yes
  • No

lars-zweifel and others added 2 commits May 31, 2024 13:31


added missing APIOption overload for PackagesClient and ObservablePackagesClient
added overload for optional parameter packageVisibility to be a nonbreaking change
extended PackagesClientTests.cs to be conform with RepositoriesClientTests.cs to take ApiOptions into account
Copy link
Contributor

@kfcampbell kfcampbell left a comment

Choose a reason for hiding this comment

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

Thanks for contributing.

[ExcludeFromPaginationApiOptionsConventionTest("No api options available according to the documentation")]

This is interesting to see, since the docs definitely support taking page and per_page. I wonder if it didn't used to be supported and changed at some point recently?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

[FEAT]: Missing APIOption overload for PackagesClient.GetAll*

2 participants