Page MenuHomePhabricator

Enhance QuickSurvey targeting
Closed, ResolvedPublic

Description

As part of the QuickSurvey enhancement, the extension needs to be modified to enable it to set and use specific "user count" with data ranges.

The requirements are highlighted in this document: Meeting notes on Quick survey enhancement.

NOTE: this ticket depends on T364954: Create "EditCountByMonth" method. make sure to add depends on in Gerrit

Sample Audience:

'audience' => [
	'minEdits' => 10,
	'anons' => false,
	'activeEditor' => true, #new
	'timeBinStart' => '2023-05-01', #new
	'timeBinEnd' => '2024-05-01', #new
	'timeBinMin' => 150, #from suggested 'timeBin' => '150-599'
	'timeBinMax' => 599
]

AC:

  • Change Extension to be able to read and process new configuration
  • Add tests for it
  • Use the method created in https://phabricator.wikimedia.org/T364954 to fetch the user information and create logic for it.
  • The query will NOT run for BOT users. (this was specifically asked, not sure if it has to be done in this Ticket or in Jamies)

Event Timeline

@SimoneThisDot , regarding the AC:

The query will NOT run for BOT users. (this was specifically asked, not sure if it has to be done in this Ticket or in Jamies)

I assume the query from T364954 should not run for BOT users, so the block needs to be in there so we avoid bots to make this call (if possible).

cc: @Amdrel

Change #1032864 had a related patch set uploaded (by Mimurawil; author: Mimurawil):

[mediawiki/extensions/QuickSurveys@master] [WIP] T364955: Enhance QuickSurvey targeting

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

Change #1032864 abandoned by Simone Cuomo:

[mediawiki/extensions/QuickSurveys@master] [WIP] T364955: Enhance QuickSurvey targeting

Reason:

The work for this branch and ticket has been completed in a feature branch "https://gerrit.wikimedia.org/r/c/mediawiki/extensions/QuickSurveys/+/1037233"

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

SimoneThisDot changed the task status from Open to In Progress.Jun 3 2024, 6:39 AM
SimoneThisDot changed the status of subtask T364954: Create "EditCountByMonth" method from In Progress to Open.

This work has been parked for now and will be reworked again in the future if there is enough time allocated to the project.

Jdlrobson-WMF added a project: QuickSurveys.
Jdlrobson-WMF moved this task from Not triaged to Next on the QuickSurveys board.
Jdlrobson-WMF subscribed.

Provided the relevant API is provided in T364954: Create "EditCountByMonth" method this can be achieved using the existing code by following documentation here:
https://www.mediawiki.org/wiki/Extension:QuickSurveys#Advanced_audience_targetting