Skip to content

1.33.0 - Support Override-related APIs with UserID and CustomIDs

Compare
Choose a tag to compare
@statsig-kong statsig-kong released this 11 Dec 23:19
· 30 commits to main since this release
56978d8

New Features

  • We now support overrideGate, overrideLayer, overrideConfig, removeGateOverride, removeConfigOverride removeLayerOverride with a new parameter called forID so that end users can override / remove a override for a specific user.
    - forID can be userID field on the StatsigUser object or customIDs on the StatsigUser Object

Example

        StatsigUser sampleUser = new StatsigUser("userId123");
        Statsig.overrideGate("test_gate", false, sampleUser.getUserID());
        Map<String, String> customIDs = Map.of("customid", "1017");
        sampleUser.setCustomIDs(customIDs);
        Statsig.overrideGate("test_gate", false, "1017");

Included In This Release

  • dd147ff Weihao Ding
    • feat: support overrides with user/custom IDs (#405)

Full Changelog: 1.32.2...1.33.0