Repository navigation
[Data Model Improvements] Add known owners capability - #6315
Merged
jgonz120 merged 2 commits intoMar 13, 2025
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull Request Overview
This pull request introduces a known owners capability for packages by mapping owner strings to structured KnownOwner objects with an associated details URL.
- Added the KnownOwnersCapability class implementing the new IKnownOwnersCapable interface.
- Introduced the IKnownOwnersCapable interface for packages with known owners.
- Added comprehensive tests to verify the new behavior under various conditions.
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| src/NuGet.Clients/NuGet.PackageManagement.UI/Models/Package/KnownOwnersCapability.cs | Implements the known owners capability with support for null/empty owner lists and integration with the owner details URI service. |
| src/NuGet.Clients/NuGet.PackageManagement.UI/Models/Package/IKnownOwnersCapable.cs | Introduces the interface for known owners capability. |
| test/NuGet.Clients.Tests/NuGet.PackageManagement.UI.Test/Models/Package/KnownOwnersCapabilityTests.cs | Adds tests covering various scenarios for the known owners feature. |
Comments suppressed due to low confidence (2)
src/NuGet.Clients/NuGet.PackageManagement.UI/Models/Package/KnownOwnersCapability.cs:29
- The parameter 'ownersList' is declared as a non-nullable IReadOnlyList but is checked for null. Consider removing the null check or updating the parameter type if null values are expected.
if (ownersList is null || ownersList.Count == 0)
src/NuGet.Clients/NuGet.PackageManagement.UI/Models/Package/IKnownOwnersCapable.cs:11
- The IKnownOwnersCapable interface is declared without an access modifier. Consider making it public if it is intended for use outside of this assembly.
interface IKnownOwnersCapable
jebriede
approved these changes
Mar 13, 2025
jebriede
pushed a commit
that referenced
this pull request
Mar 24, 2025
* Add known owners capability * Add access modifier
jebriede
pushed a commit
that referenced
this pull request
Apr 16, 2025
* Add known owners capability * Add access modifier
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:
Description
Add known owners capability
PR Checklist
Link to an issue or pull request to update docs if this PR changes settings, environment variables, new feature, etc.