Page MenuHomePhabricator

CU 2.0: Add option to add IP ranges to search
Open, LowPublic

Description

User story

As a CheckUser, I often need to look up the information about users from an entire IP range rather than just an IP itself.

We heard this from multiple users on the CheckUser project talk page.

Mocks
image.png (648×1 px, 310 KB)
image.png (648×1 px, 311 KB)
image.png (542×1 px, 292 KB)
Split the Show X users on this IP buttonClicking the button with open a dropdownThe dropdown has options for including all IPs on /16, /32, /64 ranges (any we can't do?)
Acceptance criteria
  • Split the Show X users on this IP button
  • Add dropdown for
    • Include /16 range and Include /24 range for IPv4 IPs
    • Include /32 range and Include /64 range for IPv6 IPs
  • Clicking the dropdown adds all the users in the /X range to the table
  • Clicking on the button without clicking on the dropdown works as normal -- only the users from the exact same IP are added to the table.

Event Timeline

Niharika created this task.

@Tchanders This ticket was also dependent on the Performance investigation you did. Do you have any recommendations about this task?

@Niharika I think the main concern would be making sure we don't go over the limit that we set for the number of targets. (So if our limit is 10, and the user already entered 10 targets in the initial form, these buttons should be disabled, or they could add unlimited targets.) As long as we can keep within that limit, this wouldn't be any worse than adding the range in the initial form.

I notice this would also need re-designing now that we don't have the blue button any more.

So if our limit is 10, and the user already entered 10 targets in the initial form, these buttons should be disabled, or they could add unlimited targets.)

A technical clarification: we should put the limit on the form processing as well because the button being disabled doesn't prevent additional targets from being added. :)

Some changes coming up on this task. We've changed the interface quite a bit here, and I am not sure if a nested menu would make things too complicated.

Add dropdown for
Include /16 range and Include /24 range for IPv4 IPs
Include /32 range and Include /64 range for IPv6 IPs

Based on the usability tests we now want a more fine-grained control here. @Niharika, what is the range we want to provide here? 1 to 24 for IPv4, and 1 to 64 for IPv6?

Some changes coming up on this task. We've changed the interface quite a bit here, and I am not sure if a nested menu would make things too complicated.

Add dropdown for
Include /16 range and Include /24 range for IPv4 IPs
Include /32 range and Include /64 range for IPv6 IPs

Based on the usability tests we now want a more fine-grained control here. @Niharika, what is the range we want to provide here? 1 to 24 for IPv4, and 1 to 64 for IPv6?

I'm not 100% sure I understand this. A range with less than 16 bits is very broad and unlikely useful in my opinion. Can you expand on the usability test and on what do you mean by "fine-graned control"?
I would think that the dropdown is fine as a shortcut for the range target (unless some CheckUsers have said otherwise)


@Niharika I think the main concern would be making sure we don't go over the limit that we set for the number of targets. (So if our limit is 10, and the user already entered 10 targets in the initial form, these buttons should be disabled, or they could add unlimited targets.) As long as we can keep within that limit, this wouldn't be any worse than adding the range in the initial form.

I notice this would also need re-designing now that we don't have the blue button any more.

This is a good point, it might be worth displaying a tooltip or message somewhere explaining why the buttons are being disabled if they hit the limit.

Prtksxna lowered the priority of this task from Medium to Low.Jan 11 2021, 4:09 AM

Change 937163 had a related patch set uploaded (by Tchanders; author: Tchanders):

[mediawiki/extensions/CheckUser@master] SpecialInvestigate: Add additional users on IPv6 /64 range

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

Change 937163 merged by jenkins-bot:

[mediawiki/extensions/CheckUser@master] SpecialInvestigate: Add additional users on IPv6 /64 range

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