Page MenuHomePhabricator

Cleanup onwiki usages of action=query&meta=userinfo&uiprop=preferencestoken
Open, LowPublic

Description

Note: Some of these may be false positives and don't need correcting as they may just be strings or variable names, not actually resulting in API queries...

reedy@deploy1002:~$ mwgrep --user preferencestoken
commonswiki         User:Firefly/2021 Gadget-EnhancedPOTY.js
commonswiki         User:Leaderboard/Gadget-EnhancedPOTY.js
commonswiki         User:Odisha1/WLEI.js
commonswiki         User:Tucoxn/common.js

(total: 4, shown: 4)
reedy@deploy1002:~$ mwgrep --no-private preferencestoken
commonswiki         MediaWiki:Gadget-EnhancedPOTY.js

(total: 1, shown: 1)
reedy@deploy1002:~$

Event Timeline

Reedy renamed this task from Cleanup onwiki usages of preferencestoken to Cleanup onwiki usages of action=query&meta=userinfo&uiprop=preferencestoken.Jul 13 2021, 7:46 PM

@AntiCompositeNumber @zhuyifei1999 is https://commons.wikimedia.org/wiki/MediaWiki:Gadget-EnhancedPOTY.js what's currently in use for POTY voting? It's still using the deprecated and very-soon-to-be-removed preferencestoken

The script is in use, but I'm not sure if it actually uses the preferencestoken anymore. It looks to me like the token is retrieved and stored but not used. @Firefly is maintaining it now, they might know more.

I don't believe it actually uses the preferencestoken either - the change to the API certainly doesn't appear to have broken anything. I'll submit a patch to remove the retrieval.

I don't believe it actually uses the preferencestoken either - the change to the API certainly doesn't appear to have broken anything. I'll submit a patch to remove the retrieval.

Note that the API change hasn't actually been on Commons since POTY voting started (it was briefly last week, but IIRC voting started after). https://commons.wikimedia.beta.wmflabs.org/wiki/Main_Page will have the API change.

I ctrl+f'd through the script and couldn't find anywhere the tokens were used either.