Page MenuHomePhabricator

CU 2.0: Show tool-links underneath IP addresses
Closed, ResolvedPublicMay 5 2020

Description

Goal

In order to find out more information about an IP address CheckUsers need to have an easy way to access tools like geolocate, ip-info etc.
In the current Checkuser tool, that is achieved by having a MediaWiki message that can be configured by the communities. This allows for each community to use tools that work for their needs.
The message is called Checkuser-toollinks.
For this task, we will reuse the same message to display the links.

Mock

image.png (426×578 px, 61 KB)

The links appear in the dropdown - one per row.

Acceptance criteria
  • Upon hovering on a cell in the IP column, the list of tools in Checkuser-toollinks message show up at the bottom.
  • Clicking the link takes one to the respective website with the IP address pre-populated
  • The website opens in a new tab

Details

Event Timeline

Niharika triaged this task as Medium priority.Apr 15 2020, 3:57 PM
Niharika created this task.

Change 593053 had a related patch set uploaded (by Tchanders; owner: Tchanders):
[mediawiki/extensions/CheckUser@master] Show tool links underneath IP addresses

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

So far it looks like this:

image.png (300×276 px, 19 KB)

I realised while doing this that customized icons might be a bit difficult since each wiki can link to different sites. Any ideas @Prtksxna?

This uses the CheckUser message checkuser-toollinks. In CheckUser, checkuser-userlinks-ip is shown next to an IP result for the "Get users" check, whereas checkuser-toollinks is shown under an IP result for the "Get IP addresses" check. For English, checkuser-toollinks is longer.

@Niharika @SPoore Am I right in thinking you're discussing whether to use the existing CheckUser messages or have a new message for Special:Investigate or use something like JsonConfig? If so this could work until then and then should be straightforward to update.

@Niharika @SPoore Am I right in thinking you're discussing whether to use the existing CheckUser messages or have a new message for Special:Investigate or use something like JsonConfig? If so this could work until then and then should be straightforward to update.

We talked to them. The feedback we got seems to indicate that they want to keep the ability to customize the links per-project. As for new message versus existing message, I think it is probably easiest if we go with the existing message as that seems straightforward to do. Having unfamiliar links would probably increase the inertia towards using the tool.

Niharika updated the task description. (Show Details)
ARamirez_WMF changed the subtype of this task from "Task" to "Deadline".

Change 593053 merged by jenkins-bot:
[mediawiki/extensions/CheckUser@master] Show tool links underneath IP addresses

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

I copied the Checkuser-toollinks from enwiki (https://en.wikipedia.org/wiki/MediaWiki:Checkuser-toollinks) on to my local wiki.

@Niharika @Tchanders It doesn't give exactly the same outcome (when compared to current CheckUser). Do we expect the users to change the message?

Special:Investigate:

special_investigate_links.png (480×234 px, 18 KB)

Special:CheckUser:

special_checkuser_links.png (27×640 px, 5 KB)

@dom_walden Really good find. That's a bug that probably means that we'll have to do this a different way.

We're currently making options for all the links in the message, but looks like there are extra links that we don't want options for.

Unless we can think of a way to filter out those extra links, we may need to make new messages or use JsonConfig (as discussed in T250290#6091934).

Yeah, good catch, @dom_walden. I agree, we should revisit how we do this. I will open a new task for that.

Yeah, good catch, @dom_walden. I agree, we should revisit how we do this. I will open a new task for that.

OK, I will move this to done, as I don't have anymore testing to do.