-
Notifications
You must be signed in to change notification settings - Fork 252
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
Feature ask client side -- Surface PackageType query parameter in the NuGet.org search API #8915
Comments
Related to #5725. :) |
Do we have a decision from the triage? |
@wli3 We haven't had a discussion (holidays and all). |
This came up in team chat today. We'll need to add an extra property in our search options. However, the question of running search on an old server that does not implement this new search option came up. From an API design point of view, how should NuGet.Protocol behave when the server implements an old version of the NuGet HTTP protocol and doesn't support packageType filtering?
API design is hard :( |
You could consider leveraging the resource provider pattern and make a dedicated resource (which could inherit an existing resource, if you want) and resource provider. If the repository returns null that means the feature is not supported. Just another option to toss into the hat. |
I am confused about the current API surface. There is a class Strangely, |
packageTypeFilter predates search by package type. |
@nkolev92 that makes sense. In that case am I understanding correctly that all the API design for this is already made, and the only thing needed would be replacing For consistency I guess it would be nice if package type filtering also applied automatically to local package sources. |
The protocol is decided and documented: https://learn.microsoft.com/en-us/nuget/api/search-query-service-resource#search-for-packages. We're just not using it client side yet, so it's not part of our libraries. |
@glopesdev or @nkolev92 any update on this ? |
NuGet/NuGetGallery#7594
SDK team has the nuget gallery ask. And Peter Yu and @joelverhagen suggested it is better have a client side counterpart instead of directly query the web API. So all client side .NET code is in nuget client.
However, in the meanwhile SDK will continue directly using the web REST API since it is relatively simple, and we will migrate to use the client once it is available.
The text was updated successfully, but these errors were encountered: