Skip to content

Commit 35632fb

Browse files
haackeddmarticusgreptile-apps[bot]
authored
feat(flags): Support /decide?v=4 and include version info flag called events (#1837)
* Support `/decide?v=4` This also includes the feature flag `version` and the evaluation `reason` in the `$feature_flag_called` event. This is done in a backwards compatible manner so if it's pointing at `/decide?v=3`, it will still work fine, it'll just lack the version info. This depends on: PostHog/posthog#29751 * Add support for overrides * And include original values in the event * Update src/__tests__/featureflags.test.ts Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com> * Fix tests * Fix docs for overrideFeatureFlags. * Don't send flag details with every capture It's a lot of data to send with every single capture. * Include the entire reason in the event * Include version if it's not undefined * Use the description in the event properties * Make sure `originalDetail` is not null. Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com> * Make library still request `/decide?v=3` Since it's back compatible, let's keep requesting v3 and make sure it works. --------- Co-authored-by: Dylan Martin <[email protected]> Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
1 parent 3c118e7 commit 35632fb

File tree

4 files changed

+839
-28
lines changed

4 files changed

+839
-28
lines changed

0 commit comments

Comments
 (0)