Skip to content

Add vulnerability survey request banner

What does this MR do?

On the Vulnerability Report and Security Dashboard pages, we are adding a survey banner that invites the user to take a survey:

ksnip_20210326-003234

This MR adds the survey banner with the following features:

  1. The banner will be temporarily shown to all users using a feature flag that was added in a previous MR (vulnerability_management_survey).

  2. The banner can be dismissed in one of two ways: if the "Ask again later" link button is clicked, the banner will be hidden and a toast notification will notify the user that it will show again in 7 days:

Peek_2021-03-26_00-42
  1. If the X button on the upper right is clicked, the banner will be hidden until the next survey round (more details in comments). In the future we may want to re-run the survey if we need more feedback.

  2. The banner will show on the Vulnerability Report and Security Dashboard for all 3 levels (project, group, and instance level), for a total of 6 places:

Vulnerability Report:

Project level Group level Instance level
vulnerability_report_project vulnerability_report_group vulnerability_report_instance

Security Dashboard:

Project level Group level Instance level
security_dashboard_project security_dashboard_group security_dashboard_instance

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Related to #324246

Edited by Daniel Tian

Merge request reports

Loading