Commit graph

102738 commits

Author SHA1 Message Date
jenkins-bot
06e3946c60 Merge "mediawiki.skinning: Combine color rules of all code elements" 2021-04-01 18:51:21 +00:00
jenkins-bot
5c1ac960a5 Merge "title: Fix bogus Title::getSkinFromConfigSubpage()" 2021-04-01 18:34:31 +00:00
jenkins-bot
366db0818d Merge "Update label and placeholder text for Special:Block target" 2021-04-01 18:23:29 +00:00
Thiemo Kreuz
3ae4c5efc2 title: Fix bogus Title::getSkinFromConfigSubpage()
Same as I3d8c6f6 already did for two other methods. It looks like this
one was forgotten.

This patch also adds tests for the previously untested method
Title::getSkinFromConfigSubpage().

Note this patch changes the behavior of Title::getSkinFromConfigSubpage()
slightly. It will return an empty string much more often. This is not a
breaking change as far as I can tell. According to
https://codesearch.wmflabs.org/search/?q=getSkinFromConfigSubpage%5C(
there are only two known callers, and both guarantee the string passed to
this method contains both a slash and a dot. Returning an empty string in
all other cases is much closer to the original intent of the method. For
example. "User:Vector" will not be considered a valid skin name any more.

Bug: T229443
Change-Id: I0a5be39ca11a4e5d6c05f70eb05e80c6c4980523
2021-04-01 20:06:16 +02:00
jenkins-bot
14639b48d7 Merge "Remove User::idFromName from UnblockUser::unblockUnsafe" 2021-04-01 14:08:25 +00:00
STran
2cf88d4871 Remove User::idFromName from UnblockUser::unblockUnsafe
Bug: T261016
Change-Id: Ic6d06b33ffaeccfae022ea5874e2ab7b8b14f92a
2021-03-31 23:51:34 -07:00
Translation updater bot
7c045bddab Localisation updates from https://translatewiki.net.
Change-Id: If07e325aaf49ec2a874d41a88d1a4ce147c2c72a
2021-04-01 08:35:59 +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
f2de7593eb Merge "ContentHandlerTest: merge single use private method" 2021-04-01 05:31:51 +00:00
Tim Starling
f66ea1b38e Actor migration cleanup for removeUnusedAccounts.php
The query does a LEFT JOIN between user and actor. Given the state of
the actor table migration, it's impossible for a user to be active
without having an actor row. So such users must be inactive.

isInactiveAccount() does a loop over tables, sending them all to
ActorMigration, but that's obsolete for all except revision. So split
out the revision case out of the loop, with roughly the same code as
before. Inside the loop, do new-style queries in the knowledge that the
*_actor fields exist.

logging still needs a special case, but like the other non-revision
tables, it no longer needs ActorMigration.

Bug: T278917
Change-Id: I37281a0c856618674160bb39506108d5fff92479
2021-04-01 14:02:27 +11:00
jenkins-bot
22570181d4 Merge "RevisionStoreRecord: Use MWTimestamp::getTimestamp for detailed errors" 2021-04-01 02:06:38 +00:00
Amir Sarabadani
ba3a2b0c40 Use the new mediawiki logos
These logos are approved as part of a community decision making in https://w.wiki/33kx
(Long URL [1]). The rights have been transferred to WMF now.

License: CC-BY-SA 4.0
Author: https://commons.wikimedia.org/wiki/User:Serhio_Magpie
Source: https://commons.wikimedia.org/wiki/Category:MediaWiki_logo_(2020)
[1]: https://www.mediawiki.org/wiki/Project:Proposal_for_changing_logo_of_MediaWiki,_2020

Bug: T268230
Change-Id: Ia588ca79a721f4796e7fe688dd7e538a009f706d
2021-04-01 01:22:33 +02:00
mainframe98
81d54bf8e6 Move more legacy styles to existing modules
Bug: T278576
Change-Id: I251dae0db18600fed08a87efc30ee5a4b9299801
2021-03-31 15:09:44 -07:00
jenkins-bot
bb92c4d1ac Merge "Drop unused patch-uploadstash_sequence.sql" 2021-03-31 19:52:41 +00:00
jenkins-bot
11eb57ad2b Merge "Drop now unused patch-interwiki.sql" 2021-03-31 19:52:21 +00:00
jenkins-bot
f7d96094f1 Merge "Revert "Re-apply "Deprecate constructing revision with non-proper page""" 2021-03-31 19:45:17 +00:00
jenkins-bot
e05ebc6cc6 Merge "Add defaultsort magic word for Serbian language, and sync defaultsort* magic words for both variants" 2021-03-31 16:51:24 +00:00
jenkins-bot
3a12427869 Merge "Create mediawiki.actions.styles module for misc action styles" 2021-03-31 16:13:51 +00:00
zoranzoki21
0422e337c4 Add defaultsort magic word for Serbian language,
and sync defaultsort* magic words for both variants

Change-Id: I94267198de0a5ae926458e92c8aaf203f92372d7
2021-03-31 15:56:04 +00:00
mainframe98
a6a051340c Create mediawiki.actions.styles module for misc action styles
These are styles for actions that do not have a dedicated style module.
Given that the amount of css it contains it marginal, creating a
dedicated module for each action would be overkill.

Bug: T278504
Change-Id: Id03c81e7d5ebf179731649aa230def2e8e21ac02
2021-03-31 15:39:51 +00:00
jenkins-bot
4c94d4629d Merge "A tiny cleanup in some Messages*.php files" 2021-03-31 15:05:57 +00:00
jenkins-bot
bee15a1689 Merge "title: Fix Title::findSubpageDivider() destroying certain strings" 2021-03-31 07:49:07 +00:00
Translation updater bot
bed9d75da5 Localisation updates from https://translatewiki.net.
Change-Id: Iaf546903d99363c228aeb8dd2391bbad4e3f7e25
2021-03-31 08:34:34 +02:00
jenkins-bot
16280d7735 Merge "EmailNotification: clean up with modern coding conventions" 2021-03-31 04:02:27 +00:00
DannyS712
c932f620d7 EmailNotification: clean up with modern coding conventions
Declare one variable at a time
Add some documentation
Add some whitespace for readability
Replace some globals with retrieval from MainConfig
Should be a no-op

Change-Id: Ie58e56d61808d00fea99c35cd1c83a30d6aa28af
2021-03-31 02:58:27 +00:00
DannyS712
aec37adba4 Clean up and simplify SpecialEmailUser::submit
In preparation for moving to the EmailUserUtils service
being added in [1], but can be done in parallel.

Includes using some clearer variable names, and
using the Emailer "service" (which is just a wrapper
for UserMailer::send, but one that can be injected
and thus something that will be used when the
code is moved to the EmailUserUtils service,
changing the code now to make it easier to follow)

Additionally, expand Emailer::send to accept
a single MailAddress as the to, like
UserMailer::send.

Includes removing support for onEmailUser hook
setting $error to something other than a
Status object, true, false, an empty string, an array,
or a MessageSpecifier, which has been deprecated
since 1.29

[1] Ie63ddcc9805f4dbaa7a33e780611d9de227b0dc1

Bug: T265541
Change-Id: Iad683060f739f4fd5ebfd56d19702ba0129f8538
2021-03-31 01:55:30 +00:00
DannyS712
6c483f2790 Add tests for ProxyLookup
Currently completely untested

Change-Id: I5d7b66af26fa612ff78673469a54b7b056dd276b
2021-03-31 00:21:24 +00:00
jenkins-bot
1c30d08a3c Merge "Make Title::isWatchable more strict" 2021-03-30 22:52:09 +00:00
jenkins-bot
32efe549e5 Merge "Hard deprecate the onTitleArrayFromResult hook" 2021-03-30 22:13:18 +00:00
jenkins-bot
bacca6eba5 Merge "ProxyLookup: inject hook container" 2021-03-30 22:08:40 +00:00
Petr Pchelko
877720d7b4 Make Title::isWatchable more strict
We can't really watch invalid titles, since they
definitely can not exist in the database, so having
them in user watchlist doesn't make much sence either.

Bug: T278735
Change-Id: I411ca9227da8050d026a57db690824afd3423a89
2021-03-30 15:51:55 -06:00
jdlrobson
c504f19f1f ResourceLoaderSkinModule: content => toc, content-thumbnails
The `content` feature is too ambigious in meaning.
Moving all the styles relating to the table of contents reduces
the content feature to a group of image styles.

CSS rules for Tidy are legacy, added to the new
content.parser-output.less feature which defaults to on for all skins.

Bug: T269877
Change-Id: Ica54358576ee59c4cb75ef941421e8c0329336d9
2021-03-30 21:04:17 +00:00
jenkins-bot
cb54affc9c Merge "Move legacy link styles to other skin features" 2021-03-30 20:16:02 +00:00
DannyS712
af047cfaaf EditPageBeforeEditToolbarHook no longer stable to implement
Has been deprecated

Bug: T278563
Follow-up: I3285d01715f32a028ea9d5710800c4fd30fe1c59
Change-Id: I5eef7fa6cc69410145529fe2fc05a8154712075e
2021-03-30 18:58:48 +00:00
DannyS712
508a4a9a00 Hard deprecate the onTitleArrayFromResult hook
The hook was added when the TitleArray class
was created, based on the UserArray class that
has a similar hook, onUserArrayFromResult.[1]

However, while the user array hook has extensions
that use it, there are no extensions that use the
title array hook, and it doesn't really make sense
to do so.

[1] See 38473966ea

Change-Id: Ic4253490af3eaaf5986e3665c230835b298ec4b6
2021-03-30 18:57:55 +00:00
DannyS712
1c6e823158 ProxyLookup: inject hook container
Change-Id: I97cdb4ed7ea1dea52cefa8cdce62fc904825a770
2021-03-30 18:46:53 +00:00
Amir Sarabadani
4213630c2a Drop unused patch-uploadstash_sequence.sql
This was introduced in r103367 as a follow up to r103365 while none of
the commits wire this to update.php and since then it has been unused.

And even if it was wired dynamically somehow that I missed, it's not
needed anymore as we don't support direct upgrades from these versions
(1.18 and 1.19) anymore.

Change-Id: I1e16de398bbe61adcb55787117378ea96a2b3e9f
2021-03-30 20:42:16 +02:00
jenkins-bot
ce2acaad93 Merge "Deprecate the EditPageBeforeEditToolbar hook" 2021-03-30 18:22:25 +00:00
Amir Sarabadani
1bcee79097 Drop now unused patch-interwiki.sql
Follow up to I0de40b8dc6

Bug: T272199
Bug: T273080
Change-Id: I639f31e2ece1c936a9013f504e545796aa636724
2021-03-30 20:04:09 +02:00
jenkins-bot
5bc4178005 Merge "AbstractBlock::setTarget() don't always use MediaWikiServices" 2021-03-30 18:03:40 +00:00
jenkins-bot
98cfa1c07d Merge "Split FallbackContentHandlerTest into separate unit tests" 2021-03-30 18:03:30 +00:00
jenkins-bot
2afba4ef90 Merge "selenium: Delete Sauce Labs NPM package" 2021-03-30 17:25:48 +00:00
jenkins-bot
8da9ee4cd8 Merge "SpecialUndelete: Remove 'mediawiki.special.undelete' module alias" 2021-03-30 17:12:16 +00:00
Željko Filipin
76fb0bf2d1 selenium: Delete Sauce Labs NPM package
We are no longer using Sauce Labs. Configuration was removed in ee14595.

Bug: T248221
Change-Id: I855597f43c91210662a155c4c549bda314361c00
2021-03-30 18:47:02 +02:00
DannyS712
57094675fc AbstractBlock::setTarget() don't always use MediaWikiServices
Creating any block class includes a call to AbstractBlock::setTarget
which uses MediaWikiServices, meaning that no blocks can
be created in unit tests. If the target is an empty string '', set
the target and type to null instead of using the BlockUtils
service, which would eventually set them to null but would require
using MediaWikiServices

Allows moving SystemBlockTest to a unit test

Change-Id: Icdf10a6b89aef1995b6e5b5cee9ba5dd5593b01e
2021-03-30 16:24:10 +00:00
Timo Tijhof
f620c9e209 SpecialUndelete: Remove 'mediawiki.special.undelete' module alias
Follows-up 1473989a35. This is not a public API, and was only used
internally by SpecialUndelete.php, alias not used or otherwise needed.

Change-Id: Ie1ae329c8b209e938ff0ba042d13bb5bbedf3f45
2021-03-30 17:18:46 +01:00
jenkins-bot
13b9f8ebc2 Merge "MovePage: fetch $wgMaximumMovedPages from config" 2021-03-30 15:49:09 +00:00
Ppchelko
321d3093e1 Revert "Re-apply "Deprecate constructing revision with non-proper page""
This reverts commit 26680993b2.

Reason for revert: T278376

Change-Id: Ife2f7e43fe448a9ba5be1ad69d1874e4c1c1f2cb
2021-03-30 14:30:48 +00:00
DannyS712
7d398ffde6 Split FallbackContentHandlerTest into separate unit tests
Only testGetSlotDiffRenderer() requires integration
Clean up the code that is being moved, and fix
the remaining covers in the integration test

Change-Id: Ic5926b23daf6738c44d9a5aacb75276f81c51f7a
2021-03-30 14:23:00 +00:00
jenkins-bot
a303a47b60 Merge "Clean up PasswordPolicyChecksTest" 2021-03-30 11:59:25 +00:00