Skip to content

Commit 91e0f34

Browse files
committed
Remove unused thresholding
1 parent 29bdd24 commit 91e0f34

File tree

1 file changed

+8
-20
lines changed

1 file changed

+8
-20
lines changed

static/app/components/group/groupSummary.tsx

Lines changed: 8 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@ import {type ApiQueryKey, useApiQuery, useQueryClient} from 'sentry/utils/queryC
1616
import useOrganization from 'sentry/utils/useOrganization';
1717
import {useAiConfig} from 'sentry/views/issueDetails/streamline/hooks/useAiConfig';
1818

19-
const POSSIBLE_CAUSE_CONFIDENCE_THRESHOLD = 0.0;
20-
const POSSIBLE_CAUSE_NOVELTY_THRESHOLD = 0.0;
21-
2219
export interface GroupSummaryData {
2320
groupId: string;
2421
headline: string;
@@ -247,12 +244,6 @@ function GroupSummaryFull({
247244
setForceEvent: (v: boolean) => void;
248245
}) {
249246
const config = getConfigForIssueType(group, project);
250-
const shouldShowPossibleCause =
251-
!data?.scores ||
252-
(data.scores?.possibleCauseConfidence &&
253-
data.scores.possibleCauseConfidence >= POSSIBLE_CAUSE_CONFIDENCE_THRESHOLD &&
254-
data.scores.possibleCauseNovelty &&
255-
data.scores.possibleCauseNovelty >= POSSIBLE_CAUSE_NOVELTY_THRESHOLD);
256247
const shouldShowResources = config.resources && !preview;
257248

258249
const insightCards = [
@@ -270,17 +261,14 @@ function GroupSummaryFull({
270261
icon: <IconSpan size="sm" />,
271262
showWhenLoading: false,
272263
},
273-
...(shouldShowPossibleCause
274-
? [
275-
{
276-
id: 'possible_cause',
277-
title: t('Initial Guess'),
278-
insight: data?.possibleCause,
279-
icon: <IconFocus size="sm" />,
280-
showWhenLoading: true,
281-
},
282-
]
283-
: []),
264+
{
265+
id: 'possible_cause',
266+
title: t('Initial Guess'),
267+
insight: data?.possibleCause,
268+
icon: <IconFocus size="sm" />,
269+
showWhenLoading: true,
270+
},
271+
284272
...(shouldShowResources
285273
? [
286274
{

0 commit comments

Comments
 (0)