Repository navigation
Conversation
jebriede
reviewed
Mar 18, 2025
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR introduces vulnerability capabilities for handling package data from multiple sources and updates various models and tests to leverage the new IVulnerableCapable interface. Key changes include:
- Adding two new capability implementations: VulnerablePackageMetadataCapability and VulnerableDatabaseCapability.
- Updating the VulnerableCapabilityBase class to make vulnerabilities nullable and sorting them.
- Refactoring package models and their tests to use the new IVulnerableCapable interface.
Reviewed Changes
Copilot reviewed 17 out of 17 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| test/NuGet.Clients.Tests/NuGet.PackageManagement.UI.Test/Models/Package/TestVulnerableCapability.cs | New test implementation for vulnerability capability testing. |
| src/NuGet.Clients/NuGet.PackageManagement.UI/Models/Package/VulnerablePackageMetadataCapability.cs | Implements vulnerability capability using package metadata. |
| test/NuGet.Clients.Tests/NuGet.PackageManagement.UI.Test/Models/Package/VulnerableDatabaseCapabilityTests.cs | Tests for the new VulnerableDatabaseCapability. |
| src/NuGet.Clients/NuGet.PackageManagement.UI/Models/Package/VulnerableDatabaseCapability.cs | Implements vulnerability capability based on database information. |
| test/NuGet.Clients.Tests/NuGet.PackageManagement.UI.Test/Models/Package/VulnerablePackageMetadataCapabilityTests.cs | Tests for the metadata-based vulnerability capability. |
| src/NuGet.Clients/NuGet.PackageManagement.UI/Models/Package/IVulnerableCapable.cs | Updates the vulnerability interface to support nullable vulnerabilities and async data population. |
| src/NuGet.Clients/NuGet.PackageManagement.UI/Models/Package/VulnerableCapabilityBase.cs | Refactors the base vulnerability capability with nullability support and ordered sorting. |
| src/NuGet.Clients/NuGet.PackageManagement.UI/Models/Package/ReferencedPackageModel.cs | Updated to use IVulnerableCapable instead of IVulnerable. |
| src/NuGet.Clients/NuGet.PackageManagement.UI/Models/Package/RemotePackageModel.cs | Updated to use IVulnerableCapable instead of IVulnerable. |
| src/NuGet.Clients/NuGet.PackageManagement.UI/Models/Package/LocalPackageModel.cs | Updated to use IVulnerableCapable instead of IVulnerable. |
| test/NuGet.Clients.Tests/NuGet.PackageManagement.UI.Test/Models/Package/* | Numerous test updates to reflect the interface renamings and ensure proper behavior. |
| src/NuGet.Clients/NuGet.PackageManagement.UI/Models/Package/TransitivelyReferencedPackageModel.cs | Adjusted to use IVulnerableCapable, aligning with the new vulnerability capability design. |
martinrrm
approved these changes
Mar 19, 2025
jgonz120
force-pushed
the
dev-jgonz120-AddVulnerabiityCapabilities
branch
from
March 19, 2025 21:33
bd47064 to
0970576
Compare
jebriede
approved these changes
Mar 20, 2025
jebriede
pushed a commit
that referenced
this pull request
Mar 24, 2025
* Added some vulnerability capabilities * Update to have refresh action * Added tests and use interface * PR comments * Pr comments * Remove unused variable * Remove extra parameters * update tests * update words * combine throw * add readonly * simplify * fix words * update
jebriede
pushed a commit
that referenced
this pull request
Apr 16, 2025
* Added some vulnerability capabilities * Update to have refresh action * Added tests and use interface * PR comments * Pr comments * Remove unused variable * Remove extra parameters * update tests * update words * combine throw * add readonly * simplify * fix words * update
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
Added vulnerability capabilities for loading from different stores.
PR Checklist
Link to an issue or pull request to update docs if this PR changes settings, environment variables, new feature, etc.