Repository navigation
Conversation
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR introduces self-hydration for the deprecation capability and updates several package capability models and their tests.
- Add DeprecationPackageMetadataCapability with self-hydration logic
- Introduce new capability models for vulnerability, known owners, and embedded resources
- Update tests and adjust related services and models to support these changes
Reviewed Changes
Copilot reviewed 26 out of 29 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| src/NuGet.Clients/NuGet.PackageManagement.UI/Models/Package/DeprecationPackageMetadataCapability.cs | Introduces self-hydration for deprecation metadata retrieval |
| src/NuGet.Clients/NuGet.PackageManagement.UI/Models/Package/VulnerableCapability.cs | Adds vulnerability capability; contains list initialization syntax issues |
| src/NuGet.Clients/NuGet.PackageManagement.UI/Models/Package/KnownOwnersCapability.cs | Implements known owners capability |
| src/NuGet.Clients/NuGet.PackageManagement.UI/Models/Package/IKnownOwnersCapable.cs | Defines interface for known owners capability |
| src/NuGet.Clients/NuGet.PackageManagement.UI/Models/Package/IVulnerable.cs | Defines interface for vulnerability capability |
| src/NuGet.Clients/NuGet.PackageManagement.UI/Models/Package/IEmbeddedResources.cs | Defines interface for embedded resources retrieval |
| src/NuGet.Clients/NuGet.PackageManagement.UI/Models/Package/IDeprecationCapable.cs | Defines interface for deprecation capability |
| src/NuGet.Core/NuGet.Protocol/Model/PackageDeprecationReasonEnum.cs | Provides enum and constants for deprecation reasons |
| test/NuGet.Clients.Tests/NuGet.PackageManagement.UI.Test/Models/Package/DeprecationPackageMetadataCapabilityTests.cs | Adds tests for the self-hydration deprecation capability |
| src/NuGet.Clients/NuGet.PackageManagement.UI/Models/Package/EmbeddedResourcesCapability.cs | Implements embedded resources via package file service |
| src/NuGet.Clients/NuGet.PackageManagement.UI/Models/Package/TransitivelyReferencedPackageModel.cs | Extends package model to include transitive origins |
| src/NuGet.Clients/NuGet.PackageManagement.UI/Models/Package/ReferencedPackageModel.cs | Integrates vulnerability capability with referenced package model |
| src/NuGet.Clients/NuGet.PackageManagement.UI/Models/Package/RemotePackageModel.cs | Augments remote package model with known owners and vulnerability capabilities |
| src/NuGet.Clients/NuGet.PackageManagement.UI/Models/Package/PackageModel.cs | Base package model updated to support embedded resources |
| src/NuGet.Clients/NuGet.PackageManagement.UI/Models/Package/LocalPackageModel.cs | Local package model integrates vulnerability capability |
| src/NuGet.Clients/NuGet.PackageManagement.VisualStudio/Services/NuGetPackageFileService.cs | Adjusts accessibility of GetEmbeddedFileAsync to public static |
| src/NuGet.Clients/NuGet.PackageManagement.UI/Models/DetailControlModel.cs | Removes redundant inner static deprecation reason class |
Files not reviewed (3)
- src/NuGet.Core/NuGet.Protocol/PublicAPI/net472/PublicAPI.Unshipped.txt: Language not supported
- src/NuGet.Core/NuGet.Protocol/PublicAPI/net8.0/PublicAPI.Unshipped.txt: Language not supported
- src/NuGet.Core/NuGet.Protocol/PublicAPI/netstandard2.0/PublicAPI.Unshipped.txt: Language not supported
jebriede
approved these changes
Mar 19, 2025
jebriede
left a comment
Contributor
There was a problem hiding this comment.
Approved with suggestions
jebriede
pushed a commit
that referenced
this pull request
Mar 24, 2025
* Add self hydration to deprecation * update deprecation * add private * add mock to constructor
jebriede
pushed a commit
that referenced
this pull request
Apr 16, 2025
* Add self hydration to deprecation * update deprecation * add private * add mock to constructor
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 self-hydration to the deprecation capability
PR Checklist
Link to an issue or pull request to update docs if this PR changes settings, environment variables, new feature, etc.