|
@@ -332,15 +332,24 @@ function SummaryContent({
|
|
|
handleOpenAllEventsClick: handleAllEventsViewClick,
|
|
|
};
|
|
|
|
|
|
+ const hasTransactionSummaryCleanupFlag = organization.features.includes(
|
|
|
+ 'performance-transaction-summary-cleanup'
|
|
|
+ );
|
|
|
+
|
|
|
return (
|
|
|
<Fragment>
|
|
|
<Layout.Main>
|
|
|
- <FilterActions>
|
|
|
- <Filter
|
|
|
- organization={organization}
|
|
|
- currentFilter={spanOperationBreakdownFilter}
|
|
|
- onChangeFilter={onChangeFilter}
|
|
|
- />
|
|
|
+ <FilterActions
|
|
|
+ hasTransactionSummaryCleanupFlag={hasTransactionSummaryCleanupFlag}
|
|
|
+ >
|
|
|
+ {!hasTransactionSummaryCleanupFlag && (
|
|
|
+ <Filter
|
|
|
+ organization={organization}
|
|
|
+ currentFilter={spanOperationBreakdownFilter}
|
|
|
+ onChangeFilter={onChangeFilter}
|
|
|
+ />
|
|
|
+ )}
|
|
|
+
|
|
|
<PageFilterBar condensed>
|
|
|
<EnvironmentPageFilter />
|
|
|
<DatePageFilter />
|
|
@@ -401,18 +410,21 @@ function SummaryContent({
|
|
|
/>
|
|
|
</PerformanceAtScaleContextProvider>
|
|
|
|
|
|
- <SuspectSpans
|
|
|
- location={location}
|
|
|
- organization={organization}
|
|
|
- eventView={eventView}
|
|
|
- totals={
|
|
|
- defined(totalValues?.['count()'])
|
|
|
- ? {'count()': totalValues!['count()']}
|
|
|
- : null
|
|
|
- }
|
|
|
- projectId={projectId}
|
|
|
- transactionName={transactionName}
|
|
|
- />
|
|
|
+ {!hasTransactionSummaryCleanupFlag && (
|
|
|
+ <SuspectSpans
|
|
|
+ location={location}
|
|
|
+ organization={organization}
|
|
|
+ eventView={eventView}
|
|
|
+ totals={
|
|
|
+ defined(totalValues?.['count()'])
|
|
|
+ ? {'count()': totalValues!['count()']}
|
|
|
+ : null
|
|
|
+ }
|
|
|
+ projectId={projectId}
|
|
|
+ transactionName={transactionName}
|
|
|
+ />
|
|
|
+ )}
|
|
|
+
|
|
|
<TagExplorer
|
|
|
eventView={eventView}
|
|
|
organization={organization}
|
|
@@ -556,7 +568,7 @@ function getTransactionsListSort(
|
|
|
return {selected: selectedSort, options: sortOptions};
|
|
|
}
|
|
|
|
|
|
-const FilterActions = styled('div')`
|
|
|
+const FilterActions = styled('div')<{hasTransactionSummaryCleanupFlag: boolean}>`
|
|
|
display: grid;
|
|
|
gap: ${space(2)};
|
|
|
margin-bottom: ${space(2)};
|
|
@@ -566,7 +578,10 @@ const FilterActions = styled('div')`
|
|
|
}
|
|
|
|
|
|
@media (min-width: ${p => p.theme.breakpoints.xlarge}) {
|
|
|
- grid-template-columns: auto auto 1fr;
|
|
|
+ ${p =>
|
|
|
+ p.hasTransactionSummaryCleanupFlag
|
|
|
+ ? `grid-template-columns: auto 1fr;`
|
|
|
+ : `grid-template-columns: auto auto 1fr;`}
|
|
|
}
|
|
|
`;
|
|
|
|