Show auto-resolve info banner on vulnerability report
What does this MR do and why?
Related #516981 (closed)
This show an info banner about the vulnerability management policy, auto-resolve action, only if there are no vulnerability management policies in that group or project and the banner is not dismissed.
If the banner has been dismissed, it will not fetch vulnerability management policies anymore.
Screenshots
MR acceptance checklist
How to set up and validate locally
Project with vulnerability management policies
- Go to a project, Create a vulnerability management policy following steps in the docs
- Go to the project vulnerability report and validate:
- No banner is showing
- a network request is made for only the first vulnerability management policy
Project with no vulnerability management policies
- Go to a project with no vulnerability management policies (make sure the group also has no vulnerability management policies. A new group + project will not have a vulnerability management policy applied. You can always check at Secure > Policies)
- Go to the vulnerability report and validate:
- Banner is showing
- Clicking "Go to policies", goes to the project's policies page
- Clicking "release post" goes to the 17.7 release post topic about the new policy
- A network request is made for the project vulnerability management policies
Group with no vulnerability management policies
- Go to a group with no vulnerability management policies
- Go to the vulnerability report and validate:
- Banner is showing
- Clicking "Go to policies", goes to the group's policies page
- A network request is made for the group vulnerability management policies
- Click the x button, and banner is hidden.
- Refresh page and validate that banner is not shown and not network request for policies is made anymore
Edited by Lorenz van Herwaarden
