Skip to content

Weights missing when fetched from Redis #147

@crx

Description

@crx

When an app using Split initially loads, it loads the weights for alternatives from the configuration. These weights are correctly preserved in memory for use by the weighted algorithm.

However, if you're debugging and you call Split::Experiment.all, the experiment objects you get are loaded from Redis, and since Redis doesn't store the weights, all the weights are 1.

I can patch this but I'm wondering what you think the correct behavior is. Should the database store the weights so they can be fetched? Should they just be re-fetched from the configuration?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions