Hide group actions when deletion is in progress

What does this MR do and why?

On Your work -> Groups groups are deleted via a background job and display a Deletion in progress badge while this is happening. We shouldn't have any actions available when a group deletion is in progress. This MR updates the logic for displaying actions so there are no actions when deletion is in progress.

References

Screenshots or screen recordings

Before After
Screenshot_2025-07-14_at_8.28.34_AM Screenshot_2025-07-14_at_8.26.41_AM

How to set up and validate locally

  1. Go to /rails/features and enable your_work_groups_vue feature flag
  2. Apply this patch:
diff --git a/app/assets/javascripts/groups/your_work/graphql/utils.js b/app/assets/javascripts/groups/your_work/graphql/utils.js
index 1c41d66405bb..f3e48ac22cb3 100644
--- a/app/assets/javascripts/groups/your_work/graphql/utils.js
+++ b/app/assets/javascripts/groups/your_work/graphql/utils.js
@@ -14,7 +14,7 @@ export const formatGroupForGraphQLResolver = (group) => ({
   updatedAt: group.updated_at,
   avatarUrl: group.avatar_url,
   markedForDeletion: group.marked_for_deletion,
-  isSelfDeletionInProgress: group.is_self_deletion_in_progress,
+  isSelfDeletionInProgress: true,
   isSelfDeletionScheduled: group.is_self_deletion_scheduled,
   userPermissions: {
     canLeave: group.can_leave,
  1. Go to /dashboard/groups. There should be no actions next to groups

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 Peter Hegman

Merge request reports

Loading