From 462eaffd83f0f9bf4e088ca0b7fa8822fb1629c4 Mon Sep 17 00:00:00 2001 From: ted kaemming <65315+tkaemming@users.noreply.github.com> Date: Mon, 15 Apr 2024 19:29:49 -0700 Subject: [PATCH] fix: Correct behavior of persons-on-events rollout flag (#21556) --- posthog/models/team/team.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/posthog/models/team/team.py b/posthog/models/team/team.py index bb219fd11f708..c199c6bcc1d56 100644 --- a/posthog/models/team/team.py +++ b/posthog/models/team/team.py @@ -327,8 +327,8 @@ def _person_on_events_person_id_no_override_properties_on_events(self) -> bool: return posthoganalytics.feature_enabled( "persons-on-events-person-id-no-override-properties-on-events", str(self.uuid), - groups={"team": str(self.id)}, - group_properties={"team": {"id": str(self.id), "created_at": self.created_at, "uuid": self.uuid}}, + groups={"project": str(self.id)}, + group_properties={"project": {"id": str(self.id), "created_at": self.created_at, "uuid": self.uuid}}, only_evaluate_locally=True, send_feature_flag_events=False, )