Skip to content

Commit 9741f71

Browse files
committed
Column Customization: Add feature flag
1 parent 94bbf2c commit 9741f71

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

tensorboard/webapp/feature_flag/store/feature_flag_metadata.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,11 @@ export const FeatureFlagMetadataMap: FeatureFlagMetadataMapType<FeatureFlags> =
121121
queryParamOverride: 'enableProspectiveFob',
122122
parseValue: parseBoolean,
123123
},
124+
enableScalarColumnCustomization: {
125+
defaultValue: false,
126+
queryParamOverride: 'enableScalarColumnCustomization',
127+
parseValue: parseBoolean,
128+
},
124129
};
125130

126131
/**

tensorboard/webapp/feature_flag/store/feature_flag_selectors.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,3 +170,10 @@ export const getIsLinkedTimeProspectiveFobEnabled = createSelector(
170170
return flags.enabledProspectiveFob;
171171
}
172172
);
173+
174+
export const getIsScalarColumnCustomizationEnabled = createSelector(
175+
getFeatureFlags,
176+
(flags: FeatureFlags): boolean => {
177+
return flags.enableScalarColumnCustomization;
178+
}
179+
);

tensorboard/webapp/feature_flag/types.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,7 @@ export interface FeatureFlags {
5151
// In Linked Time, if enabled, show a prospective fob user to turn on the feature or select a step.
5252
// If this is removed update the `getCurrentFob` method of tensorboard/webapp/widgets/card_fob/card_fob_controller_component.ts
5353
enabledProspectiveFob: boolean;
54+
// Adds affordance for users to select and reorder the columns in the Scalar
55+
// Card Data Table
56+
enableScalarColumnCustomization: boolean;
5457
}

0 commit comments

Comments
 (0)