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

NuGetV2-OData: retrieve versions in descending order for artifactory #2073

Merged
merged 2 commits into from
Dec 12, 2016

Conversation

cdrnet
Copy link
Member

@cdrnet cdrnet commented Dec 9, 2016

Related to #2008 which was reverted in #2018 because it affected non-artifactory servers negatively (in an unknown way).

This change adds an alternative variant of tryGetAllVersions to fetch the versions in descending order (by publish date) instead of modifying the original one.

GetVersions chooses to use the alternative variant in case the source URI contains the string "artifactory". This is a very unreliable way of discovering a server to be an artifactory one, but is in line with the existing rules and should prevent affecting non-artifactory servers.

Ideally the decision should be more controllable than URI matching, e.g. by introducing the concept of source options (explicitly in the dependencies and lock files).

Related to fsprojects#2008 which was reverted in fsprojects#2018 because it affected non-artifactory
servers negatively (in an unknonwn way).

This change adds an alternative variant of tryGetAllVersions to fetch the
versions in descending order (by publish date) instead of modifying the
original one.

GetVersions chooses to use the alternative variant in case the source uri
contains the string "artifactory". This is a very unreliable way of
discovering a server to be an artifactory one, but is in line with the
existing rules and should prevent affecting non-artifactory servers.

Ideally the decision should be more controllable than url matching, e.g.
by introducing the concept of source options.
@forki
Copy link
Member

forki commented Dec 12, 2016

thanks so much!

@forki forki merged commit 61f1040 into fsprojects:master Dec 12, 2016
@cdrnet cdrnet deleted the artifactory-feed branch December 22, 2016 13:27
@matthid matthid added this to NuGet API & Performance in Breaking Changes Aug 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Breaking Changes
NuGet API & Performance
Development

Successfully merging this pull request may close these issues.

None yet

2 participants