Skip to content

Commit

Permalink
fix(dev): do not sync the cloud announcement flag (#17911)
Browse files Browse the repository at this point in the history
  • Loading branch information
thmsobrmlr authored and daibhin committed Oct 23, 2023
1 parent 7483622 commit de45d21
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion posthog/management/commands/sync_feature_flags.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,10 @@ def handle(self, *args, **options):
deleted_flags = FeatureFlag.objects.filter(team=team, deleted=True).values_list("key", flat=True)
for flag in flags.keys():
flag_type = flags[flag]
if flag in deleted_flags:
# do not sync the cloud announcement flag for in-app banners
if flag == "cloud-announcement":
continue
elif flag in deleted_flags:
ff = FeatureFlag.objects.filter(team=team, key=flag)[0]
ff.deleted = False
ff.save()
Expand Down

0 comments on commit de45d21

Please sign in to comment.