Implement identifier filter
What does this MR do and why?
Implement identifier filter
This is the first version, where we don't include the dropdown. Users
can perform an exact match to filter vulnerabilities by their identifiers.
References
Please include cross links to any resources that are relevant to this MR This will give reviewers and future readers helpful context to give an efficient review of the changes introduced.
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Screenshots or screen recordings
Savas_Vedova_s_Video_-_Nov_26__2024-VEED
How to set up and validate locally
- Enable feature flag:
echo "Feature.enable(:vulnerability_filtering_by_identifier)" | rails c - Go to Vulnerability Report in a Project Level
- Check the identifier filter
Here are things to verify:
-
When the feature flag is turned off, terms as tokens should be turned of (searching by text) -
Identifier token accepts only exact matches for now, so searching for an identifier should filter the report accordingly -
Refreshing the page should keep the vulnerability report in the same state -
Deleting the token should reset the filter (backspace as well)
Related to #452492 (closed)
Edited by Bala Kumar