Update delete group message

What does this MR do and why?

Update delete group message

  • update to account for projects in group that are security policy projects
  • list out linked containers to spp
  • use helper in view and service
  • add tests

Changelog: added

EE: true

References

Please include cross links to any resources that are relevant to this MR. This will give reviewers and future readers helpful context to give an efficient review of the changes introduced.

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After
Screenshot_2025-01-28_at_12.53.39 Screenshot_2025-01-28_at_12.51.24

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

  1. Upload a GitLab Ultimate
  2. Enable the feature flag echo "Feature.enable(::reject_security_policy_project_deletion_groups)" | rails c
  3. Navigate to a group with a security policy project in it => Settings => General => Advanced => Delete group
  4. Verify the card is updated with the projects and links and delete button disabled

Related to #512047 (closed)

Edited by Alexander Turinske

Merge request reports

Loading