Page MenuHomePhabricator

Suggested edits: Populate task queue from server-side
Closed, ResolvedPublic

Description

We currently export data for a single task in SuggestedEdits.php (the task-preview structure). In addition to duplicating some output formatting (see T308541: Create common serialization method for SuggestedEdits and ApiQueryGrowthTasks), it also means that the user has to wait for the ApiQueryGrowthTasks query to complete before they can navigate the task queue.

That has an advantage of getting up-to-date data (the cached taskset can persist for 7 days) but in case of slow network or network call failure, the user can't navigate the task queue. If T308541: Create common serialization method for SuggestedEdits and ApiQueryGrowthTasks is done, then it is pretty simple to export the full task queue and use the newly created DataStore on the client-side to set the task queue; it can then be reset when the ApiQueryGrowthTasks query completes.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Change 793045 had a related patch set uploaded (by Kosta Harlan; author: Kosta Harlan):

[mediawiki/extensions/GrowthExperiments@master] [WIP] SuggestedEdits: Export task queue from server-side

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

kostajh triaged this task as Medium priority.

Change 793045 merged by jenkins-bot:

[mediawiki/extensions/GrowthExperiments@master] SuggestedEdits: Export task queue from server-side

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