Browse Source

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.
Snigdha Sharma 2 months ago
parent
commit
eb0a3908f9
1 changed files with 8 additions and 0 deletions
  1. 8 0
      static/app/types/group.tsx

+ 8 - 0
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;