-
Notifications
You must be signed in to change notification settings - Fork 209
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1033 from TG1999/fix/1032
Handle purl fragments in package search #1032
- Loading branch information
Showing
3 changed files
with
17 additions
and
47 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,9 @@ Version v31.1.0 | |
|
||
- We re-enabled support for the NPM vulnerabilities advisories importer. | ||
- We re-enabled support for the Retiredotnet vulnerabilities advisories importer. | ||
- We are now handling purl fragments in package search. For example: | ||
you can now serch using queries in the UI like this : `[email protected]`, | ||
`cherrypy` or `pkg:pypi`. | ||
|
||
|
||
Version v31.0.0 | ||
|
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -57,6 +57,12 @@ def test_package_view(self): | |
self.assertEqual(len(pkgs), 1) | ||
self.assertEqual(pkgs[0].purl, "pkg:nginx/[email protected]") | ||
|
||
def test_package_view_with_purl_fragment(self): | ||
qs = PackageSearch().get_queryset(query="[email protected]") | ||
pkgs = list(qs) | ||
self.assertEqual(len(pkgs), 1) | ||
self.assertEqual(pkgs[0].purl, "pkg:nginx/[email protected]") | ||
|
||
|
||
class VulnerabilitySearchTestCase(TestCase): | ||
def setUp(self): | ||
|