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

Deleted feature throws FLAG_UPDATED event #5020

Open
1 of 4 tasks
omerAmrani opened this issue Jan 20, 2025 · 0 comments
Open
1 of 4 tasks

Deleted feature throws FLAG_UPDATED event #5020

omerAmrani opened this issue Jan 20, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@omerAmrani
Copy link

How are you running Flagsmith

  • Self Hosted with Docker
  • Self Hosted with Kubernetes
  • SaaS at flagsmith.com
  • Some other way (add details in description below)

Describe the bug

I'm using the webhook for create, update and delete features,
I noticed that after the delete event which has event_type: "FLAG_DELETED",
i get after another event of event_type: "FLAG_UPDATED" of the same event with the same previous_state and new_state.
I should not get the updated event

Steps To Reproduce

  1. In Environment setting page, Create Feature Webhook and connect it local server.
  2. In Features page, create feature.
  3. click on the 3 dots , on the new feature, click Remove feature, approve the removal.
  4. a FLAG_DELETED event will be sent into the server, and immediately a FLAG_UPDATED will be sent as well, the FLAG_UPDATED will have the same previous and new state data.

Expected behavior

Only the FLAG_DELETED event should be sent.

Screenshots

No response

@omerAmrani omerAmrani added the bug Something isn't working label Jan 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant