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

(feature) Be notified when a flag change #16

Closed
thomaspoignant opened this issue Dec 17, 2020 · 0 comments · Fixed by #65
Closed

(feature) Be notified when a flag change #16

thomaspoignant opened this issue Dec 17, 2020 · 0 comments · Fixed by #65
Labels
enhancement New feature or request

Comments

@thomaspoignant
Copy link
Owner

thomaspoignant commented Dec 17, 2020

Requirements

Be notified when a flag change.
Add a system that calls a webhook when a flag is changing.

  • The webhook should be configured in the ffclient.Config{} type.
  • We can have multiple webhook.
  • The webhook is triggered when:
    • Something has changed in the flag (anything).
    • A flag is added to the file.
    • A flag is removed.
  • We should not trigger the webhook when we 1st load the file.
  • The payload should contain:
    • The name of the current instance using the go-feature-flag.
    • A list of the changes.

A webhook call will look like this:

POST 
{
   "meta": {
     "hostname":"",
     "IP":"0.0.0.0"
   },
   "flags": {
     "deleted": {}, //only flag names
     "added":{}, // full flag object
     "changed":{} //  flag name + differences
   }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant