Page MenuHomePhabricator

Enabling bucketing on QuickSurvey
Closed, ResolvedPublic

Description

Given I have a survey defined I should be able to configure a sample rate for the number of users who see the survey.
If 0.5, 50% of users see the survey
if 0 0% of users see the survey
if 100% all users see the survey.

We should make use of the new experiments API that @phuedx is moving into core.

Related Objects

Event Timeline

Jdlrobson claimed this task.
Jdlrobson removed Jdlrobson as the assignee of this task.
Jdlrobson raised the priority of this task from to Medium.
Jdlrobson updated the task description. (Show Details)
Jdlrobson set Security to None.

This just popped in the todo column. We didn't estimate this. Ok to work on ? @Jhernandez @Jdlrobson

It's a subtask of T107592 and is needed to complete T107592 which we estimated.

Change 233763 had a related patch set uploaded (by Robmoen):
Setup survey bucketing

https://gerrit.wikimedia.org/r/233763

Given T110198 I would say this is not mergeable until it has some browser tests accompanying them.

@Jdlrobson for some reason the first step in the tests is failing for me.

Given the quick survey test pages are installed # features/support/step_definitions/common_steps.rb:1
  unexpected HTTP response (404) (MediawikiApi::HttpError)

It must be my environment. I will keep fiddling with it.
However, I have added tests that should work. Can someone confirm?

Sounds like you need export MEDIAWIKI_API_URL=http://127.0.0.1:8888/w/api.php
Tests currently do not work for me.
Then I should see the survey is failing for all of them

Forgive me. I need to update core. Running tests again.

Change 233763 merged by jenkins-bot:
Setup survey bucketing and add browser tests

https://gerrit.wikimedia.org/r/233763

This is a technical task.