Skip to content

Commit f694885

Browse files
committed
feat(supergroups): Filter supergroups to unresolved issues
Pass status=unresolved to the supergroups by-group endpoint and skip supergroups with only 1 issue in the lookup.
1 parent 9227fd0 commit f694885

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

static/app/views/issueList/supergroups/useSuperGroups.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ export function useSuperGroups(groupIds: string[]): {
4545
{
4646
query: {
4747
group_id: requestedGroupIds,
48+
status: 'unresolved',
4849
},
4950
},
5051
],
@@ -67,6 +68,9 @@ export function useSuperGroups(groupIds: string[]): {
6768
}
6869
const result: SupergroupLookup = Object.fromEntries(groupIds.map(id => [id, null]));
6970
for (const sg of response.data) {
71+
if (sg.group_ids.length <= 1) {
72+
continue;
73+
}
7074
for (const groupId of sg.group_ids) {
7175
result[String(groupId)] = sg;
7276
}

0 commit comments

Comments
 (0)