Page MenuHomePhabricator

Change mediawiki-storage api queries to adapt to the api changes [5 pts] {crow}
Closed, ResolvedPublic

Description

  • Add flag to the current bower module (mediawiki-storage)
  • Update version and merge
  • Update reference to mediawiki-storage from dashiki
  • Deploy new dashiki to vital-signs and edit-analysis dashboards

In an email sent by Brad Jorsch on June 2:

As has been announced several times (most recently at
https://lists.wikimedia.org/pipermail/wikitech-l/2015-April/081559.html),
the default continuation mode for action=query requests to api.php will be
changing to be easier for new coders to use correctly.

...

The simple solution is to simply include the "rawcontinue" parameter
with your request to continue receiving the raw continuation data
(example <https://www.mediawiki.org/w/api.php?action=query&list=allpages&rawcontinue=1>).
No other code changes should be necessary.

Or you could update your code to use the simplified continuation documented
at https://www.mediawiki.org/wiki/API:Query#Continuing_queries
(example <https://www.mediawiki.org/w/api.php?action=query&list=allpages&continue=>),
which is much easier for clients to implement correctly.

Mediawiki-storage library uses action=query and needs some changes.
The api change date is July 1st!

Event Timeline

mforns raised the priority of this task from to Needs Triage.
mforns updated the task description. (Show Details)
mforns added a project: Analytics-Kanban.
mforns subscribed.
mforns set Security to None.
kevinator renamed this task from Change mediawiki-storage api queries to adapt to the api changes to Change mediawiki-storage api queries to adapt to the api changes [? pts] {crow}.Jun 12 2015, 4:12 PM
kevinator renamed this task from Change mediawiki-storage api queries to adapt to the api changes [? pts] {crow} to Change mediawiki-storage api queries to adapt to the api changes [5 pts] {crow}.Jun 22 2015, 5:23 PM
kevinator moved this task from Incoming to Tasked on the Analytics-Backlog board.
mforns edited projects, added Analytics-Kanban; removed Analytics-Backlog.
mforns moved this task from Next Up to In Progress on the Analytics-Kanban board.

Change 221288 had a related patch set uploaded (by Mforns):
Add rawcontinue=1 flag for API compatibility

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

Change 221288 merged by Milimetric:
Add rawcontinue=1 flag for API compatibility

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

The rawcontinue=1 flag has been added to mediawiki-storage.
Milimetric merged that and I tagged it to 0.3.0.

No need to change Dashiki code, because the current reference in dashiki/bower.js is: "mediawiki-storage": "latest".

So next only step is "bower update mediawiki-storage" and rebuild both Vital Signs and Edit-Analysis.

kevinator subscribed.

Could have been 3 points not 5. Went really well.