Add operators and translation logic to API in version token
Support filtering by not operator as well as equals operator, while selecting multiple versions too.
Operators
Only support = and != because of backend performance.
How to query: component_version_ids[]=x.y.z and not[component_version_ids][]=x.y.z
Verification steps
- Go to https://gitlab.com/gitlab-org/govern/threat-insights-demos/verification-projects/verify-not-equals-component-versioning-filter/-/dependencies
- Filter by component
git - Filter by version and choose operator
!=("is not one of") and select some versions - Apply the filter and verify that the git dependencies of those versions are not shown in the list
Edited by Lorenz van Herwaarden