Skip to content

Commit 6c8d207

Browse files
new: STORIF-232 - BlockStorageContextualMetrics feature flag added.
1 parent 0dc16c7 commit 6c8d207

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

packages/manager/src/dev-tools/FeatureFlagTool.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,10 @@ const options: { flag: keyof Flags; label: string }[] = [
7777
label: 'VM Host Maintenance Policy',
7878
},
7979
{ flag: 'volumeSummaryPage', label: 'Volume Summary Page' },
80+
{
81+
flag: 'blockStorageContextualMetrics',
82+
label: 'Block Storage Contextual Metrics',
83+
},
8084
{ flag: 'objSummaryPage', label: 'OBJ Summary Page' },
8185
{ flag: 'vpcIpv6', label: 'VPC IPv6' },
8286
];

packages/manager/src/featureFlags.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,7 @@ export interface Flags {
203203
apl: boolean;
204204
aplGeneralAvailability: boolean;
205205
aplLkeE: boolean;
206+
blockStorageContextualMetrics: boolean;
206207
blockStorageEncryption: boolean;
207208
blockStorageVolumeLimit: boolean;
208209
cloudManagerDesignUpdatesBanner: DesignUpdatesBannerFlag;

packages/manager/src/features/Volumes/VolumeDetails/VolumeDetails.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ import { VolumeDetailsHeader } from './VolumeDetailsHeader';
1616
export const VolumeDetails = () => {
1717
const navigate = useNavigate();
1818

19-
const { volumeSummaryPage, aclpServices } = useFlags();
19+
const { volumeSummaryPage, aclpServices, blockStorageContextualMetrics } =
20+
useFlags();
2021
const { volumeId } = useParams({ from: '/volumes/$volumeId' });
2122
const { data: volume, isLoading, error } = useVolumeQuery(volumeId);
2223
const { tabs, handleTabChange, tabIndex } = useTabs([
@@ -27,7 +28,9 @@ export const VolumeDetails = () => {
2728
{
2829
to: '/volumes/$volumeId/metrics',
2930
title: 'Metrics',
30-
hide: !aclpServices?.blockstorage?.metrics?.enabled,
31+
hide:
32+
!aclpServices?.blockstorage?.metrics?.enabled ||
33+
!blockStorageContextualMetrics,
3134
chip: aclpServices?.blockstorage?.metrics?.beta ? <BetaChip /> : null,
3235
},
3336
]);

0 commit comments

Comments
 (0)