Remove the IS_CREATE_RECORDS_PERMISSION_ENABLED feature flag

Merged
CH
10d ago
+17-198

Why

The create permission has had its own columns since 2.57, backfilled from update, and every write path still defaults create to update when create is not given. The flag only chose whether a create check reads canCreate* or falls back to canUpdate*, and both give the same answer on backfilled data. This removes IS_CREATE_RECORDS_PERMISSION_ENABLED and always checks create on its own. Second of a series removing the messaging and permissions flags, one PR per flag (after #31458).

What changes

  • getEnforcedOperationType is deleted. Its five callers (all-records, RLS, limiting roles, disabled actions) pass the requested operation type straight through.
  • followUpdateWhenCreatePermissionIsDisabled and its spec are deleted. SettingPermissionsService returns the computed records permissions as they are, and no longer reads featureFlagsMap.
  • featureFlagsMap is dropped from the metadataMaps picks of findRlsRulesAccessingOperation and findRlsRuleInaccessibleFields, which no longer need it.
  • The key is removed from FeatureFlagKey, the dev seeder, the admin panel list and the generated schemas (front and client SDK). Leftover featureFlag rows are ignored, same as previous flag removals.

What this turns on for every workspace

  • A role, object permission or RLS rule where create was set apart from update through the API now applies that create value. Through the settings UI the two cannot diverge.
  • canCreateObjectRecords as a disabled object action is enforced on its own. The 2.57 backfill added it wherever update was disabled.
  • The front receives the real create permission instead of a copy of update.

Not checked against prod: how many rows have create different from update today.

Screenshots

No UI change.

Validation

Server typecheck, lint:diff-with-main on server and front, and the 57 permissions unit suites. No upgrade command is touched.