Skip to content

Split::ExperimentCatalog.all returning nil values in array #250

@danielschwartz

Description

@danielschwartz

We are seeing a weird behavior where when calling Split::ExperimentCatalog.all the array returned includes a nil value. Here is a sample array that was returned to us this morning:

[nil, #<Split::Experiment:0x007f5f53ac44a0 @name="20140422_homepage_testimonials", @alternatives=[#<Split::Alternative:0x007f5f53ad7410 @experiment_name="20140422_homepage_testimonials", @name="no", @weight=1>, #<Split::Alternative:0x007f5f53ad73e8 @experiment_name="20140422_homepage_testimonials", @name="yes", @weight=1>], @goals=[], @resettable=false, @algorithm=Split::Algorithms::WeightedSample>, #<Split::Experiment:0x007f5f53ad5318 @name="engraving_option", @alternatives=[#<Split::Alternative:0x007f5f53ae8a58 @experiment_name="engraving_option", @name="separate", @weight=1>, #<Split::Alternative:0x007f5f53ae8a30 @experiment_name="engraving_option", @name="inline", @weight=1>], @goals=[], @resettable=false, @algorithm=Split::Algorithms::WeightedSample>]

This breaks a bunch of expectations we have when running code like this Split::ExperimentCatalog.all.select {|e| !e.has_winner?}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions