Skip to content

Commit 57f7359

Browse files
authored
fix(feedback): Exclude AI categorization tags from issues and feedback search (#101540)
fixes REPLAY-775 Right now we don't exclude any of the `ai_categorization.label.<0-15>` tags for user feedback AI categorization in either the issues search or the user feedback search. And we don't exclude `ai_categorization.labels` in issue search. <img width="832" height="440" alt="Screenshot 2025-10-15 at 11 41 45 AM" src="https://github.com/user-attachments/assets/b4a567a4-8f2b-43da-aa66-5592d958c773" /> <img width="872" height="382" alt="image" src="https://github.com/user-attachments/assets/ce70c578-3e87-4f00-82f1-8dbc3591713c" /> This is not ideal because you get inconsistent results depending on which label you select when searching for a category: <img width="876" height="655" alt="image" src="https://github.com/user-attachments/assets/0759802b-2283-43df-8dd2-119a9008a144" /> <img width="872" height="649" alt="image" src="https://github.com/user-attachments/assets/925fd860-af6a-42e1-a603-08fb36a0dac5" /> Let's exclude all the `ai_categorization.label.<0-15>` tags. We'll keep the `ai_categorization.labels` tag in user feedback search so users can still effectively search by category, but remove it from issues search since it'll never return any results. Result: <img width="848" height="431" alt="image" src="https://github.com/user-attachments/assets/94c85ad2-9896-4f3a-ad75-85ed510422ed" /> <img width="855" height="388" alt="image" src="https://github.com/user-attachments/assets/270e4d07-2ece-42fb-9600-5c3317d2b57e" />
1 parent 3ff36a4 commit 57f7359

File tree

3 files changed

+56
-2
lines changed

3 files changed

+56
-2
lines changed

static/app/components/feedback/feedbackSearch.tsx

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,22 @@ const EXCLUDED_TAGS: string[] = [
3535
'os',
3636
'user',
3737
FieldKey.PLATFORM,
38+
'ai_categorization.label.0',
39+
'ai_categorization.label.1',
40+
'ai_categorization.label.2',
41+
'ai_categorization.label.3',
42+
'ai_categorization.label.4',
43+
'ai_categorization.label.5',
44+
'ai_categorization.label.6',
45+
'ai_categorization.label.7',
46+
'ai_categorization.label.8',
47+
'ai_categorization.label.9',
48+
'ai_categorization.label.10',
49+
'ai_categorization.label.11',
50+
'ai_categorization.label.12',
51+
'ai_categorization.label.13',
52+
'ai_categorization.label.14',
53+
'ai_categorization.label.15',
3854
];
3955

4056
const NON_TAG_FIELDS: string[] = [

static/app/views/issueList/searchBar.tsx

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,26 @@ function IssueListSearchBar({
5959

6060
export default IssueListSearchBar;
6161

62-
const EXCLUDED_TAGS = ['environment'];
62+
const EXCLUDED_TAGS = [
63+
'environment',
64+
'ai_categorization.label.0',
65+
'ai_categorization.label.1',
66+
'ai_categorization.label.2',
67+
'ai_categorization.label.3',
68+
'ai_categorization.label.4',
69+
'ai_categorization.label.5',
70+
'ai_categorization.label.6',
71+
'ai_categorization.label.7',
72+
'ai_categorization.label.8',
73+
'ai_categorization.label.9',
74+
'ai_categorization.label.10',
75+
'ai_categorization.label.11',
76+
'ai_categorization.label.12',
77+
'ai_categorization.label.13',
78+
'ai_categorization.label.14',
79+
'ai_categorization.label.15',
80+
'ai_categorization.labels',
81+
];
6382

6483
export function useIssueListSearchBarDataProvider(
6584
props: SearchBarDataProviderProps

static/app/views/issueList/utils/useFetchIssueTags.tsx

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,26 @@ const PREDEFINED_FIELDS = {
5656
};
5757

5858
// "environment" is excluded because it should be handled by the environment page filter
59-
const EXCLUDED_TAGS = ['environment'];
59+
const EXCLUDED_TAGS = [
60+
'environment',
61+
'ai_categorization.label.0',
62+
'ai_categorization.label.1',
63+
'ai_categorization.label.2',
64+
'ai_categorization.label.3',
65+
'ai_categorization.label.4',
66+
'ai_categorization.label.5',
67+
'ai_categorization.label.6',
68+
'ai_categorization.label.7',
69+
'ai_categorization.label.8',
70+
'ai_categorization.label.9',
71+
'ai_categorization.label.10',
72+
'ai_categorization.label.11',
73+
'ai_categorization.label.12',
74+
'ai_categorization.label.13',
75+
'ai_categorization.label.14',
76+
'ai_categorization.label.15',
77+
'ai_categorization.labels',
78+
];
6079

6180
const SEARCHABLE_ISSUE_CATEGORIES = VALID_ISSUE_CATEGORIES_V2.filter(
6281
category => category !== IssueCategory.FEEDBACK

0 commit comments

Comments
 (0)