Group-level filtering refactor: use Vuex
What does this MR do and why?
Group-level filtering refactor: use Vuex
This commit refactors the group-level filtering to use Vuex. It also fixes a UX issue in which the license filters would show the license's SPDX identifier instead of its name when being edited.
Moving most of the logic to Vuex will also make adding additional filters easier.
Screenshots or screen recordings
Before | After |
---|---|
Screen_Recording_2023-11-13_at_11.32.28_am | Screen_Recording_2023-11-13_at_11.33.23_am |
How to set up and validate locally
- Apply the following patch to mock licenses: mock_licenses.patch
- Go to a group's "Secure -> Dependency List"
- Click on the "Search or filter dependencies ..." input
- Select "License" and click on "BSD Zero Clause License"
- Verify that the license is selected
- Click within the input again and hit "Backspace"
- Verify that the input shows "BSD Zero Clause License" and not "0BSD"
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #431568 (closed)
Edited by David Pisek