Page MenuHomePhabricator

Create a MediaWiki:ipb-default-expiry-anon for setting default anon. block durations
Closed, ResolvedPublicFeature

Description

Currently you can use MediaWiki:ipb-default-expiry so when you visit Special:Block the default block expiry time is already selected. However said ipb-default-expiry works both for anonymous users and registered users. Considering that the defaults for anonymous and registered contributors often do not match (ie: we hardly indef. any IP address but it is very common for registered accounts), could we create a similar function but for unregistered user blocks? Thanks.

Details

Related Gerrit Patches:

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptMar 25 2019, 10:27 AM
MarcoAurelio changed the subtype of this task from "Task" to "Feature Request".Mar 25 2019, 10:27 AM
MarcoAurelio moved this task from Backlog to User blocking on the MediaWiki-User-management board.
DannyS712 claimed this task.Aug 2 2019, 5:34 PM
Restricted Application added a project: User-DannyS712. · View Herald TranscriptAug 2 2019, 5:34 PM
DannyS712 moved this task from Unsorted to Next on the User-DannyS712 board.Aug 2 2019, 5:34 PM

@MarcoAurelio to clarify, you are looking for:

  • If you arrive at Special:Block/1.2.3.4, the default length should be the contents of MediaWiki:ipb-default-expiry-anon (new)
  • If you arrive at Special:Block/DannyS712 or just Special:Block, the default length should be the contents of MediaWiki:ipb-default-expiry (current)
  • Every time the input to the Username or IP address field is validated, update the default block length (new)

@MarcoAurelio to clarify, you are looking for:

  • If you arrive at Special:Block/1.2.3.4, the default length should be the contents of MediaWiki:ipb-default-expiry-anon (new)
  • If you arrive at Special:Block/DannyS712 or just Special:Block, the default length should be the contents of MediaWiki:ipb-default-expiry (current)
  • Every time the input to the Username or IP address field is validated, update the default block length (new)

Yes, that's correct. Thanks.

Change 527948 had a related patch set uploaded (by DannyS712; owner: DannyS712):
[mediawiki/core@master] Add separate default block length for IP blocks

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

@MarcoAurelio the patch I've uploaded accomplishes #1 and #2, but I'm not sure this can be included in the validation of the block target

If it accomplishes 1 and 2 it's okay for me :)

Change 527948 merged by jenkins-bot:
[mediawiki/core@master] Special:Block: Add separate default block length for IP blocks

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

MarcoAurelio closed this task as Resolved.Fri, Nov 1, 2:51 PM
MarcoAurelio added a subscriber: Johan.

User-notice part remains to be done though. Ping to @Johan for that.

Johan added a comment.EditedFri, Nov 1, 2:54 PM

Roughly when would we expect this to be in production?

<code>MediaWiki:ipb-default-expiry</code> can set the default block length for your wiki. You can now use <code>MediaWiki:ipb-default-expiry-ip</code> to set a different default block length for IP editors.

Thanks @Johan

  • as for when this will get deployed to production, I suspect next week but ReleaseTaggerBot is down so we don't know yet.
  • the message isn't called 'ipb-default-expiry-anon' anymore. It was renamed to 'ipb-default-expiry-ip'.

Regards.

Johan added a comment.Fri, Nov 1, 2:57 PM

(My comment edited to reflect this.)

Johan added a comment.Fri, Nov 1, 5:03 PM

OK, adding it to the issue going on Monday, and we'll figure out if it should be in "later this week" or "future news" before the issue gets delivered.

It'll be "later this week", sorry for the inclarity.

alanajjar added a subscriber: alanajjar.
Yamaha5 added a subscriber: Yamaha5.Tue, Nov 5, 1:52 AM

I couldn't find any example in other wikis or documentation. how we can set it? for example: for 1 day i should write 1 or 1d or 1 day, for 2 hours,...?

Thibaut120094 added a comment.EditedTue, Nov 5, 5:47 AM

I couldn't find any example in other wikis or documentation. how we can set it? for example: for 1 day i should write 1 or 1d or 1 day, for 2 hours,...?

The options are listed here: https://www.mediawiki.org/wiki/MediaWiki:Ipboptions

They are also translated:
https://translatewiki.net/wiki/Special:PrefixIndex?prefix=Ipboptions%2F&namespace=8&hideredirects=1

@Yamaha5 @Thibaut120094 Please also note that the message will be named MediaWiki:Ipb-default-expiry-ip (not anon). The code does not seem to be yet deployed to Wikimedia Production at the moment I am posting this. The values that you can put in there are, for example, 1 day or 31 hours. No need for, e.g.: 1 jour:1day. Regards.