Paging for nuget feed clients (chocolatey)
Opened this issue · 4 comments
Problem
It seems that paging isn't supported when using the chocolatey GUI client to browse a nuget feed from bagetter:
Solution
When using chocolatey GUI to browse another NuGet feed like nuget.org or chocolatey.org, paging works fine:
Additional context
- https://learn.microsoft.com/en-gb/nuget/api/search-query-service-resource#request-parameters
BaGetter/src/BaGetter.Core/Search/DatabaseSearchService.cs
Lines 45 to 46 in 3081c3d
- the original author of BaGet recommends:
- Check the requests done by Chocolatey using something like Fiddler. Verify they pass paging parameters to the search endpoint
- Check which search implementation you're using and verify it supports the paging parameters
- a similar issue was present in the original project: loic-sharma#412
- VS2022 seems to implement an infinite scroll instead of paging but only when selecting "all" as package source. For a specific package source, it seems to show only the first page
- at the time of writing, the last page on nuget.org is https://www.nuget.org/packages?page=1501&sortBy=relevance
Looks like Chocolatey uses something of NuGet itself, something derived from NuGet.Protocol.Core.Types.PackageSearchResource
, and does indeed pass skip/take parameters to it if I understand that call correctly. Not sure what the implementation is yet, gonna have to check NuGet for the actual implementation and compare the protocol to how BaGetter does it exactly.
Looks like Chocolatey uses something of NuGet itself, something derived from
Chocolatey (Both CLI and GUI) use a fork of the NuGet Client libraries:
https://github.com/chocolatey/nuget.client
This issue is stale because it has been open for 90 days with no activity. Remove the stale label, comment, or this will be closed in 5 days.
This issue was closed because it has been stale for 5 days with no activity.