Commit graph

111890 commits

Author SHA1 Message Date
Lucas Werkmeister (WMDE)
ff4b168815 Revert "composer.json: Pin phpunit to 8.5.28"
This reverts commit 2cb32437ef.

Reason for revert: We stopped using Prophecy (T315966).

Bug: T315892
Change-Id: I9eb04d903f7ec715c76836c7b5736b50e6490340
2022-09-23 09:42:01 +00:00
Kosta Harlan
2cb32437ef
composer.json: Pin phpunit to 8.5.28
Until we can find a workaround for the removal of phpspec/prophecy.

Bug: T315892
Change-Id: Id3ee4fe97461dbc80f7c163c3585a9df2957bae0
2022-08-22 18:05:35 +02:00
jenkins-bot
b8abc26010 Merge "api: Remove redundant 'api' group from DB_PRIMARY connection" 2022-08-22 13:12:48 +00:00
jenkins-bot
01feade692 Merge "SiteStats: Make sure initSiteStats.php re-distribute values" 2022-08-22 12:44:33 +00:00
Timo Tijhof
3d3d75d554 api: Remove redundant 'api' group from DB_PRIMARY connection
There's only one primary in this house.

I found this after auditing for T263127 and I6ea5c65921891ac6a705.

Change-Id: I0ed7877820cd1f0a37b0f04ea898cd3917dd5075
2022-08-22 13:40:08 +01:00
Amir Sarabadani
3defd2b18e SiteStats: Make sure initSiteStats.php re-distribute values
When the setting for sharding is on, the script actually flush all
values to the first row. Since this is being ran regularly in
production, it has been causing drifts between values and reality.

Tested locally, works fine.

Bug: T315693
Change-Id: Id9fe16eecd153b4ba2b7d28baadec3a9a44b4ee1
2022-08-22 12:24:56 +00:00
jenkins-bot
25e3a83c82 Merge "mediawiki.storage: Remove unused isRawKey arg" 2022-08-22 11:55:11 +00:00
Ed Sanders
57042f5663 Follow-up Ifec82b5f: Always try/catch when accessing native storage object
Ifec82b5f introduced some new places where we access the native storage
object. One of the purposes of SafeStorage is to catch any errors
that may be thrown by the browser when storage is unavailable.

Bug: T121646
Bug: T315869
Change-Id: Iacc444d97e6a8ef41439e0f6a142c9e4b01af2f0
2022-08-22 11:58:57 +01:00
Translation updater bot
8ccd3bc8d3 Localisation updates from https://translatewiki.net.
Change-Id: I82927be604d2753ffb2d53d58b2882c21040e2e2
2022-08-22 08:05:16 +02:00
Timo Tijhof
afc0224979 mediawiki.storage: Remove unused isRawKey arg
Follows-up Ifec82b5f8a1 (c054334d1).

Bug: T121646
Change-Id: I918e8d2f354fbfd4a1dd32d5b12ab06837a2d13f
2022-08-21 14:46:31 +00:00
Subramanya Sastry
98b3ddd7c7 Added Parsoid support for nowiki stripping in args of {{#tag:ext|...}}
* This patch relies on extensions setting a flag in their Parsoid ext.
  config indicating that a specific tag handler needs nowikis stripped
  from #tag arguments.

  In the #tag parser function implementation, Parsoid's SiteConfig is
  looked up to see if nowiki needs to be stripped.

* This need not be limited to nowikis, but to support extension use in
  {{#tag:ext|...}} more generally, we would need to either
  (a) implement the #tag parser function in Parsoid natively; OR
  (b) find a way to call Parsoid from extensionSubstitution

  Soln (a) needs Parsoid to support parser functions natively.

  If this general support becomes necessary, a later patch can
  generalize this appropriately.

Bug: T272939
Bug: T299103
Depends-On: I6a653889afd42fefb61daefd8ac842107dce8759
Depends-On: I56043e0cb7d355a3f0d08e429bb1dbba6acb4fba
Change-Id: I614153af67b5a14f33b7dfc04bd00dd9e03557d0
2022-08-20 20:56:54 -05:00
jenkins-bot
7efe7727a0 Merge "Setup: Remove internal short-cut config $wgUseEnotif" 2022-08-20 14:53:43 +00:00
jenkins-bot
06740c77b8 Merge "SqlBagOStuff: Fix modtoken comparison" 2022-08-19 22:44:58 +00:00
jenkins-bot
c33e8cc617 Merge "parser: Use SelectQueryBuilder instead of IDatabase::select" 2022-08-19 21:26:29 +00:00
jenkins-bot
28cce6509c Merge "Set skipMode to something other than legacy" 2022-08-19 21:16:01 +00:00
Derick Alangi
cbcd96f97d parser: Use SelectQueryBuilder instead of IDatabase::select
Bug: T311866
Change-Id: I4ca6539218b7717244b773422b7647d181bc504c
2022-08-19 20:49:52 +01:00
jenkins-bot
942950efa4 Merge "tests: Migrate MediaWiki settings to overrideConfig...()" 2022-08-19 18:54:55 +00:00
jenkins-bot
6380bd00fb Merge "OutputPage: replace legacy link type "shortcut icon" with standard" 2022-08-19 18:08:00 +00:00
jenkins-bot
39d288b61f Merge "Allow parsoid-compatible parser tests to select a subset of parsoid modes" 2022-08-19 17:58:13 +00:00
Arlo Breault
30e2128fb6 Set skipMode to something other than legacy
At present, $validTestModes[0] is 'legacy' when running
`composer phpunit -- --testsuite=parsertests`

It seems like any other value would be preferable since we're in
ParsoidTestFileSuite.php and we want the isLegacy check in
getTestSkipMessage to be false.

Introduced in a5a04f5

Change-Id: I94699e5cc6dcc7e371c4020faa4dfbf2fa335704
2022-08-19 13:37:34 -04:00
jenkins-bot
317da21dd9 Merge "filerepo: Allow shared caching of ForeignAPIRepo responses across wikis" 2022-08-19 16:42:35 +00:00
jenkins-bot
c17df8ff78 Merge "tests/api: Add TestUser::getAuthority and use it" 2022-08-19 16:35:47 +00:00
jenkins-bot
706d479075 Merge "tests/api: Use MediaWikiIntegrationTestCase::editPage for edits" 2022-08-19 16:35:40 +00:00
jenkins-bot
1ec9f4c6ed Merge "Deprecate the use of magic variables whose names contain a colon" 2022-08-19 14:31:03 +00:00
jenkins-bot
ed4f900e66 Merge "Make RefreshLinksJobs actually clear replica snapshots" 2022-08-19 12:24:20 +00:00
R4356th
2cd7e5aabb OutputPage: replace legacy link type "shortcut icon" with standard
Bug: T19980
Change-Id: I6ed3417fc9efa9bab9533f155dcfe23a78d19e3b
2022-08-19 18:04:24 +06:00
Aaron Schulz
2afc2b5b5f Make RefreshLinksJobs actually clear replica snapshots
The comment alluded to this but it didn't actually happen

Change-Id: I2d9bbb91a40efe7ddc7f00881e47ed57e6de19f1
2022-08-19 12:03:52 +00:00
Máté Szabó
d232d3da61 filerepo: Allow shared caching of ForeignAPIRepo responses across wikis
Currently, ForeignAPIRepo caches image metadata and siteinfo in
memcached, with the keys being local to the client wiki. This can result
in a low hit ratio if the same ForeignAPIRepo is shared between multiple
wikis. Since the cache keys for image metadata and site info already
vary on the foreign URL being fetched, it should be possible to make
these cache keys global and thereby allow reusing them across wikis that
share the same file repo configuration.

This is similar to what ForeignDBRepo/ForeignDBFile do already, although
note that for those classes the getSharedCacheKey() calls are not in
their own source, but inherited from LocalRepo/LocalFile.

Bug: T285271
Change-Id: Iaa20a27893e9748cb42fa3a3beb7cd4669b461cb
2022-08-19 14:01:10 +02:00
jenkins-bot
b829957318 Merge "Resources.php: Add .icons-interactions dependency" 2022-08-19 08:31:06 +00:00
samtar
7ed7c63571
Resources.php: Add .icons-interactions dependency
Add 'oojs-ui.styles.icons-interactions' dependency to
mediawiki.special.changeslist.watchlistexpiry in Resources.php

Bug: T276191
Change-Id: Ia1520b65d7685cd388f12faaa850a399fab6daac
2022-08-19 08:57:32 +01:00
Translation updater bot
a5700dfbda Localisation updates from https://translatewiki.net.
Change-Id: I444579ac007ec35e45e19ddf079936a3df21fac3
2022-08-19 07:29:49 +00:00
jenkins-bot
5aed5502c4 Merge "Revert "Set initial-zoom via JavaScript to avoid font-scaling issue in iPad"" 2022-08-19 03:18:00 +00:00
Legoktm
0c8a4b8f8e Revert "Set initial-zoom via JavaScript to avoid font-scaling issue in iPad"
This reverts commit e794fdd90e.

Reason for revert: caused any anchor to scroll to the top of the page.

Bug: T315620
Change-Id: I731ebbb00d7262ee4c33f75aaa4af3549e574b3d
2022-08-19 02:58:14 +00:00
Tim Starling
3cabe8bf8a SqlBagOStuff: Fix modtoken comparison
String offsets in MariaDB are 1-based, except in "Oracle compatible"
mode. SUBSTR(modtoken,0,13) was always the empty string and so the
modtoken comparison was always true. I was able to reproduce a failure
to reach consistency using ring replication.

Add regression test.

Bug: T315271
Change-Id: I74e54e8aba44505dd04426c12d91a9ea0de17f22
2022-08-19 11:11:58 +10:00
jenkins-bot
05a9b04d2d Merge "tests/parser/TestMode: move parser test helper class to parsoid library" 2022-08-18 22:01:36 +00:00
Derick Alangi
354535977e SqlBagOStuff: Migrate from IDatabase::select to SelectQueryBuilder
Bug: T311866
Change-Id: I0101a0d5f4008bfd79e823248bb625e15f7135bd
2022-08-18 19:36:54 +01:00
Derick Alangi
b6b335b183 tests: Migrate MediaWiki settings to overrideConfig...()
Also, make use of MainConfigNames constants where necessary like in
HashConfig map.

NOTE: Since `wgConf` is not a setting, keep using `setMwGlobals()`
  in this case.

Change-Id: I8d0c718fd02043835fe122d675cce3d759b30330
2022-08-18 17:48:03 +01:00
jenkins-bot
b8a0820ddf Merge "Use ::class to refer to class names" 2022-08-18 16:02:30 +00:00
jenkins-bot
e503c6b8cb Merge "Set initial-zoom via JavaScript to avoid font-scaling issue in iPad" 2022-08-18 14:12:35 +00:00
jenkins-bot
d3408699b7 Merge "Revert "ParserTestRuner: Init 'selser' to prevent 'Undefined index' warnings"" 2022-08-18 14:09:35 +00:00
C. Scott Ananian
02d13afa7e Allow parsoid-compatible parser tests to select a subset of parsoid modes
This lets you tag a parser test file with:

  !! options
  parsoid-compatible=wt2html
  !! end

to indicate that you want to run only the parsoid wt2html tests on
this file.  This is especially useful when gradually adding
integrated-mode parsoid output clauses to an existing test file.

Change-Id: Id870d23da3c127fea61d6b8ab98200c0e4c661e2
2022-08-18 14:06:08 +00:00
C. Scott Ananian
6f612678d0 Deprecate the use of magic variables whose names contain a colon
This reduces ambiguity between a parser function invocation (where the
colon separates the first argument) and a magic variable invocation
(where the colon is considered part of the magic variable name).

There shouldn't actually be any of these out in the wild, but it is
safer to deprecate than to assume.

Bug: T236813
Change-Id: I69e4f3b794f22a69efb98f5815df61199d077048
2022-08-18 13:39:00 +00:00
jenkins-bot
bf062bf169 Merge "SpecialPages: "related" references updated to "associated"" 2022-08-18 12:33:58 +00:00
Moh'd Khier Abualruz
7b0ad878bf SpecialPages: "related" references updated to "associated"
Follow up to 5fa2b6362

* Change the SpecialPage::getRelatedNavigationLinks to
be SpecialPage::getAssociatedNavigationLinks

Bug: T313349
Change-Id: I054b391f229b7608d79589d0bc09ad51257a4c1a
2022-08-18 13:46:06 +02:00
jenkins-bot
e5cb911e2a Merge "Rephrase tooltip-t-permalink" 2022-08-18 09:03:07 +00:00
jenkins-bot
3ba3c374b3 Merge "Fix the autonym of the Iñupiaq language" 2022-08-18 08:47:32 +00:00
Translation updater bot
e1e74dd270 Localisation updates from https://translatewiki.net.
Change-Id: I05bed77ef9f94e316f3189451b348d5098b0d08e
2022-08-18 08:14:34 +02:00
jenkins-bot
8593f94776 Merge "DeleteBatch: Clarify sleep is in seconds" 2022-08-18 05:44:28 +00:00
Reedy
257d749d84 DeleteBatch: Clarify sleep is in seconds
Change-Id: Ie6d4ae09fac03d979962b9dacb96d6946cc9784e
2022-08-18 00:58:18 +01:00
jenkins-bot
00a5a4d57a Merge "Update OOUI to v0.44.3" 2022-08-17 22:43:49 +00:00