Page MenuHomePhabricator

Remove SpecialInvestigateLog, InvestigateLogPager and InvestigateLogPagerFactory
Closed, ResolvedPublic

Description

Following T266238: Show logs for Special:Investigate investigations on Special:CheckUserLog, the classes for building Special:Investigate should be removed, and any links pointing to Special:Investigate should instead point to Special:CheckUser.

Acceptance criteria from the parent task:

  • Link to the Special:Investigate form from the top of Special:CheckuserLog
  • Change the log button on Special:Investigate to link to Special:CheckuserLog
  • Remove SpecialInvestigateLog, InvestigateLogPager and InvestigateLogPagerFactory

Some additional acceptance criteria:

  • The "Check" tool link in the IPs & User agents tab links to Special:CheckUserLog
  • All messages for the removed classes are removed
  • Comments and documentation no longer refer to InvestigateLog

Event Timeline

Change 637512 had a related patch set uploaded (by Tchanders; owner: Tchanders):
[mediawiki/extensions/CheckUser@master] Remove Special:InvestigateLog and associated classes

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

Change 637512 merged by jenkins-bot:
[mediawiki/extensions/CheckUser@master] Remove Special:InvestigateLog and associated classes

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

dom_walden subscribed.
  • Link to the Special:Investigate form from the top of Special:CheckuserLog

Yes. ("Switch to Investigate main form" in the screenshot below.)

Also, if you filter the log to a specific target (i.e. Special:CheckUserLog/<user, ip or range>), we include a link to Special:Investigate?targets=<user, ip or range>. ("Investigate this user" in the screenshot below.)

checkuserlog_subtitles.png (177×650 px, 17 KB)

If you have checkuser-log rights but not checkuser rights, these links do not show.

If $wgCheckUserEnableSpecialInvestigate = false the Special:Investigate links still show, but will obviously take you to No such special page. As $wgCheckUserEnableSpecialInvestigate is true on production, perhaps this does not matter.

  • Change the log button on Special:Investigate to link to Special:CheckuserLog

Yes, both on the first page and during an investigation.

  • Remove SpecialInvestigateLog, InvestigateLogPager and InvestigateLogPagerFactory

Yes.

  • The "Check" tool link in the IPs & User agents tab links to Special:CheckUserLog

Yes.

When you click the "Check" tool, I notice that an EventLogging event is logged of the form:

{"event":{"action":"tool","tool":"Special:InvestigateLog"} ...

which is the same as it was before. I am guessing we want to keep this the same so we can continue to make comparisons.

  • All messages for the removed classes are removed

Yes, as far as I can tell.

The removed messages do not appear to be used anywhere else.

  • Comments and documentation no longer refer to InvestigateLog

I cannot find any references to InvestigateLog in code comments or wiki documentation (incl. https://www.mediawiki.org/wiki/Extension:CheckUser#Special:Investigate_usage, https://meta.wikimedia.org/wiki/Help:Special_Investigate).

Test environment: local vagrant MediaWiki 1.36.0-alpha (6e6fb0e) CheckUser 2.5 (5e69b2b).