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

Webhooks #6

Closed
jdorn opened this issue May 20, 2021 · 0 comments · Fixed by #21
Closed

Webhooks #6

jdorn opened this issue May 20, 2021 · 0 comments · Fixed by #21

Comments

@jdorn
Copy link
Member

jdorn commented May 20, 2021

Client libraries can accept a cached list of experiment overrides. Currently, the only way to keep that up to date is to periodically pull from the Growth Book API. There should be an option to push this data instead with a webhook.

Use https://github.com/agenda/agenda as a simple MongoDB job queue

  • Add a new webhook property to organizations that stores an endpoint and signing secret
  • UI in settings to add a webhook
  • Define a webhook job with an organizationId property
  • Make the job unique so only a single one per organization exists at a time
  • Create the job when an experiment is created or updated and the organization has a webhook defined
  • If a job fails, retry it a few times with exponential back-off
  • After 3 failures, email the organization owner and stop retrying
@jdorn jdorn added this to To do in Experiment Usability May 20, 2021
jdorn added a commit that referenced this issue Jun 30, 2021
@jdorn jdorn linked a pull request Jun 30, 2021 that will close this issue
2 tasks
@jdorn jdorn closed this as completed in #21 Jul 1, 2021
jdorn added a commit that referenced this issue Jul 1, 2021
@jdorn jdorn moved this from To do to Done in Experiment Usability Jul 1, 2021
itsgrimetime pushed a commit to itsgrimetime/growthbook that referenced this issue Jun 22, 2023
…put_metric_api

[experimentation] put metric in openapi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging a pull request may close this issue.

1 participant