Initial MR for PDF Export functionality
What does this MR do and why?
This code change adds a new feature flag called newSecurityDashboardPdfExport that controls whether users can see and use a "PDF Export" button on security dashboards.
The main changes include:
- Creating a new feature flag that is disabled by default
- Adding the feature flag check to multiple security dashboard components (project, group, and shared dashboards)
- The PDF export button now only appears when this feature flag is turned on
- Adding comprehensive tests to verify the button shows/hides correctly based on the flag setting
References
Screenshots or screen recordings
| Dashboard | FF OFF | FF ON |
|---|---|---|
| Project |
|
|
| Group |
|
|
How to set up and validate locally
- Checkout https://gitlab.com/gitlab-examples/security/security-reports/ (make sure to add this project to a group)
- Run a pipeline against default branch to generate vulnerabilities
- Visit the Project & Group level security dashboards
- The
Exportbutton should not be visible - Now enable the feature flag: http://gdk.test:3000/rails/features/new_security_dashboard_pdf_export
- Revisit the dashboards, and the button should be there
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.
Related to #589203
Edited by Savas Vedova



