Remove the IS_CALENDAR_EVENT_SHARED_ACROSS_CHANNELS_ENABLED feature flag
Merged
CH
10d ago+11+11+01234567890123456789-41-41-01234567890123456789
Why
Sharing a calendar event across the channels that sync it (#28017) has been behind IS_CALENDAR_EVENT_SHARED_ACROSS_CHANNELS_ENABLED. This removes the flag and makes sharing the only behaviour. Third of a series removing flags one PR at a time (after #31458 and #31474).
What this turns on for every workspace
Unlike the two previous removals, this one launches the feature: the flag is on in the dev seed but is not a default flag, so workspaces that never had it set start sharing with this PR.
- A newly fetched event that another channel of the same provider already synced is linked to the existing
calendarEventinstead of being stored a second time. - Events that are already duplicated stay duplicated. Only events fetched for the first time on a channel are linked, and there is no dedupe command.
- Channel roles and the per-sharing-key advisory locks from #28017 now apply to every save.
Not checked against prod: how many workspaces have the flag today.
What changes
CalendarSaveEventsServicealways looks up link candidates and no longer injectsFeatureFlagService.resolveCalendarEventSharingloses itsisCalendarEventSharingEnabledargument and the early return.- The key is removed from
FeatureFlagKey, the dev seeder, the admin panel list and the generated schemas (front and client SDK). LeftoverfeatureFlagrows are ignored, same as previous flag removals. FeatureFlagModulestays in the calendar import module: three other services there still read flags.
Screenshots
No UI change.
Validation
Server typecheck, lint:diff-with-main on server and front, and the 30 calendar unit suites. No upgrade command is touched.