You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ab_test doesn't yield metadata for excluded visitors #618
Describe the bug
For an experiment having metadata and used with a, ab_test block in a view, if the user is ignored, the block won't yield the metadata but an empty Hash instead. So in this case, the example in the readme does not work (no text will be displayed in the <small> tag).
To Reproduce
Define a experiment with metadata
Configure split to ignore some users
Use ab_test helper in a view with a block, using the metadata (like in the readme)
Try as an ignored user
Expected behavior
Metadata are yield in the block instead of an empty Hash.
Note
This happens because metadata are retrieved from a Trial instance and not directly from the configuration.
The same problem occurs when redis is failing.
Activity
andrehjr commentedon May 21, 2020
Should be fixed now 🚀