Use correct model for ActivityEvent FF check
What does this MR do and why?
In !155559 (merged) we added a feature flag to control a new event store activity event.
Initially we used Namespace
as the resource/model as the actor, but this has led to an undesired outcome whereby we cannot enable the FF for specific groups, e.g. after enabling the FF for a group:
[ gstg ] production> Feature.enabled?(:track_member_activity, ::Namespace.actor_from_id(group_id))
=> false
[ gstg ] production> Feature.enabled?(:track_member_activity, ::Group.actor_from_id(group_id))
=> true
This MR changes the model being used to check for FF enablement from Namespace to Group
Refs #461338 (closed)
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
Before | After |
---|---|
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.