Skip to content

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

  1. Apply the following patch to mock licenses: mock_licenses.patch
  2. Go to a group's "Secure -> Dependency List"
  3. Click on the "Search or filter dependencies ..." input
  4. Select "License" and click on "BSD Zero Clause License"
  5. Verify that the license is selected
  6. Click within the input again and hit "Backspace"
  7. 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.

Related to #431568 (closed)

Edited by David Pisek

Merge request reports