Repository navigation
Protocol loads Owners from package sources as an enumerable type - #5751
Merged
Merged
Conversation
nkolev92
reviewed
Apr 12, 2024
donnie-msft
force-pushed
the
dev-donnie-msft-ownerAuthorProtocol2
branch
from
April 12, 2024 23:15
7c6f009 to
6f856f8
Compare
donnie-msft
enabled auto-merge (squash)
April 13, 2024 01:42
nkolev92
reviewed
Apr 15, 2024
nkolev92
left a comment
Member
There was a problem hiding this comment.
I think there's an extra change in csproj.
Rest looks great, nice fix, and excellent tests!
nkolev92
approved these changes
Apr 15, 2024
2 of 3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bug
Fixes: NuGet/Home#13186
Fixes: NuGet/Home#13392 (unrelated flaky tests)
Regression? Last working version:
Description
The original PR #5605 was reverted in #5709 was reverted.
This PR's changes to PR 5605:
stringJSON type forowners:.ownerwhich is deserialized in PackageSearchResourceV3Tests.cs, and direct unit tests for the new converter.-
CreateInstallAction_OnInstallingProject_EmitsPkgWasTransitiveTelemetryAndTabAndIsSolutionPropertiesAsyncCreateInstallAction_OnInstallingProject_WithNewSourceMapping_DoesNotLogTelemetryOriginal PR 5605 description:
Read Owners collection from package sources into an enumerable type, rather than converting it to a comma-delimited string immediately upon parsing the JSON response.
There's no effective customer change in this PR, just that the enumeration is retained in Protocol types rather than only as a concatenated string. In subsequent PRs, I'll utilize this enumeration of owners for customer benefit.
Test changes:
EntityFrameworkSearch.json(from stale 2017 data) with latest package search metadata result response from nuget.org.test/NuGet.Core.Tests/NuGet.CommandLine.Xplat.Tests/PackageSearchRunnerTests.cswhich was failing as it attempted to assert that the Table Output contained owners. The registration JSON does not normally contain Owner, so I updated the JSON and the test accordingly.PR Checklist
PR has a meaningful title
PR has a linked issue.
Described changes
Tests
Documentation