Page MenuHomePhabricator

Add the ability to use "first edit", "last edit" and "user registered" to Quick survey
Closed, ResolvedPublic

Description

As a manager setting up a QuickSurvey I would like to be able to define my targeting sampling using extra information that would allow me to tailor the audience targeted by the survey

As part of this ticket we are going to use the existing information for User First Edit, User Last Edit and User Registration and be able to use them to define our Survey Sampling:

  • Add an entry for FirstEdit in the Survey JSON (this should allow the user to select before or after for a given date)
  • Add an entry for LastEdit in the Survey JSON (as above)
  • Add an entry for UserRegistrationDate in the Survey (as above)
  • Implement the above within the survey logic. Use it to Deine if an user should be shown the survey or not
NOTE: the names are just suggestions, use what best align with the existing naming convention

If the above is correct we should be able to define the following samples:

  • Target all users that registered before 01-01-1999
  • Target all users that registered after 01-01-1999
  • Target all users that made their first edit before 01-01-1999
  • Target all users that made their first edit 01-01-1999
  • Target all users that made edits between 01-01-199 and 01-01-2010 (this means that their last edit was before the date and their first was after the given date)
  • Target all users that made their last edit after XXXX
  • Target all users that made their last edit before XXX

Event Timeline

Amdrel changed the task status from Open to In Progress.Tue, May 21, 5:16 PM

Change #1035557 had a related patch set uploaded (by Amdrel; author: Amdrel):

[mediawiki/extensions/QuickSurveys@master] Add firstEdit and lastEdit audience keys

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

Change #1037233 had a related patch set uploaded (by Simone Cuomo; author: Simone Cuomo):

[mediawiki/extensions/QuickSurveys@community-safety] Improve capability of QuickSurvey

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

Change #1037233 merged by jenkins-bot:

[mediawiki/extensions/QuickSurveys@community-safety] Improve capability of QuickSurvey

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

Change #1035557 abandoned by Amdrel:

[mediawiki/extensions/QuickSurveys@master] Add firstEdit and lastEdit audience keys

Reason:

This patch has been cherry-picked and squashed into the following branch: https://gerrit.wikimedia.org/r/q/project:mediawiki/extensions/QuickSurveys+branch:community-safety+status:merged

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

Test wiki created on Patch demo by SimoneThisDot using patch(es) linked to this task:
https://patchdemo.wmflabs.org/wikis/1f5a200338/w

Test wiki on Patch demo by SimoneThisDot using patch(es) linked to this task was deleted:

https://patchdemo.wmflabs.org/wikis/1f5a200338/w/

Test wiki created on Patch demo by Jdlrobson using patch(es) linked to this task:
https://patchdemo.wmflabs.org/wikis/e606e11883/w

Test wiki created on Patch demo by SimoneThisDot using patch(es) linked to this task:
https://patchdemo.wmflabs.org/wikis/0d85df7998/w

Test wiki on Patch demo by Amdrel using patch(es) linked to this task was deleted:

https://patchdemo.wmflabs.org/wikis/80286dd93e/w/

Test wiki on Patch demo by Amdrel using patch(es) linked to this task was deleted:

https://patchdemo.wmflabs.org/wikis/7ed125994c/w/

Test wiki on Patch demo by SimoneThisDot using patch(es) linked to this task was deleted:

https://patchdemo.wmflabs.org/wikis/0d85df7998/w/