-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enrolments not working for anonymous users #153
Comments
I know this issue + #155 has been kicking around for a little bit, @ivanistheone are you still using this approach / a branch to handle anonymous A/B testing, or did you migrate to a different platform? We have a similar use case and are investigating our options: we'd prefer to stay with this repo but if it's broken with this use case we're a little reticent. (Thanks for your time!) |
Hi Justin, I haven't explored much since the time of this issue and PR. Thx to your prodding, I just tried to get it to work in a test branch, but no quick wins were had. I might be doing something wrong... I will give it another shot in a few weeks once I have the A version of my site ready. This is a very promising project and could use some maintainer love. |
This should just work, and does for us :( I guess its possible the session store isn't working for some reason, which one are you using (we use db_cached). Also dumb question, but is the experiment enabled in the admin panel, they default to disabled and need activating. |
I'm trying to test a simple page modification as follows:
but the
control
alternative is always shown to non-logged in users, as if the "enrolment" part of the process is not happening.It seems everything else is in place though, since the admin user (user_id=1) got enrolled:
also I see some count data was stored in redis:
Is there anything I need to do to enable non-logged in user (i.e. session-based) experiment enrolment?
Also a few words about the high-level design of the project would be very useful:
request
andresponse
objectsThis info will help me debug and hopefully contribute a PR to fix the issue.
I'm using Django 1.10, but I also donwgraded to Django 1.9.9 and anonymous users are still not being enroled.
I have a suspicion the issue is related to the change to way request context processors are used in Django 1.8 (i.e. no more RequestContext). For the record, here are the context processors for my project:
The text was updated successfully, but these errors were encountered: