Add limited experience alert to vulnerability report
What does this MR do and why?
With advanced vulnerability management access coming to GitLab Self-Managed and Dedicated in %18.7, see Setup vulnerabilities index on advanced search ... (&18758), we can inform users if advanced search is not enabled and direct them to the docs for instructions.
For the group and project level vulnerability report, if advanced search is not enabled, a limited experience alert will be shown to notify the user about this.
Changelog: added EE: true
References
Related #582505
Design: #557323[Vuln_Report_ES.png]
Screenshots or screen recordings
How to set up and validate locally
- Go to group- or project-level vulnerability report
- Either disable advanced search or mock this by applying following diff:
diff --git a/ee/app/assets/javascripts/security_dashboard/components/shared/vulnerability_report/vulnerability_report.vue b/ee/app/assets/javascripts/security_dashboard/components/shared/vulnerability_report/vulnerability_report.vue
index b65e485cb356..caa7c0e8d892 100644
--- a/ee/app/assets/javascripts/security_dashboard/components/shared/vulnerability_report/vulnerability_report.vue
+++ b/ee/app/assets/javascripts/security_dashboard/components/shared/vulnerability_report/vulnerability_report.vue
@@ -237,6 +237,7 @@ export default {
);
},
hasLimitedExperience() {
+ return true;
return (
!this.glAbilities?.accessAdvancedVulnerabilityManagement &&
!this.isInstanceVulnerabilityReport
- Validate an alert is shown. The link redirects to documentation about enabling advanced search.
- Validate that if you dismiss alert it sends a graphql request and when refreshing the page, the alert does not re-appear.
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Edited by Lorenz van Herwaarden
