Page MenuHomePhabricator

IPReveal: Remove the log endpoint and use the batch mechanism instead
Closed, ResolvedPublic0.5 Estimated Story Points

Description

Summary

  • After CheckUser patch #1167909, IP reveals in Special:Contributions are using the batch endpoint (i.e. a POST request).
  • The same mechanism should be used for codepaths currently using the log endpoint, which would allow to remove that endpoint.

Background

Acceptance criteria

  • The log endpoint is removed
  • Codepaths currently using the log endpoint use the batch endpoint instead

Event Timeline

Tchanders set the point value for this task to 0.5.Jul 29 2025, 6:33 AM

I'm happy to pick up this ticket, but I prefer to do so after https://gerrit.wikimedia.org/r/c/mediawiki/extensions/CheckUser/+/1171567 gets merged so we don't lose time handling merge conflicts in the IP Reveal code (this will require changes in modules/ext.checkUser.tempAccounts/rest.js which is already being modified in that patch, which is currently in review).

Change #1175083 had a related patch set uploaded (by Mszwarc; author: Mszwarc):

[mediawiki/extensions/CheckUser@master] IPReveal: Use batch endpoint for log entries

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

(Note: The log endpoint does not seem to be used by WMF code anymore so it seems safe to drop it altogether instead of depecating it first)

mszwarc subscribed.

I'll not make it today and the next week I'm at Wikimania, so I'm unassigning myself from that. If anyone takes this task, please note that it's less obvious than it seems to be. The performRevealRequest function, if passed with no ids, does not return the last IP, but the list of IPs used by a given temp. account. Especially, the module for Special:Block uses it in a way that expects to receive multiple IPs. This behavior cannot be served by the batch endpoint.

The patch that I submitted partially solves the issue – the callers have to be investigated and untied, so that we have functions serving single purposes.

Change #1175083 merged by jenkins-bot:

[mediawiki/extensions/CheckUser@master] IPReveal: Use batch endpoint for log entries

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

Dreamy_Jazz updated the task description. (Show Details)
Dreamy_Jazz updated the task description. (Show Details)