From eb0a3908f93cf8363ff99458de24a7cd26d0975f Mon Sep 17 00:00:00 2001 From: Snigdha Sharma Date: Tue, 7 Jan 2025 14:10:58 -0800 Subject: [PATCH] feat(metric-issues): Add open period to BaseGroup response (#83005) Adding the `openPeriods` field from https://github.com/getsentry/sentry/pull/82978 to the response in the frontend. --- static/app/types/group.tsx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/static/app/types/group.tsx b/static/app/types/group.tsx index b63a20f70b5651..7790227d10bd3f 100644 --- a/static/app/types/group.tsx +++ b/static/app/types/group.tsx @@ -824,11 +824,19 @@ export interface BaseGroup { integrationIssues?: ExternalIssue[]; latestEvent?: Event; latestEventHasAttachments?: boolean; + openPeriods?: GroupOpenPeriod[] | null; owners?: SuggestedOwner[] | null; sentryAppIssues?: PlatformExternalIssue[]; substatus?: GroupSubstatus | null; } +export interface GroupOpenPeriod { + duration: string; + end: string; + isOpen: boolean; + start: string; +} + export interface GroupReprocessing extends BaseGroup, GroupStats { status: GroupStatus.REPROCESSING; statusDetails: ReprocessingStatusDetails;