Page MenuHomePhabricator

Make CIDR range block calculator available outside of Special:CheckUser
Open, MediumPublic

Description

As a sysop, I've often needed to find an external tool to calculate ranges for range blocks, but there is one that is available within the checkuser interface. I propose that it be made available elsewhere as well, so that non-checkusers can use it too.

(For now, I've hacked together https://meta.wikimedia.org/wiki/User:DannyS712/CIDR.js to load the javascript and display the form at Special:BlankPage/CIDR)

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
DannyS712 added subscribers: Tchanders, Niharika.

Would it make sense to put this functionality in core, or in its own tiny extension? Its useful even without checkuser being installed

Duplicate of T152850?

That is specifically bringing it into core, I'm saying it shouldn't be limited to Special:CheckUser - it doesn't necessarily need to be merged into core, so I'd like to see what the AHT thinks before merging to that task

Change 822707 had a related patch set uploaded (by Dreamy Jazz; author: Dreamy Jazz):

[mediawiki/extensions/CheckUser@master] Create Special:RangeCalculator using the CIDR calculator code

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

Dreamy_Jazz subscribed.

Worked on this during the hackathon. May be worthwhile to announce in tech news as it would be a new Special page accessible to everyone. May not be merged for a while because it depends on a few other patches and merging has been slower recently.

What the above patch produces as a Special page:

image.png (522×1 px, 43 KB)

The tool links are customisable per wiki as they are defined as a non-translated message that can be changed per wiki in the usual way. The translatable text is included from other message keys so that they can be translated.

Ideally the subtasks to this task should be resolved so that the tool is made easier to use. Currently if you give IPs that result in a too large range, it fails without trying to find a list of the common ranges instead. It also cannot support IPv6 and IPv4 at the same time.

Change 822707 abandoned by Dreamy Jazz:

[mediawiki/extensions/CheckUser@master] Create Special:RangeCalculator using the CIDR calculator code

Reason:

Abandoning as there is very slow speed for review on the patches that this relies on, so keeping this from going further stale.

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

As there is very slow code review speed for the last month and a bit, unlikely to have the patches needed to be merged before this merged in a reasonable amount of time to keep the patch up to date with merge conflicts.

Change 822707 restored by Dreamy Jazz:

[mediawiki/extensions/CheckUser@master] Create Special:RangeCalculator using the CIDR calculator code

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

Change 822707 abandoned by Dreamy Jazz:

[mediawiki/extensions/CheckUser@master] Create Special:RangeCalculator using the CIDR calculator code

Reason:

Will recreate this patch.

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