VOOZH about

URL: https://phabricator.wikimedia.org/T219126

⇱ ⚓ T219126 Create a MediaWiki:ipb-default-expiry-anon for setting default anon. block durations


Maniphest T219126

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

Description

Currently you can use 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.

Event Timeline

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.
Comment Actions

@MarcoAurelio to clarify, you are looking for:

  • If you arrive at , the default length should be the contents of (new)
  • If you arrive at or just , the default length should be the contents of (current)
  • Every time the input to the field is validated, update the default block length (new)
Comment Actions

@MarcoAurelio to clarify, you are looking for:

  • If you arrive at , the default length should be the contents of (new)
  • If you arrive at or just , the default length should be the contents of (current)
  • Every time the input to the field is validated, update the default block length (new)

Yes, that's correct. Thanks.

Comment Actions

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

Comment Actions

@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

Comment Actions

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

Comment Actions

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 added a subscriber: Johan.
Comment Actions

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

Comment Actions

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.

Comment Actions

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.

Comment Actions

(My comment edited to reflect this.)

Comment Actions

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.

Comment Actions

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

Comment Actions

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,...?

Comment Actions

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

Comment Actions

@Yamaha5 @Thibaut120094 Please also note that the message will be named (not ). 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, or . No need for, e.g.: . Regards.

Content licensed under Creative Commons Attribution-ShareAlike (CC BY-SA) 4.0 unless otherwise noted; code licensed under GNU General Public License (GPL) 2.0 or later and other open source licenses. By using this site, you agree to the Terms of Use, Privacy Policy, and Code of Conduct. · Wikimedia Foundation · Privacy Policy · Code of Conduct · Terms of Use · Disclaimer · CC-BY-SA · GPL · Credits