diff --git a/static/app/utils/analytics/issueAnalyticsEvents.tsx b/static/app/utils/analytics/issueAnalyticsEvents.tsx
index b667ca47d124..e4503c23e34d 100644
--- a/static/app/utils/analytics/issueAnalyticsEvents.tsx
+++ b/static/app/utils/analytics/issueAnalyticsEvents.tsx
@@ -59,7 +59,7 @@ interface SetPriorityParams extends CommonGroupAnalyticsData {
}
interface IssueInboxItemParams extends CommonGroupAnalyticsData {
- assignment_filter: 'me' | 'my_teams' | 'all';
+ assignment_filter: 'my_teams' | 'all';
last_progressed_at: string | null;
progress: ProgressState | undefined;
}
@@ -201,7 +201,7 @@ export type IssueEventParameters = {
platform?: string;
};
'issue_inbox.assignment_filter_changed': {
- assignment_filter: 'me' | 'my_teams' | 'all';
+ assignment_filter: 'my_teams' | 'all';
};
'issue_inbox.issue_viewed': IssueInboxItemParams;
'issue_inbox.item_clicked': IssueInboxItemParams;
diff --git a/static/app/views/issueList/pages/inbox/index.spec.tsx b/static/app/views/issueList/pages/inbox/index.spec.tsx
index b55cc4f7657e..6306796f9874 100644
--- a/static/app/views/issueList/pages/inbox/index.spec.tsx
+++ b/static/app/views/issueList/pages/inbox/index.spec.tsx
@@ -181,25 +181,25 @@ describe('InboxPage', () => {
function mockSuccessfulSections() {
return [
mockSection(
- 'issue.progress:fix_proposed is:unresolved assigned_or_suggested:me',
+ 'issue.progress:fix_proposed is:unresolved assigned_or_suggested:[me,my_teams]',
[fixProposedGroup],
200,
2
),
mockSection(
- 'issue.progress:diagnosed is:unresolved assigned_or_suggested:me',
+ 'issue.progress:diagnosed is:unresolved assigned_or_suggested:[me,my_teams]',
[diagnosedGroup],
200,
2
),
mockSection(
- 'issue.progress:[assigned,identified] is:unresolved assigned_or_suggested:me',
+ 'issue.progress:[assigned,identified] is:unresolved assigned_or_suggested:[me,my_teams]',
[assignedGroup],
200,
12
),
mockSection(
- 'issue.progress:fix_applied is:unresolved assigned_or_suggested:me',
+ 'issue.progress:fix_applied is:unresolved assigned_or_suggested:[me,my_teams]',
[]
),
];
@@ -345,10 +345,10 @@ describe('InboxPage', () => {
expect(screen.getByRole('heading', {name: 'Issues', level: 2})).toBeInTheDocument();
for (const [index, query] of [
- 'issue.progress:fix_proposed is:unresolved assigned_or_suggested:me',
- 'issue.progress:diagnosed is:unresolved assigned_or_suggested:me',
- 'issue.progress:[assigned,identified] is:unresolved assigned_or_suggested:me',
- 'issue.progress:fix_applied is:unresolved assigned_or_suggested:me',
+ 'issue.progress:fix_proposed is:unresolved assigned_or_suggested:[me,my_teams]',
+ 'issue.progress:diagnosed is:unresolved assigned_or_suggested:[me,my_teams]',
+ 'issue.progress:[assigned,identified] is:unresolved assigned_or_suggested:[me,my_teams]',
+ 'issue.progress:fix_applied is:unresolved assigned_or_suggested:[me,my_teams]',
].entries()) {
await waitFor(() =>
expect(requests[index]).toHaveBeenCalledWith(
@@ -535,15 +535,22 @@ describe('InboxPage', () => {
},
],
});
- mockSection('issue.progress:fix_proposed is:unresolved assigned_or_suggested:me', []);
- mockSection('issue.progress:diagnosed is:unresolved assigned_or_suggested:me', [
- groupWithSuggestedOwner,
- ]);
mockSection(
- 'issue.progress:[assigned,identified] is:unresolved assigned_or_suggested:me',
+ 'issue.progress:fix_proposed is:unresolved assigned_or_suggested:[me,my_teams]',
+ []
+ );
+ mockSection(
+ 'issue.progress:diagnosed is:unresolved assigned_or_suggested:[me,my_teams]',
+ [groupWithSuggestedOwner]
+ );
+ mockSection(
+ 'issue.progress:[assigned,identified] is:unresolved assigned_or_suggested:[me,my_teams]',
+ []
+ );
+ mockSection(
+ 'issue.progress:fix_applied is:unresolved assigned_or_suggested:[me,my_teams]',
[]
);
- mockSection('issue.progress:fix_applied is:unresolved assigned_or_suggested:me', []);
const suggestedOwnerRequest = MockApiClient.addMockResponse({
url: '/organizations/org-slug/members/',
match: [
@@ -580,15 +587,22 @@ describe('InboxPage', () => {
assignedTo: {id: assignedTeam.id, name: assignedTeam.name, type: 'team'},
});
TeamStore.loadInitialData([assignedTeam]);
- mockSection('issue.progress:fix_proposed is:unresolved assigned_or_suggested:me', [
- teamAssignedGroup,
- ]);
- mockSection('issue.progress:diagnosed is:unresolved assigned_or_suggested:me', []);
mockSection(
- 'issue.progress:[assigned,identified] is:unresolved assigned_or_suggested:me',
+ 'issue.progress:fix_proposed is:unresolved assigned_or_suggested:[me,my_teams]',
+ [teamAssignedGroup]
+ );
+ mockSection(
+ 'issue.progress:diagnosed is:unresolved assigned_or_suggested:[me,my_teams]',
+ []
+ );
+ mockSection(
+ 'issue.progress:[assigned,identified] is:unresolved assigned_or_suggested:[me,my_teams]',
+ []
+ );
+ mockSection(
+ 'issue.progress:fix_applied is:unresolved assigned_or_suggested:[me,my_teams]',
[]
);
- mockSection('issue.progress:fix_applied is:unresolved assigned_or_suggested:me', []);
render(, {organization: seerOrganization, initialRouterConfig});
@@ -623,25 +637,9 @@ describe('InboxPage', () => {
expect(screen.getByRole('region', {name: 'Diagnosed'})).toBeInTheDocument();
});
- it('includes identified issues in Assigned for scoped assignee tabs', async () => {
- mockSuccessfulSections();
+ it('includes identified issues in Assigned for the scoped assignee tab', async () => {
+ const scopedRequests = mockSuccessfulSections();
mockIssuePreview();
- mockSection(
- 'issue.progress:fix_proposed is:unresolved assigned_or_suggested:[me,my_teams]',
- [fixProposedGroup]
- );
- mockSection(
- 'issue.progress:diagnosed is:unresolved assigned_or_suggested:[me,my_teams]',
- [diagnosedGroup]
- );
- const assignedMyTeamsRequest = mockSection(
- 'issue.progress:[assigned,identified] is:unresolved assigned_or_suggested:[me,my_teams]',
- [assignedGroup]
- );
- mockSection(
- 'issue.progress:fix_applied is:unresolved assigned_or_suggested:[me,my_teams]',
- []
- );
mockSection('issue.progress:fix_proposed is:unresolved', [fixProposedGroup]);
mockSection('issue.progress:diagnosed is:unresolved', [diagnosedGroup]);
const assignedAllRequest = mockSection('issue.progress:assigned is:unresolved', [
@@ -656,10 +654,8 @@ describe('InboxPage', () => {
expect(screen.queryByRole('region', {name: 'Identified'})).not.toBeInTheDocument();
- await userEvent.click(screen.getByRole('radio', {name: /^My Teams/}));
-
- expect(screen.queryByRole('region', {name: 'Identified'})).not.toBeInTheDocument();
- await waitFor(() => expect(assignedMyTeamsRequest).toHaveBeenCalledTimes(1));
+ expect(screen.getByRole('radio', {name: /^Me/})).toBeChecked();
+ await waitFor(() => expect(scopedRequests[2]).toHaveBeenCalledTimes(1));
const allFilter = screen.getByRole('radio', {name: /^All/});
await userEvent.click(allFilter);
@@ -675,7 +671,6 @@ describe('InboxPage', () => {
const countRequest = MockApiClient.addMockResponse({
url: '/organizations/org-slug/issues-count/',
body: {
- [`issue.progress:[fix_proposed,diagnosed,assigned,identified] is:unresolved assigned_or_suggested:me${INBOX_AUTOFIX_CATEGORY_FILTER}`]: 10,
[`issue.progress:[fix_proposed,diagnosed,assigned,identified] is:unresolved assigned_or_suggested:[me,my_teams]${INBOX_AUTOFIX_CATEGORY_FILTER}`]: 49,
[`issue.progress:[fix_proposed,diagnosed,assigned] is:unresolved${INBOX_AUTOFIX_CATEGORY_FILTER}`]: 100,
},
@@ -683,15 +678,14 @@ describe('InboxPage', () => {
render(, {organization: seerOrganization, initialRouterConfig});
- expect(await screen.findByRole('radio', {name: 'Me 10'})).toBeInTheDocument();
- expect(screen.getByRole('radio', {name: 'My Teams 49'})).toBeInTheDocument();
+ expect(await screen.findByRole('radio', {name: 'Me 49'})).toBeInTheDocument();
+ expect(screen.queryByRole('radio', {name: /^My Teams/})).not.toBeInTheDocument();
expect(screen.getByRole('radio', {name: 'All 99+'})).toBeInTheDocument();
expect(countRequest).toHaveBeenCalledWith(
expect.anything(),
expect.objectContaining({
query: {
query: [
- `issue.progress:[fix_proposed,diagnosed,assigned,identified] is:unresolved assigned_or_suggested:me${INBOX_AUTOFIX_CATEGORY_FILTER}`,
`issue.progress:[fix_proposed,diagnosed,assigned,identified] is:unresolved assigned_or_suggested:[me,my_teams]${INBOX_AUTOFIX_CATEGORY_FILTER}`,
`issue.progress:[fix_proposed,diagnosed,assigned] is:unresolved${INBOX_AUTOFIX_CATEGORY_FILTER}`,
],
@@ -706,20 +700,24 @@ describe('InboxPage', () => {
url: '/organizations/org-slug/issues/',
match: [
MockApiClient.matchQuery({
- query: `issue.progress:fix_proposed is:unresolved assigned_or_suggested:me${INBOX_AUTOFIX_CATEGORY_FILTER}`,
+ query: `issue.progress:fix_proposed is:unresolved assigned_or_suggested:[me,my_teams]${INBOX_AUTOFIX_CATEGORY_FILTER}`,
}),
],
body: [fixProposedGroup],
headers: {'X-Hits': '1000', 'X-Max-Hits': '1000'},
});
- mockSection('issue.progress:diagnosed is:unresolved assigned_or_suggested:me', [
- diagnosedGroup,
- ]);
mockSection(
- 'issue.progress:[assigned,identified] is:unresolved assigned_or_suggested:me',
+ 'issue.progress:diagnosed is:unresolved assigned_or_suggested:[me,my_teams]',
+ [diagnosedGroup]
+ );
+ mockSection(
+ 'issue.progress:[assigned,identified] is:unresolved assigned_or_suggested:[me,my_teams]',
[assignedGroup]
);
- mockSection('issue.progress:fix_applied is:unresolved assigned_or_suggested:me', []);
+ mockSection(
+ 'issue.progress:fix_applied is:unresolved assigned_or_suggested:[me,my_teams]',
+ []
+ );
render(, {organization: seerOrganization, initialRouterConfig});
@@ -757,26 +755,8 @@ describe('InboxPage', () => {
});
it('filters sections without scrolling the selected issue into view', async () => {
- mockSuccessfulSections();
+ const myTeamsRequests = mockSuccessfulSections();
mockIssuePreview();
- const myTeamsRequests = [
- mockSection(
- 'issue.progress:fix_proposed is:unresolved assigned_or_suggested:[me,my_teams]',
- [fixProposedGroup]
- ),
- mockSection(
- 'issue.progress:diagnosed is:unresolved assigned_or_suggested:[me,my_teams]',
- [diagnosedGroup]
- ),
- mockSection(
- 'issue.progress:[assigned,identified] is:unresolved assigned_or_suggested:[me,my_teams]',
- [assignedGroup]
- ),
- mockSection(
- 'issue.progress:fix_applied is:unresolved assigned_or_suggested:[me,my_teams]',
- []
- ),
- ];
const allRequests = [
mockSection('issue.progress:fix_proposed is:unresolved', [fixProposedGroup]),
mockSection('issue.progress:diagnosed is:unresolved', [diagnosedGroup]),
@@ -790,10 +770,8 @@ describe('InboxPage', () => {
});
const meFilter = screen.getByRole('radio', {name: /^Me/});
- const myTeamsFilter = screen.getByRole('radio', {name: /^My Teams/});
const allFilter = screen.getByRole('radio', {name: /^All/});
expect(meFilter).toBeChecked();
- expect(myTeamsFilter).not.toBeChecked();
expect(allFilter).not.toBeChecked();
expect(await screen.findByText('Fix proposed issue')).toBeInTheDocument();
await userEvent.click(
@@ -802,10 +780,6 @@ describe('InboxPage', () => {
})
);
- await userEvent.click(myTeamsFilter);
-
- expect(myTeamsFilter).toBeChecked();
- expect(router.location.query.assignment).toBe('my_teams');
for (const request of myTeamsRequests) {
await waitFor(() => expect(request).toHaveBeenCalledTimes(1));
}
@@ -897,7 +871,7 @@ describe('InboxPage', () => {
url: '/organizations/org-slug/issues/',
match: [
MockApiClient.matchQuery({
- query: `issue.progress:fix_proposed is:unresolved assigned_or_suggested:me${INBOX_AUTOFIX_CATEGORY_FILTER}`,
+ query: `issue.progress:fix_proposed is:unresolved assigned_or_suggested:[me,my_teams]${INBOX_AUTOFIX_CATEGORY_FILTER}`,
}),
],
body: [fixProposedGroup],
@@ -910,7 +884,7 @@ describe('InboxPage', () => {
url: '/organizations/org-slug/issues/',
match: [
MockApiClient.matchQuery({
- query: `issue.progress:fix_proposed is:unresolved assigned_or_suggested:me${INBOX_AUTOFIX_CATEGORY_FILTER}`,
+ query: `issue.progress:fix_proposed is:unresolved assigned_or_suggested:[me,my_teams]${INBOX_AUTOFIX_CATEGORY_FILTER}`,
cursor: '0:10:0',
}),
],
@@ -926,14 +900,18 @@ describe('InboxPage', () => {
url: '/organizations/org-slug/replay-count/',
body: {},
});
- mockSection('issue.progress:diagnosed is:unresolved assigned_or_suggested:me', [
- diagnosedGroup,
- ]);
mockSection(
- 'issue.progress:[assigned,identified] is:unresolved assigned_or_suggested:me',
+ 'issue.progress:diagnosed is:unresolved assigned_or_suggested:[me,my_teams]',
+ [diagnosedGroup]
+ );
+ mockSection(
+ 'issue.progress:[assigned,identified] is:unresolved assigned_or_suggested:[me,my_teams]',
[assignedGroup]
);
- mockSection('issue.progress:fix_applied is:unresolved assigned_or_suggested:me', []);
+ mockSection(
+ 'issue.progress:fix_applied is:unresolved assigned_or_suggested:[me,my_teams]',
+ []
+ );
render(, {organization, initialRouterConfig});
@@ -1537,30 +1515,6 @@ describe('InboxPage', () => {
expect(await screen.findByText('No Issues in your Inbox!')).toBeInTheDocument();
});
- it('links to the team inbox when the personal inbox is empty', async () => {
- MockApiClient.addMockResponse({
- url: '/organizations/org-slug/issues/',
- body: [],
- });
- MockApiClient.addMockResponse({
- url: '/organizations/org-slug/issues-count/',
- body: {
- [`issue.progress:[fix_proposed,diagnosed,assigned,identified] is:unresolved assigned_or_suggested:me${INBOX_AUTOFIX_CATEGORY_FILTER}`]: 0,
- [`issue.progress:[fix_proposed,diagnosed,assigned,identified] is:unresolved assigned_or_suggested:[me,my_teams]${INBOX_AUTOFIX_CATEGORY_FILTER}`]: 2,
- [`issue.progress:[fix_proposed,diagnosed,assigned] is:unresolved${INBOX_AUTOFIX_CATEGORY_FILTER}`]: 3,
- },
- });
-
- const {router} = render(, {
- organization: seerOrganization,
- initialRouterConfig,
- });
-
- await userEvent.click(await screen.findByRole('button', {name: 'View team inbox'}));
-
- expect(router.location.query.assignment).toBe('my_teams');
- });
-
it('links to the all inbox when the team inbox is empty', async () => {
MockApiClient.addMockResponse({
url: '/organizations/org-slug/issues/',
@@ -1569,7 +1523,6 @@ describe('InboxPage', () => {
MockApiClient.addMockResponse({
url: '/organizations/org-slug/issues-count/',
body: {
- [`issue.progress:[fix_proposed,diagnosed,assigned,identified] is:unresolved assigned_or_suggested:me${INBOX_AUTOFIX_CATEGORY_FILTER}`]: 0,
[`issue.progress:[fix_proposed,diagnosed,assigned,identified] is:unresolved assigned_or_suggested:[me,my_teams]${INBOX_AUTOFIX_CATEGORY_FILTER}`]: 0,
[`issue.progress:[fix_proposed,diagnosed,assigned] is:unresolved${INBOX_AUTOFIX_CATEGORY_FILTER}`]: 3,
},
@@ -1590,21 +1543,22 @@ describe('InboxPage', () => {
// have issues, so taking whichever result arrives first would select the
// Diagnosed issue; section priority must win instead.
mockSection(
- 'issue.progress:fix_proposed is:unresolved assigned_or_suggested:me',
+ 'issue.progress:fix_proposed is:unresolved assigned_or_suggested:[me,my_teams]',
[fixProposedGroup],
200,
1,
100
);
- mockSection('issue.progress:diagnosed is:unresolved assigned_or_suggested:me', [
- diagnosedGroup,
- ]);
mockSection(
- 'issue.progress:[assigned,identified] is:unresolved assigned_or_suggested:me',
+ 'issue.progress:diagnosed is:unresolved assigned_or_suggested:[me,my_teams]',
+ [diagnosedGroup]
+ );
+ mockSection(
+ 'issue.progress:[assigned,identified] is:unresolved assigned_or_suggested:[me,my_teams]',
[assignedGroup]
);
mockSection(
- 'issue.progress:fix_applied is:unresolved assigned_or_suggested:me',
+ 'issue.progress:fix_applied is:unresolved assigned_or_suggested:[me,my_teams]',
[]
);
mockIssuePreview();
diff --git a/static/app/views/issueList/pages/inbox/index.tsx b/static/app/views/issueList/pages/inbox/index.tsx
index f10a5ed2ba8b..fd3ce341c618 100644
--- a/static/app/views/issueList/pages/inbox/index.tsx
+++ b/static/app/views/issueList/pages/inbox/index.tsx
@@ -81,17 +81,15 @@ type RestoreSelectedIssueScroll = (issueId: string, element: HTMLDivElement) =>
interface AssignmentCounts {
all: number;
- me: number;
my_teams: number;
}
interface AlternateInbox {
- filter: Exclude;
+ filter: 'all';
label: string;
}
const ASSIGNMENT_QUERY_SUFFIXES: Record = {
- me: ' assigned_or_suggested:me',
my_teams: ' assigned_or_suggested:[me,my_teams]',
all: '',
};
@@ -212,10 +210,9 @@ function useSelectFirstLoadedIssue({
};
}
-// Fetch counts for the assignment filter tabs (my/my teams/all)
+// Fetch counts for the assignment filter tabs (my teams/all)
function useAssignmentCounts(): AssignmentCounts | null {
const organization = useOrganization();
- const meQuery = `${ASSIGNMENT_COUNT_QUERY}${ASSIGNMENT_QUERY_SUFFIXES.me}${INBOX_AUTOFIX_CATEGORY_FILTER}`;
const myTeamsQuery = `${ASSIGNMENT_COUNT_QUERY}${ASSIGNMENT_QUERY_SUFFIXES.my_teams}${INBOX_AUTOFIX_CATEGORY_FILTER}`;
const allQuery = `${ALL_ASSIGNMENT_COUNT_QUERY}${INBOX_AUTOFIX_CATEGORY_FILTER}`;
@@ -224,7 +221,7 @@ function useAssignmentCounts(): AssignmentCounts | null {
'/organizations/$organizationIdOrSlug/issues-count/',
{
path: {organizationIdOrSlug: organization.slug},
- query: {query: [meQuery, myTeamsQuery, allQuery]},
+ query: {query: [myTeamsQuery, allQuery]},
staleTime: 180_000,
}
),
@@ -235,7 +232,6 @@ function useAssignmentCounts(): AssignmentCounts | null {
}
return {
- me: data[meQuery] ?? 0,
my_teams: data[myTeamsQuery] ?? 0,
all: data[allQuery] ?? 0,
};
@@ -245,11 +241,7 @@ function getAlternateInbox(
assignmentFilter: AssignmentFilter,
assignmentCounts: AssignmentCounts | null
): AlternateInbox | null {
- if (assignmentFilter === 'me' && assignmentCounts?.my_teams) {
- return {filter: 'my_teams', label: t('View team inbox')};
- }
-
- if (assignmentFilter !== 'all' && assignmentCounts?.all) {
+ if (assignmentFilter === 'my_teams' && assignmentCounts?.all) {
return {filter: 'all', label: t('View all inbox')};
}
@@ -269,7 +261,6 @@ function AssignmentTabs({
assignmentCounts
? {
assignment_filter: assignmentFilter,
- count_me: assignmentCounts.me,
count_my_teams: assignmentCounts.my_teams,
count_all: assignmentCounts.all,
}
@@ -285,15 +276,9 @@ function AssignmentTabs({
value={assignmentFilter}
onChange={onChange}
>
-
+
{t('Me')}
-
-
-
-
-
- {t('My Teams')}
diff --git a/static/app/views/issueList/pages/inbox/useInboxIssueCount.tsx b/static/app/views/issueList/pages/inbox/useInboxIssueCount.tsx
index 6bd041e3fc77..22a2f252d3c3 100644
--- a/static/app/views/issueList/pages/inbox/useInboxIssueCount.tsx
+++ b/static/app/views/issueList/pages/inbox/useInboxIssueCount.tsx
@@ -4,8 +4,8 @@ import {apiOptions} from 'sentry/utils/api/apiOptions';
import {useOrganization} from 'sentry/utils/useOrganization';
import {INBOX_AUTOFIX_CATEGORY_FILTER} from 'sentry/views/issueList/pages/inbox/utils';
-// Count all issues assigned or suggested to me across the displayed progress sections
-const INBOX_COUNT_QUERY = `is:unresolved issue.progress:[fix_proposed,diagnosed,assigned,identified] assigned_or_suggested:me${INBOX_AUTOFIX_CATEGORY_FILTER}`;
+// Count all issues assigned or suggested to me or one of my teams across the displayed progress sections
+const INBOX_COUNT_QUERY = `is:unresolved issue.progress:[fix_proposed,diagnosed,assigned,identified] assigned_or_suggested:[me,my_teams]${INBOX_AUTOFIX_CATEGORY_FILTER}`;
export function useInboxIssueCount() {
const organization = useOrganization();
diff --git a/static/app/views/issueList/pages/useAssignmentFilter.tsx b/static/app/views/issueList/pages/useAssignmentFilter.tsx
index 16dffdce7cc7..334ed7cd4078 100644
--- a/static/app/views/issueList/pages/useAssignmentFilter.tsx
+++ b/static/app/views/issueList/pages/useAssignmentFilter.tsx
@@ -1,7 +1,7 @@
import {parseAsStringLiteral, useQueryState} from 'nuqs';
const ASSIGNMENT_QUERY_PARAM = 'assignment';
-const ASSIGNMENT_FILTERS = ['me', 'my_teams', 'all'] as const;
+const ASSIGNMENT_FILTERS = ['my_teams', 'all'] as const;
export type AssignmentFilter = (typeof ASSIGNMENT_FILTERS)[number];
@@ -9,7 +9,7 @@ export function useAssignmentFilter() {
return useQueryState(
ASSIGNMENT_QUERY_PARAM,
parseAsStringLiteral(ASSIGNMENT_FILTERS)
- .withDefault('me')
+ .withDefault('my_teams')
.withOptions({history: 'replace'})
);
}
diff --git a/static/app/views/navigation/secondary/sections/issues/issuesSecondaryNavigation.spec.tsx b/static/app/views/navigation/secondary/sections/issues/issuesSecondaryNavigation.spec.tsx
index 2bc7d4954f1c..737afd76efd6 100644
--- a/static/app/views/navigation/secondary/sections/issues/issuesSecondaryNavigation.spec.tsx
+++ b/static/app/views/navigation/secondary/sections/issues/issuesSecondaryNavigation.spec.tsx
@@ -10,7 +10,7 @@ import {useLLMContext} from 'sentry/views/seerExplorer/contexts/llmContext';
import type {LLMContextNodeSnapshot} from 'sentry/views/seerExplorer/contexts/llmContextTypes';
describe('IssuesSecondaryNavigation', () => {
- const inboxCountQuery = `is:unresolved issue.progress:[fix_proposed,diagnosed,assigned,identified] assigned_or_suggested:me${INBOX_AUTOFIX_CATEGORY_FILTER}`;
+ const inboxCountQuery = `is:unresolved issue.progress:[fix_proposed,diagnosed,assigned,identified] assigned_or_suggested:[me,my_teams]${INBOX_AUTOFIX_CATEGORY_FILTER}`;
const organization = OrganizationFixture({
features: ['issue-inbox', 'gen-ai-features', 'seat-based-seer-enabled'],
});
@@ -38,7 +38,7 @@ describe('IssuesSecondaryNavigation', () => {
);
}
- it('shows the inbox count for Seer progress sections assigned or suggested to the user', async () => {
+ it('shows the inbox count for Seer progress sections assigned or suggested to the user or their teams', async () => {
const request = mockInboxCount({
[inboxCountQuery]: 12,
});
@@ -57,7 +57,7 @@ describe('IssuesSecondaryNavigation', () => {
expect(query).toContain('assigned');
expect(query).toContain('identified');
expect(query).toContain('is:unresolved');
- expect(query).toContain('assigned_or_suggested:me');
+ expect(query).toContain('assigned_or_suggested:[me,my_teams]');
});
it('caps the count at 99+ since the endpoint stops counting at 100', async () => {