Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(dev): do not sync the cloud announcement flag #17911

Merged
merged 1 commit into from
Oct 11, 2023

Conversation

thmsobrmlr
Copy link
Contributor

Problem

Running DEBUG=1 python3 manage.py sync_feature_flags adds the in-app banner with the latest message.

Changes

This PR excludes the cloud-announcement flag from the sync comman.

How did you test this code?

Deleted the flag and ran the command

@@ -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":
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

but, but, what if I want to test the banner Thomas?

@thmsobrmlr thmsobrmlr enabled auto-merge (squash) October 11, 2023 10:02
@thmsobrmlr thmsobrmlr merged commit 6f4f440 into master Oct 11, 2023
@thmsobrmlr thmsobrmlr deleted the cloud-announcement-sync branch October 11, 2023 10:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants