Commit graph

113753 commits

Author SHA1 Message Date
Amir Sarabadani
cb18d1007e Reorg: Move ActorMigration and ActorMigrationBase to user/
This may seem a bit weird but anything else related to actor is already
under user/ including ActorCache, ActorNormalization, ActorStore and
ActorStoreFactory.

Bug: T321882
Change-Id: I7072b374bba7a0cd9d905e399c822bf30bd5c0d8
2022-12-16 13:44:33 +01:00
jenkins-bot
d11a785c3b Merge "Introduce HtmlMessageOutputHelper for system messages" 2022-12-16 11:23:44 +00:00
Derick Alangi
ce8e5f1549 Introduce HtmlMessageOutputHelper for system messages
This introduces an interface HtmlOutputHelper that is implemented
by both HtmlMessageOutputHelper or HtmlOutputRendererHelper based
on the page we're dealing with.

Bug: T323558
Change-Id: I1fb8dcc5cc05ce3f32f3c1862b88045f1c8e612b
2022-12-16 11:49:56 +01:00
Lucas Werkmeister
bac2f3f64d auth: Replace FQNs with imports
Change-Id: If77151460187f304beb7e842b0347f4ba715987e
2022-12-16 11:30:32 +01:00
Amir Sarabadani
523ab7cff8 Reorg: Move RawMessage to under language/
To follow Message. This is approved as part of RFC T166010.

Also namespace it but doing it properly with PSR-4 would require
namespacing every class under language/ and that will take some time.

Bug: T321882
Change-Id: I195cf4c67bd51410556c2dd1e33cc9c1033d5d18
2022-12-16 11:30:19 +01:00
jenkins-bot
32227860ca Merge "Remove mediawiki.action.view.categoryPage.styles module" 2022-12-16 09:42:10 +00:00
jenkins-bot
bef9b24d1a Merge ""Show thumbnails in Special:Search" option is available on mobile" 2022-12-16 09:13:23 +00:00
jenkins-bot
d51d843c3a Merge "Localisation updates from https://translatewiki.net." 2022-12-16 09:12:42 +00:00
jenkins-bot
d4b191aad0 Merge "Change IW breakpoint to be enabled on smaller screen" 2022-12-16 08:46:52 +00:00
Vadim Kovalenko
572cba4080 "Show thumbnails in Special:Search" option is available on mobile
Change text for the thumbnail search results preferences

Bug: T321348
Change-Id: I13be3119686bae37bbd117a723774091e720e572
2022-12-16 09:39:20 +01:00
Translation updater bot
943ab1e89d Localisation updates from https://translatewiki.net.
Change-Id: I40b0ed0dcc338dcb41a2e96507ac85e59afd13f8
2022-12-16 08:27:29 +01:00
DannyS712
621e25ecae Remove mediawiki.action.view.categoryPage.styles module
Unused since May, its been more than a week

Follow-up: If406ce2ae38eb165758add6099b2106794bf225c
Change-Id: I4fd6cd89528648301a7e31408b989c817b3833ad
2022-12-16 04:44:29 +00:00
jenkins-bot
c903124b77 Merge "Make use of ?:, ?? and ??= operators in mostly trivial cases" 2022-12-16 02:51:26 +00:00
jenkins-bot
a1c53aa9cf Merge "installer: Include "more information" link for extension/skins" 2022-12-16 02:28:59 +00:00
jenkins-bot
0cc38c8717 Merge "Hard-deprecate protection related deprecated Title function" 2022-12-16 01:22:22 +00:00
jenkins-bot
f3b5f09e4c Merge "Make use of the ?? and ??= operators where it makes sense" 2022-12-16 01:06:50 +00:00
Umherirrender
e3af1aeed1 Hard-deprecate protection related deprecated Title function
Bug: T306131
Change-Id: I513efa22c42dd9194a385bae408af38cae9f1a6a
2022-12-16 00:36:53 +00:00
jenkins-bot
9ae101276d Merge "specials: Inject HookContainer into UploadForm" 2022-12-16 00:24:06 +00:00
jenkins-bot
26281987e9 Merge "api: Replace deprecated Linker::formatComment" 2022-12-15 23:33:12 +00:00
jenkins-bot
59862c9f8d Merge "Generalize History pager tools for use in other contexts" 2022-12-15 23:21:43 +00:00
Jon Robson
012a387587 Generalize History pager tools for use in other contexts
The history page renders an extensible list of tools for each
change list row. I've factored this code out so that it
can also be used on other pages that use the Pager class.

This generalizes the logic for the rollback link and makes sure
the control is standardized across pages. It also allows
the onHistoryTools hook run. I suggest we rename this to something
more generic in a follow up.

Right now usages of onHistoryTools are low but there should be
no issues with running it on more than the history page. One of
the benefits of this is the thanks link will now show on the
contributions page, watchlist and recent changes.

Bug: T51541
Change-Id: Ia03038e86c6a607c8b75eefedbf0285ca1a2f8c8
2022-12-15 14:44:18 -08:00
jenkins-bot
00c2dfa184 Merge "tests: Set UseInstantCommons config to false in WikiPageDbTest" 2022-12-15 19:14:12 +00:00
jenkins-bot
630925a09d Merge "HtmlOutputRendererHelper: test that parser cache is used." 2022-12-15 18:22:11 +00:00
daniel
91c1380d1e HtmlOutputRendererHelper: test that parser cache is used.
This protected against the performance regression that was addressed in
abec307409.

Change-Id: Ie5f7c2c713a10eec19bc19e0ba709f36599fb291
2022-12-15 17:56:14 +00:00
jenkins-bot
e5f0418ffc Merge "composer.json: Updated composer/spdx-licenses from 1.5.6 to 1.5.7" 2022-12-15 16:43:16 +00:00
Reedy
77e80a46e8 composer.json: Updated composer/spdx-licenses from 1.5.6 to 1.5.7
Bug: T314096
Change-Id: I7fb974728da2ce50b317377dcd4d343682263c86
2022-12-15 15:56:30 +00:00
jenkins-bot
f634985ffd Merge "Use fake time in UserTimeCorrection in tests" 2022-12-15 15:01:41 +00:00
jenkins-bot
a36b69309c Merge "Hard-deprecate BacklinkCache::get/getLinks/getCascadeProtectedLinks" 2022-12-15 14:19:09 +00:00
jenkins-bot
4b2c11a85a Merge "Parsoid: return 404 when page is deleted." 2022-12-15 12:09:47 +00:00
jenkins-bot
a3d14a3e27 Merge "Add alt text for thumbnails, aria-hidden for placeholder" 2022-12-15 11:42:14 +00:00
jenkins-bot
bf7e391510 Merge "specials: Migrate queries to SelectQueryBuilder in SpecialActiveUsers" 2022-12-15 11:40:01 +00:00
jenkins-bot
dba0bf3877 Merge "add redirects to page/history and link endpoints" 2022-12-15 11:37:43 +00:00
daniel
6decc0ba09 Parsoid: return 404 when page is deleted.
If HtmlOutputRendererHelper can't produce output because the page
doesn't exist, don't crash. Return a 404 instead.

Bug: T325205
Change-Id: I6a713025e2eb447ed61de8949c820bd9cda7594e
2022-12-15 12:13:57 +01:00
Umherirrender
2515199b2f Hard-deprecate BacklinkCache::get/getLinks/getCascadeProtectedLinks
Depends-On: I39a532bcce35191db6abe4fdcdd6f95df74e5e87
Depends-On: I4c8bcec6bb2396b31a7cc73cb7f6f83742dc001a
Change-Id: I09d0aae2400d3b70d8ad59df4e47ee23d3f5072b
2022-12-15 10:51:44 +00:00
Translation updater bot
e3a6741ec1 Localisation updates from https://translatewiki.net.
Change-Id: Ia3feca85f1ca6a22830008e3094ac44fba3dd490
2022-12-15 11:04:04 +01:00
Amir Sarabadani
c496d9107a specials: Migrate queries to SelectQueryBuilder in SpecialActiveUsers
While we are at it, stop setting deprecated group recentchanges and stop
calling deprecated function getConnectionRef()

Bug: T311866
Change-Id: Ia917bebe300edb830010e9db126413b302be4d0b
2022-12-15 10:20:12 +01:00
jenkins-bot
a06b2e6f3a Merge "MediaWiki-Docker: Switch PHP images to PHP 8.1" 2022-12-15 08:24:10 +00:00
James D. Forrester
5c7a1f1da6 MediaWiki-Docker: Switch PHP images to PHP 8.1
This should now be the default target for people to develop upon.

Images were added in GitLab via this Merge Request which I can't make
this patch depend upon:

https://gitlab.wikimedia.org/repos/releng/dev-images/-/merge_requests/23

Bug: T319432
Change-Id: Iaa61c0f382244241c8fde10b8fa419f1f5730477
2022-12-15 07:31:23 +00:00
Kevin Israel
d2ffc38ff8 tests: Set serialize_precision=-1 in TestSetup
Starting in PHP 7.1, this is now the default[1][2], and results in the
"shortest string that yields d when read in and rounded to nearest."[3]

As such, it would generally be the best choice for tests. The existing
value of 17 has been used only because it was the default at the time
(October 2015, see commit 71443707ad), and -1 for "dtoa mode 0"
simply was not an option yet.

[1]: https://wiki.php.net/rfc/precise_float_value
[2]: https://www.php.net/manual/en/migration71.other-changes.php#migration71.other-changes.ini-file-handling
[3]: https://github.com/php/php-src/blob/php-8.1.13/Zend/zend_strtod.c#L3713-L3714

Change-Id: I95c3c36c90be5aa0af22c3c77ce67641b81786d7
2022-12-14 23:18:13 -05:00
jenkins-bot
bb20303cb6 Merge "Fix whitespaces after comma" 2022-12-15 00:56:34 +00:00
jenkins-bot
c913145a86 Merge "rdbms: Moving replication-related code to its own component" 2022-12-15 00:54:24 +00:00
Amir Sarabadani
9b078129d2 rdbms: Moving replication-related code to its own component
Remove 'insertSelectIsSafe' option, unused.

Remove 'topologicalPrimaryConnRef' option, no longer used as of two
months ago with I41a57247503 (8c9398f7f9).

Remove unneeded DatabaseSqlite::getTopologyBasedServerId
implementation which can inherit null instead of overriding with string
of "0". Only caller is SqlBagOStuff::makeTimestampedModificationToken
which can be used as MainStash DB, where its important that a given
server always has the same unique name within a set of db hosts that
may replicate to each other. By inheriting null as topology server ID,
it SqlBagOStuff will use IDatabase::getServerName instead. That in turn
uses the 'host' connection parameter, which defaults to null in
DatabaseFactory, and then falls back to the string "unknown" which is
as good as "0" for this purpose.

Bug: T299691
Change-Id: Iceb65c28cdd3c4a89b3c8b34c3f95d3285718ec0
2022-12-15 00:37:02 +00:00
Umherirrender
fd516a98e1 Fix whitespaces after comma
Change-Id: Ide6de0a53661e6f650099d7b1f274a02699441df
2022-12-15 01:24:14 +01:00
jenkins-bot
fd6e9930ba Merge "rcfilters: Prevent tagfilter param from being set to 'all'" 2022-12-15 00:10:28 +00:00
Roan Kattouw
ca4928bdd9 rcfilters: Prevent tagfilter param from being set to 'all'
On a wiki with very few tags, it's easy to select all tags. Because the
tags group is a string_options group, this results in a query string
with &tagfilter=all, which is incorrect and returns no results. (In the
unlikely event that a tag named 'all' exists, it will return confusing
results instead and cause other bugs.)

Fix this by adding a 'supportsAll' property to string_options groups,
which defaults to true and is only set to false for the tagfilter and
namespace groups. When supportsAll is false, 'all' is not generated or
interpreted as a magic value.

Bug: T325255
Change-Id: I892c9e2893de5b5463da76696db01e556d3e187f
2022-12-14 23:45:27 +00:00
jenkins-bot
f9a548b6ea Merge "remove unused BacklinkCache::$instance" 2022-12-14 22:12:06 +00:00
jenkins-bot
0fb254ffa5 Merge "cache: Inject HookContainer into BacklinkCache" 2022-12-14 22:03:37 +00:00
jenkins-bot
4f97dd079c Merge "Replace deprecated Linker::commentBlock/revComment" 2022-12-14 21:57:55 +00:00
jenkins-bot
137238ab0a Merge "Replace deprecated PermissionManager::getGroupPermissions" 2022-12-14 21:54:17 +00:00
jenkins-bot
a3470d3cff Merge "Replace deprecated PermissionManager::groupHasPermission" 2022-12-14 21:53:23 +00:00