Loading
Rename the custom scan profiles feature flag
What does this MR do and why?
Rename the custom scan profiles feature flag
Rename custom_secret_detection_profiles_ui to custom_scan_profiles_ui,
across the definition file, the controller, group_scanners_overview and
both specs.References
- flag added Add scan profile drawer to scanners overview (!252494 - merged)
- feature issue: [Frontend] Scan profile drawer: view, create, e... (#624191 - closed)
Screenshots or screen recordings
No visual changes expected
How to set up and validate locally
-
git checkout mfluharty-rename-custom-scan-profiles-ui-flag echo "Feature.enable(:custom_scan_profiles_ui)" | gdk rails c - have a GitLab Ultimate licence
- go to a group =>
Secure=>Security configuration - check that the scanners table shows:
- a
Manage profilesbutton on theSecret detectionrow - a
View detailsbutton on every row
- a
- click
Manage profilesand check that the profile drawer opens
with the flag off
- turn it off:
echo "Feature.disable(:custom_scan_profiles_ui)" | gdk rails c - reload
Secure=>Security configuration - check that:
- no row has a
Manage profilesbutton View detailsis still on every row- the rest of the page is unchanged
- no row has a
the old name should be gone
- check that nothing references the flag by its old name any more:
- there is no
custom_secret_detection_profiles_ui.ymlunderee/config/feature_flags/ grep -rn "custom_secret_detection_profiles_ui\|customSecretDetectionProfilesUi" ee/returns nothing
- there is no
to run tests
yarn jest ee/spec/frontend/security_configuration/components/scan_profiles/group_scanners_overview_spec.js
bundle exec rspec ee/spec/requests/groups/security/configuration_controller_spec.rbMR 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 Miranda Fluharty