Commit graph

1655 commits

Author SHA1 Message Date
jenkins-bot
c309a5dd25 Merge "Remove the fallback for create rights (covered in PM edit rights check). Remove key to i18n message, no longer being used." 2021-06-30 15:16:39 +00:00
Roman Stolar
6ebaa5caf6 Remove the fallback for create rights (covered in PM edit rights check).
Remove key to i18n message, no longer being used.

Bug: T272079
Change-Id: Id6566e5241b06ba377c2eca083221ee02556365f
2021-06-30 17:30:30 +03:00
Fomafix
d211570229 Use correct SI prefix "zetta" instead of "zeta"
The existing system messages
* size-zetabytes
* size-zetapixel
* bitrate-zetabits
are kept for compability and are now deprecated.

Bug: T283958
Change-Id: I9460e3b8c2655e9e68ce9147076f4bb1da02237f
2021-06-29 19:11:11 +00:00
Petr Pchelko
eccd347da9 Hard-deprecate User::matchEditTokenNoSuffix
This feature was added to provide a custom error message
if the edit token was present, but trailing slashes were
stripped from it by some ASCII mangling proxy. According
to metrics this has happened 5 times last month, which
IMHO doesn't justify having special handling. Giving a
regular token mismatch error message should be good enough.

Depends-On: Ieb4f6e25a74ecaa1110c59a8d8eed3ca792f2d41
Change-Id: I85759e315581f891721dfac246daaafe956ab201
2021-06-18 09:42:24 -07:00
jenkins-bot
f361e4c5f9 Merge "Special:BlockList: Option to hide autoblocks" 2021-06-02 13:26:22 +00:00
Tobi406
503a2669ae
Special:BlockList: Option to hide autoblocks
Add a new option to Special:BlockList for hiding autoblocks.

Bug: T270623
Change-Id: I7a00a08974b9f8ed8655b516c3b4a19da524d8a1
2021-05-28 19:07:43 +02:00
Translation updater bot
c1ffa49da6 Localisation updates from https://translatewiki.net.
Change-Id: If555a66a4fb2a3033f91caeae2d250cad10e8a01
2021-05-17 08:39:59 +02:00
tsepothoabala
b4a60fecdf Allow action blocks to be logged via block log parameters
Bug: T279560
Change-Id: Icd6ba193a2ce7af83a074cd135470a5097638791
2021-05-05 19:45:52 +02:00
AnaïsGueyte
8b43d8ffda Block Creating page action
Add an option to prevent creating page on partial block

Bug: T199918
Change-Id: I1668da6c299373fb838d860e15d9ffee7aa6a269
2021-05-03 12:14:13 -07:00
Translation updater bot
434586e706 Localisation updates from https://translatewiki.net.
Change-Id: Ic84a88ae2384430a3c8eb0c33e6a6c35f09c5fd4
2021-05-03 08:35:17 +02:00
jenkins-bot
644153cf39 Merge "Add action block to BlockList" 2021-04-30 19:24:53 +00:00
AnaïsGueyte
2a1baa8848 Add action block to BlockList
Add action blocks on Special:BlockList

Bug: T279559
Change-Id: I42d541270ca8b84b3c0469353708d94944f75f18
2021-04-29 13:33:18 -07:00
Thalia
b7c977f6d5 Allow users to be partially blocked from moving/renaming pages
This is done by adding the 'move' action to BlockActionInfo.

Bug: T194529
Change-Id: Ice36ac41901ea85928c81aee45b22746b5867b03
2021-04-29 15:00:51 +01:00
jenkins-bot
9c269ae3b8 Merge "Add change tags for media additions/removals" 2021-04-28 15:13:34 +00:00
jenkins-bot
a8196f5904 Merge "Introduce infrastructure for partial blocks for actions" 2021-04-27 23:57:33 +00:00
Thalia
c67f181dd4 Introduce infrastructure for partial blocks for actions
This adds a new type of block restriction for actions, which extends
AbstractRestriction. Like page and namespace restrictions, action
restrictions are stored in the ipblocks_restrictions table.

Blockable actions are defined in a BlockActionInfo service, with a
method for getting all the blockable actions, getAllBlockActions.

Action blocks are checked for in PermissionManager::checkUserBlock
using DatabaseBlock::appliesToRight. To make this work, this patch
also removes the 'edit' case from AbstractBlock::appliesToRight,
which always returned true. This was incorrect, as blocks do not
always apply to edit, so cases that called appliesToRight('edit')
were fixed before this commit. appliesToRight('edit') now returns
null (i.e. unsure), which is correct because it is not possible to
determine whether a block applies to editing a particular page
without knowing what that page is, and appliesToRight doesn't know
that page.

There are some flags on sitewide blocks that predate partial blocks,
which block particular actions: 'createaccount' and 'sendemail'.
These are still handled in AbstractBlock::appliesToRight, and are
still checked for separately in the peripheral components.

The feature flag $wgEnablePartialActionBlocks must set to true to
enable partial action blocks.

Bug: T279556
Bug: T6995
Change-Id: I17962bb7c4247a12c722e7bc6bcaf8c36efd8600
2021-04-27 21:53:13 +01:00
jenkins-bot
708f4e4892 Merge "qqq.json: Replace Special:IPBlockList with Special:BlockList" 2021-04-27 19:13:21 +00:00
jenkins-bot
b4000c96de Merge "Remove the message expiringblock" 2021-04-27 16:43:33 +00:00
Thalia
7ddd89fe00 qqq.json: Replace Special:IPBlockList with Special:BlockList
Special:BlockList is the canonical name; Special:IPBlockList
redirects to this.

Change-Id: I22bd41f6aeba0caeeaa2b083fa3dbd46cb866b49
2021-04-27 00:57:05 +01:00
jenkins-bot
3380e6e468 Merge "Check for line breaks in user signatures" 2021-04-26 16:03:20 +00:00
Matthias Mullie
dab7b16741 Add change tags for media additions/removals
This introduces 2 new tags to track changes in media usage
across articles. These tags are both hidden & disabled by
default.

Bug: T266067
Change-Id: Ia230eadf7dcf6f52facab17b92293f25de38bb1c
2021-04-26 12:22:21 +02:00
Translation updater bot
14a02d74b3 Localisation updates from https://translatewiki.net.
Change-Id: I496bea5e4f761be0adafc7a9512c2c447cdfb467
2021-04-26 09:09:03 +02:00
Amir Aharoni
7fd3fd651a Remove the message expiringblock
It is unused since 2013, see
Ied5cfda8fa5d9283dfeebdcb0e1af8453d47e7a9

The message infiniteblock, which was also removed in that
change, does appear to be used, so it's not removed here.

Bug: T281054
Change-Id: Idfcb3e0e59cfed041c40c59e3aa3db6a69706d6f
2021-04-25 11:36:43 +03:00
Bartosz Dziewoński
444e28f907 Check for line breaks in user signatures
Bug: T272322
Change-Id: Ieac8be8839915a1ec4d547c2fc15d5fa9b27aca9
2021-04-23 19:55:38 +00:00
Cindy Cicalese
f8ed11e170 Replace doWatch/doUnwatch with addWatch*/removeWatch*
Change-Id: I8882bc24b178ea49198bed5fb206e1a8ea0a4f30
2021-04-20 22:46:07 -04:00
Translation updater bot
db888db7ff Localisation updates from https://translatewiki.net.
Change-Id: I2ff01b015cf01d9d156f22640f85651ca5d8fa5d
2021-04-20 08:45:32 +02:00
Translation updater bot
82b45576ca Localisation updates from https://translatewiki.net.
Change-Id: I410b5b0703414ed6692997473a306d539b651ffc
2021-04-19 08:48:40 +02:00
Reedy
309049e4e1 Rename email-blacklist-label message
Bug: T277987
Change-Id: Ie8c031cccd48c8276ef5af73d49b544b0ab351dd
2021-04-19 00:19:11 +01:00
Taavi Väänänen
23efcf9dbf
Add change tag for media uploaded using importImages.php
Change-Id: I74a7d6f9e5e7bada4803f7e807c7c74d237e9d47
2021-04-17 22:45:52 +03:00
jenkins-bot
c6a8b0c033 Merge "Correct "nonwrite-api-promise-error" message and improve docs" 2021-04-16 04:40:50 +00:00
Translation updater bot
400df5030b Localisation updates from https://translatewiki.net.
Change-Id: I12609e2df152904caa4add6bf16b42e2d7c9f6a5
2021-04-13 09:18:48 +02:00
Translation updater bot
817a3c203b Localisation updates from https://translatewiki.net.
Change-Id: Iaadb232b6a928b709d501930416ea55d707fb207
2021-04-12 08:36:09 +02:00
Umherirrender
f7404ae08e Revert "Localisation updates from https://translatewiki.net."
This reverts commit 07bdda2222.

Reason for revert: Removed cant-block-nonexistent-page from qqq.json which breaks banana linter. Let's revert and get a fresh export next time

Change-Id: Id09d60bf5975581ad0b0ddec34238de304e3a960
2021-04-09 16:54:12 +00:00
Translation updater bot
07bdda2222 Localisation updates from https://translatewiki.net.
Change-Id: I96db73dc0241a655b37e113d823ceb276720ae2f
2021-04-09 08:56:56 +02:00
STran
2d3243b76b Don't allow blocking on pages that don't exist
Bug: T269341
Change-Id: I5836d72960c3f9df874ac3348602e3f8e6322afa
2021-04-08 07:44:53 -07:00
Bartosz Dziewoński
c90158d469 Correct "nonwrite-api-promise-error" message and improve docs
Bug: T133701
Change-Id: I1b5cd4456f11babe8906a82186db3c65917e1588
2021-04-01 19:17:26 +02:00
STran
c2ccb44f11 Update label and placeholder text for Special:Block target
Bug: T278980
Bug: T263638
Change-Id: I56e1c241308b4a92ead8a8183adb775e8c78638b
2021-03-31 23:15:36 -07:00
jenkins-bot
ad9661c4b8 Merge "Add HTMLTagMultiselectField" 2021-03-26 16:37:37 +00:00
jenkins-bot
41456132c2 Merge "Revert "Add change tags for media additions/removals"" 2021-03-26 15:42:17 +00:00
Urbanecm
5519a25cf2 Revert "Add change tags for media additions/removals"
This reverts commit 5a0bfa9d98.

Reason for revert: caused a train blocker (T278429) plus Daniel says it's "super expensive"

Bug: T278429
Bug: T266067
Change-Id: I6724b4bc02d29c12c3fe18cc1e8fa17a443257d5
2021-03-26 15:16:08 +00:00
STran
ee93d068d2 Add HTMLTagMultiselectField
Implements HTMLTagMultiselectField, a form field that instantiates
TagMultiselectWidget, the PHP representation of the OOUI's js-based
widget of the same name with the implemented parameters:
* allowArbitrary
* allowedValues

Bug: T278317
Change-Id: I3a6a30506d493be4185f917c577b3837fffd8ae1
2021-03-26 08:15:38 -07:00
Translation updater bot
d35cf1708f Localisation updates from https://translatewiki.net.
Change-Id: Icf884882c3caef84878a22f5e04256ba75973ebe
2021-03-26 08:48:13 +01:00
Amir Aharoni
f1352d602e Remove the unused feedlinks message
Bug: T277403
Change-Id: Ia98ff66529c7b94c04a1ed7122d016d6c630132e
2021-03-25 23:01:47 +02:00
jenkins-bot
e3cdbbdbaf Merge "Add change tags for media additions/removals" 2021-03-22 17:51:04 +00:00
jenkins-bot
116a5a6c8a Merge "Deprecate DatabaseBlock::isWhitelistedFromAutoblocks" 2021-03-20 23:01:40 +00:00
Reedy
70cc0f85fa Deprecate DatabaseBlock::isWhitelistedFromAutoblocks
Use MediaWiki:Block-autoblock-exemptionlist instead of MediaWiki:Autoblock_whitelist

Bug: T277987
Change-Id: I2274c3cf2ceec43c9190c028b0f8ba821c2f0e34
2021-03-20 22:27:01 +00:00
Reedy
49d5fff86b Minor followups related to removed password policies
Remove related i18n messages

Change-Id: I7f9d341448791cdbc56ffb882ba7b437d00aec86
2021-03-19 18:30:03 +00:00
jenkins-bot
8a21504083 Merge "Allow top-right search form target to be modifiable" 2021-03-16 14:44:50 +00:00
Translation updater bot
8dfb286ec7 Localisation updates from https://translatewiki.net.
Change-Id: Ib16d3632ad81c6e28aab3c57d1ab21ded7ff2ac5
2021-03-15 08:39:12 +01:00
Cormac Parle
adda9c0555 Allow top-right search form target to be modifiable
Before this patch, if 'search' is in the request params then we always
go to Special:Search. Also, the 'title' param on the top-right search
form is always set to Special:Search, which means that form always goes
to Special:Search too.

In order to allow the search form to go to a different page, this
patch:
1. moves the hardcoded redirect to Special:Search based on 'search' in
the request params, so that it only happens if we cannot determine
the page title in the usual way
2. adds a setter for the default search page title in \Skin, so that
it can be set in a hook

Bug: T273879
Change-Id: If62573d19ca76ed1db53a5117182172233e514ab
2021-03-12 17:38:13 +00:00