File tree Expand file tree Collapse file tree 3 files changed +9
-2
lines changed
features/ObjectStorage/BucketDetail Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -81,6 +81,10 @@ const options: { flag: keyof Flags; label: string }[] = [
8181 flag : 'blockStorageContextualMetrics' ,
8282 label : 'Block Storage Contextual Metrics' ,
8383 } ,
84+ {
85+ flag : 'objectStorageContextualMetrics' ,
86+ label : 'Object Storage Contextual Metrics' ,
87+ } ,
8488 { flag : 'objSummaryPage' , label : 'OBJ Summary Page' } ,
8589 { flag : 'vpcIpv6' , label : 'VPC IPv6' } ,
8690] ;
Original file line number Diff line number Diff line change @@ -242,6 +242,7 @@ export interface Flags {
242242 networkLoadBalancer : boolean ;
243243 nodebalancerIpv6 : boolean ;
244244 nodebalancerVpc : boolean ;
245+ objectStorageContextualMetrics : boolean ;
245246 objectStorageGen2 : BaseFeatureFlag ;
246247 objMultiCluster : boolean ;
247248 objSummaryPage : boolean ;
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ export const BucketDetailLanding = React.memo(() => {
4545 from : BUCKET_DETAILS_URL ,
4646 } ) ;
4747
48- const { aclpServices } = useFlags ( ) ;
48+ const { aclpServices, objectStorageContextualMetrics } = useFlags ( ) ;
4949 const { isObjectStorageGen2Enabled } = useIsObjectStorageGen2Enabled ( ) ;
5050
5151 const {
@@ -78,7 +78,9 @@ export const BucketDetailLanding = React.memo(() => {
7878 {
7979 title : 'Metrics' ,
8080 to : `${ BUCKET_DETAILS_URL } /metrics` ,
81- hide : ! aclpServices ?. objectstorage ?. metrics ?. enabled ,
81+ hide :
82+ ! aclpServices ?. objectstorage ?. metrics ?. enabled ||
83+ ! objectStorageContextualMetrics ,
8284 chip : aclpServices ?. objectstorage ?. metrics ?. beta ? < BetaChip /> : null ,
8385 } ,
8486 ] ) ;
You can’t perform that action at this time.
0 commit comments