Expanding groups in inactive tab doesn't load subgroups correctly in Your Work > Groups

Expanding groups in the Inactive tab sometimes doesn't load its subgroups. It only works if the subgroups were preloaded or included in the first load.

Screen_Recording_2025-07-29_at_2.55.43_PM

This happens because its making a fetch request with the active parameter set to TRUE.

Implementation Guide

  1. Remove the default value for active in the API request
Subject: [PATCH] Migrate Admin Projects Dashboard to Vue-based dashboard

Roll out the modernized Vue.js interface for the Admin Area > Projects
section, providing administrators with an improved user experience for
project management tasks.

Changelog: changed
---
Index: app/assets/javascripts/groups/your_work/constants.js
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/app/assets/javascripts/groups/your_work/constants.js b/app/assets/javascripts/groups/your_work/constants.js
--- a/app/assets/javascripts/groups/your_work/constants.js	(revision da8c4959b3d9fb14491bb64158b588f90b2ac1d4)
+++ b/app/assets/javascripts/groups/your_work/constants.js	(date 1753772204473)
@@ -25,6 +25,7 @@
   queryPath: 'groups',
   listComponent: NestedGroupsProjectsList,
   queryErrorMessage: __("Your groups couldn't be loaded. Refresh the page to try again."),
+  variables: { active: true },
 };
 
 export const MEMBER_TAB = {
Index: app/assets/javascripts/groups/your_work/graphql/queries/groups.query.graphql
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/app/assets/javascripts/groups/your_work/graphql/queries/groups.query.graphql b/app/assets/javascripts/groups/your_work/graphql/queries/groups.query.graphql
--- a/app/assets/javascripts/groups/your_work/graphql/queries/groups.query.graphql	(revision da8c4959b3d9fb14491bb64158b588f90b2ac1d4)
+++ b/app/assets/javascripts/groups/your_work/graphql/queries/groups.query.graphql	(date 1753772204468)
@@ -1,12 +1,6 @@
 #import "~/graphql_shared/fragments/group.fragment.graphql"
 
-query yourWorkGroups(
-  $active: Boolean = true
-  $search: String
-  $sort: String
-  $parentId: Int
-  $page: Int
-) {
+query yourWorkGroups($active: Boolean, $search: String, $sort: String, $parentId: Int, $page: Int) {
   groups(active: $active, search: $search, sort: $sort, parentId: $parentId, page: $page) @client {
     nodes {
       ...Group
Edited by 🤖 GitLab Bot 🤖