File tree 3 files changed +13
-1
lines changed
static/app/views/organizationStats
3 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -244,6 +244,9 @@ export class OrganizationStats extends Component<OrganizationStatsProps> {
244
244
if ( DATA_CATEGORY_INFO . transaction . plural === opt . value ) {
245
245
return ! organization . features . includes ( 'spans-usage-tracking' ) ;
246
246
}
247
+ if ( DATA_CATEGORY_INFO . profileDuration . plural === opt . value ) {
248
+ return organization . features . includes ( 'continuous-profiling' ) ;
249
+ }
247
250
return true ;
248
251
} ) ;
249
252
Original file line number Diff line number Diff line change @@ -101,6 +101,12 @@ export const CHART_OPTIONS_DATACATEGORY: CategoryOption[] = [
101
101
disabled : false ,
102
102
yAxisMinInterval : 100 ,
103
103
} ,
104
+ {
105
+ label : DATA_CATEGORY_INFO . profileDuration . titleName ,
106
+ value : DATA_CATEGORY_INFO . profileDuration . plural ,
107
+ disabled : false ,
108
+ yAxisMinInterval : 100 ,
109
+ } ,
104
110
] ;
105
111
106
112
export enum ChartDataTransform {
Original file line number Diff line number Diff line change @@ -445,7 +445,10 @@ class UsageStatsOrganization<
445
445
: group . by . category ;
446
446
447
447
// HACK: The backend enum are singular, but the frontend enums are plural
448
- if ( ! dataCategory . includes ( `${ category } ` ) ) {
448
+ const fullDataCategory = Object . values ( DATA_CATEGORY_INFO ) . find (
449
+ data => data . plural === dataCategory
450
+ ) ;
451
+ if ( fullDataCategory ?. apiName !== category ) {
449
452
return ;
450
453
}
451
454
You can’t perform that action at this time.
0 commit comments