Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to filter Vulnerable and Non Vulnerable Packages #1760

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Rishi-source
Copy link

@Rishi-source Rishi-source commented Jan 24, 2025

Implement vulnerable package filtering functionality in package search

Issue Addressed : #1759

Feature Added:

  1. Vulnerable package filtering in package search
  2. Ability to filter packages as vulnerable-only, non-vulnerable-only, or all packages

Tests Added:

  1. test_package_search_vulnerable_only_filter in PackageSearchTestCase
  2. Validates creation of vulnerable and non-vulnerable packages
  3. Checks vulnerability relationship creation

Changes Made:

  1. Updated PackageSearch view in views.py
  2. Modified PackageSearchForm in forms.py
  3. Updated packages.html template with dropdown for vulnerability filtering
  4. Added JavaScript to handle URL parameter updates for vulnerability filter
Screenshot 2025-01-24 at 11 24 38 PM

Work Left:

  1. Adding the Vulnerable package filtering in v2 APIs.
  2. Adding test for Vulnerable package filtering in v2 APIs.

Signed-off-by: Rishi Garg [email protected]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants