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

Phase 2 of SemVer2 support #3758

Merged
merged 30 commits into from
Jun 1, 2017
Merged

Phase 2 of SemVer2 support #3758

merged 30 commits into from
Jun 1, 2017

Conversation

xavierdecoster
Copy link
Member

@xavierdecoster xavierdecoster commented Apr 6, 2017

This PR is to combine all semver2 related work into a single feature branch PR, part of phase 2 deployment.

Verified in DEV:

Once merged, also merge this:

@@ -626,21 +626,6 @@ private static void ValidateNuGetPackageMetadata(PackageMetadata packageMetadata
{
throw new EntityException(Strings.NuGetPackagePropertyTooLong, "Id", CoreConstants.MaxPackageIdLength);
}
if (packageMetadata.Version.IsPrerelease)
Copy link
Contributor

Choose a reason for hiding this comment

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

I think line 551 of this file needs to be moved below where the package dependencies are set (line 599) or the calculation ignores dependencies because it will always act on an empty set.

Copy link
Member Author

Choose a reason for hiding this comment

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

Great catch @ryuyu !

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed with bef3dd4

@@ -111,6 +135,11 @@ private static Uri BuildLinkForStreamProperty(string routePrefix, string id, str
return builder.Uri;
}

private static Uri BuildIdLink(string routePrefix, string id, string version, HttpRequestMessage request)
Copy link
Contributor

Choose a reason for hiding this comment

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

This method needs to be updated to correctly rebuild and patch the IdLinks for when the request is to a curated feed.

Currently, it will lose this information while patching.

Copy link
Member Author

Choose a reason for hiding this comment

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

Good catch! Tracking here: #3861

Copy link
Member Author

Choose a reason for hiding this comment

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

PR up for review: #3864

xavierdecoster and others added 5 commits May 31, 2017 13:13
* adding new optional semVerLevel query parameter to v2 odata endpoints

* adding new optional semVerLevel query parameter to v2 autocomplete endpoints

* Applying semVerLevel filter on v2 OData endpoints

* Use [FromUri] attribute on semVerLevel
(avoids having single quotes in the parameter value)

* Ensure navigation links on v2 feeds use normalized version

* Clarifying comment on Get(Id=,Version=) v2 API

* Properly default to semver2 inclusion on Get(Id=,Version=)

* Compare NormalizedVersion to be able to retrieve matching SemVer2 package versions for a given normalized version string.

* Code review feedback

* Update and fix broken test data
…ns (#3761)

* Keep legacy version compatibility checks in place for non-semver2 versions

* Added comment to clarify the reasons behind the legacy version check.

* Fix typo

* Rename test for clarity

* code review feedback
xavierdecoster and others added 25 commits May 31, 2017 13:13
…equesting a specific version, and compare on NormalizedVersion
@xavierdecoster xavierdecoster merged commit 730f54e into dev Jun 1, 2017
@xavierdecoster xavierdecoster deleted the feature/semver2 branch September 11, 2018 07:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants