Skip to content

Commit eeb1079

Browse files
committed
fix(webapp): lock runTableV2 on the global flags page
runTableV2 is resolved per organization only, so a global toggle on the admin flags page did nothing. Mark it read-only there to remove the misleading control; per-org control stays on the org dialog.
1 parent 388dd66 commit eeb1079

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

apps/webapp/app/v3/featureFlags.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,11 @@ export type FeatureFlagKey = keyof typeof FeatureFlagCatalog;
5959
export const GLOBAL_LOCKED_FLAGS: FeatureFlagKey[] = [
6060
FEATURE_FLAG.defaultWorkerInstanceGroupId,
6161
FEATURE_FLAG.taskEventRepository,
62+
// runTableV2 is resolved per-org only (`shouldUseV2RunTable` reads
63+
// `Organization.featureFlags`, never the global FeatureFlag table), so a
64+
// global toggle would be a silent no-op. Lock it on the global page to
65+
// avoid that footgun; per-org control stays on the org dialog.
66+
FEATURE_FLAG.runTableV2,
6267
];
6368

6469
// Flags that are read-only on the org-level dialog.

0 commit comments

Comments
 (0)