Page MenuHomePhabricator

Request: How often are deprecated token methods used?
Closed, ResolvedPublic

Description

Before the different api token methods can be removed, use on WMF wikis needs to be evaluated
Specifically, this is a request for info regarding how often the (deprecated[1]) api methods are used:

  • action=query&list=recentchanges&rctoken=
  • action=query&prop=revisions&rvtoken=
  • action=query&meta=userinfo&uiprop=preferencestoken (or multiple values that include preferencestoken)
  • action=query&list=users&ustoken=
  • action=tokens

Per https://www.mediawiki.org/wiki/Requests_for_comment/API_roadmap#Deprecation_process, "usage of the deprecated feature on WMF wikis will be evaluated and the deprecated feature may be removed"

[1] Deprecation was announced in https://lists.wikimedia.org/pipermail/mediawiki-api-announce/2014-August/000067.html

Event Timeline

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

CC @Anomie, who originally deprecated the methods
I'm not sure if this is the correct way to get this data; I'm only looking for whether usage is low enough that the token methods can be removed

In the past 7 days (from https://logstash.wikimedia.org/goto/a286d57465f475ce293a145ace01e1e4):

FeatureUses
action=query&list=recentchanges&rctoken4,437,099
action=tokens321,744
action=query&list=users&ustoken272,377
action=query&prop=revisions&rvtoken270,155
action=query&meta=userinfo&uiprop=preferencestoken61,293

Qualitatively, it looks like user scripts or gadgets are the most significant contributor to these numbers. In particular, I'd guess there a common script/gadget on zhwiki pumping up rctoken, and one on Commons hitting preferencestoken.

T233904 is also relevant to some of these numbers.

You might be able to get more details from Analytics as they're probably more familiar with exactly what can be provided without the NDA.

Anomie claimed this task.

Resolving as requested info has been provided