Remove the IS_ACCESS_GROUPS_ENABLED feature flag
Why
Access groups are being enabled on every workspace ahead of this PR, so IS_ACCESS_GROUPS_ENABLED no longer needs to gate anything. This removes the flag and keeps the flag-on behaviour: record listings restricted by a row-level rule always read the stored access groups. Fourth of a series removing flags one PR at a time (after #31458, #31474 and #31485).
Prerequisite
Do not merge before the flag is on in every workspace and its access group sync has finished. Nothing in this PR computes access groups for a workspace that never had the flag: such a workspace would filter restricted members against _accessGroupIds columns that were never filled.
What changes
resolveRecordsAccessSQLConditionStrategyreturnsaccessGroupswhenever the main role is restricted by a row-level rule. ThedegradedReadstrategy is removed from the type.AccessGroupSyncSchedulerServicelosesisEnabled, andscheduleSyncIfEnabledbecomesscheduleSync. The listener no longer checks the flag before refreshing members or scheduling a sync, and no longer lists the flag among those that trigger a sync.RecordAccessGroupWriteServiceno longer takesfeatureFlagsMap: the write transaction, records-before-write, related-records-before-delete and recompute-after-write paths always run.- Related record paths are always resolved in
buildRelatedRecordPathJoinSQLConditionandfindRelatedRecordPathsExtendingAccess, still subject toIS_RELATED_RECORD_PATHS_ENABLED. isRlsRelationHopEnabledonly readsIS_ROW_LEVEL_PERMISSION_RELATION_HOP_ENABLED.PrivateRecordSystemWriteServicealways recomputes records following related record paths, andrecompute-record-access-group-idsno longer skips workspaces without the flag.isAccessGroupsEnabledis deleted. The key is removed fromFeatureFlagKey, the dev seeder, the admin panel list and the generated schemas (front and client SDK).- The 2.61
type-access-groupscommand calls the renamedscheduleSync. That is its only change, and it needs theci:allow-previous-version-upgrade-mutationlabel.
Not removed: the rule-to-SQL rendering in buildRlsAccessSQLCondition. Write checks still go through it, since they do not pass access group ids.
Tests
- Unit specs drop the flag parameter and the three flag-off cases.
- Integration specs stop toggling the flag.
access-group-syncschedules the sync directly where it relied on the flag-enabled event, andquery-many-records-through-access-groupsdrops the flag-off half of one case. - Every other integration spec that sets a row-level rule now reads through access groups instead of the rule. Those were not run locally.
Screenshots
No UI change.
Validation
Server typecheck, lint:diff-with-main on server and front, and the permissions and twenty-orm unit suites (99 suites, 912 tests).