Commit graph

101125 commits

Author SHA1 Message Date
Reedy
256e6ff0d9 Revert "Wrap libxml_disable_entity_loader() calls in version constraint"
This reverts commit a4c69bde13.

Reason for revert: Needs a bit more thinking about

Bug: T268847
Change-Id: I82a7bb2a4ef15adc65717d5ba173c8f3cfb0644c
2021-01-27 16:06:38 +00:00
Lucas Werkmeister
f406c5872e Allow more calls in MockHttpTrait
Don’t fail the test immediately when createMultiClient() or
createGuzzleClient() is called – instead, return service instances that
will fail the test as soon as any method is called on them. This is a
bit friendlier for dependency injection.

Bug: T272998
Change-Id: I79f90ef028867920f6a228991eda59ed4aeadb62
2021-01-27 11:51:28 +01:00
jenkins-bot
c0c8a5fcde Merge "Account for broken media in styling" 2021-01-27 09:40:06 +00:00
Translation updater bot
c7ca85f21e Localisation updates from https://translatewiki.net.
Change-Id: I160e75a971b0d09fa1be92f07445d1fc392b4536
2021-01-27 08:32:49 +01:00
jenkins-bot
3b381b71e9 Merge "Hooks: Map dash character to underscore when generating hook names" 2021-01-27 01:14:39 +00:00
Reedy
a4c69bde13 Wrap libxml_disable_entity_loader() calls in version constraint
Bug: T268847
Change-Id: I56684ce7b39aaebe1ae76811b833bc9183bc359b
2021-01-27 00:42:31 +00:00
jenkins-bot
b8e3896b2d Merge "Update wikimedia/ip-utils from 1.0.0 to 3.0.1" 2021-01-27 00:00:14 +00:00
Reedy
abc661ab0c Update wikimedia/ip-utils from 1.0.0 to 3.0.1
Bug: T247212
Bug: T248237
Depends-On: Iaa520a50498c4d1d4514874fbe6f72aa0f76ccb8
Change-Id: I155024341e8e6b13240e37b30c31b95dc83a47e0
2021-01-26 15:14:02 -08:00
Arlo Breault
dd424cec5a Account for broken media in styling
Bug: T266149
Change-Id: I11fc7fc955656eee2a78461b509c3fee555e8613
2021-01-26 18:12:58 -05:00
mainframe98
c40f955312 Skin: Add notifications and user-menu content navigation
This allows separating notifications from personal tools.
The notifications are still inserted into the personal tools,
after the userpage, for skins using BaseTemplate, skins that
call buildPersonalUrls without the argument, skins that call
either getStructuredPersonalTools, makePersonalToolsList without
providing it personal tools or getPersonalToolsList.

Mustache skins that use data-personal are unaffected, and can
retrieve personal tools without notifications from data-user-menu
and notifications from data-notifications, both of which are in
the data-portlets array.

Notifications are manually inserted in both SkinTemplate and
SkinMustache to prevent calling buildPersonalUrls multiple times.

For backwards compatibility with user code and gadgets, the new
user-menu portlet uses the same id and classes as the personal
tools, allowing it to serve as a drop-in replacement.
Skins shouldn't output both.

Bug: T266613
Depends-On: Ib4112364c173952eb363e52756f03693a2e03512
Change-Id: Ia1451e3e802441162eecfc5b7f6a7ba2ae72f377
2021-01-26 22:33:40 +00:00
Daimona Eaytoy
8cde6fae2f Hooks: Map dash character to underscore when generating hook names
Additionally, use strtr which is more performant (suggestion by Tim
Starling).

Bug: T270852
Change-Id: Ie8c8fb603b33ff95c8f8d52f392227f147c528d8
2021-01-26 15:37:29 +00:00
Petr Pchelko
1fb76fefbb Change RevisionStoreCacheRecord callback signature
In order to convert the tests into tru unit tests.

Bug: T272669
Change-Id: I6055b43381fdcc6dcdf69e9311979db0dccdb16b
2021-01-26 15:14:35 +00:00
jenkins-bot
4dffcdd720 Merge "Handle BlobAccessException exception" 2021-01-26 14:10:26 +00:00
jenkins-bot
be62b610b0 Merge "Make vast majority of RevisionRecord tests unit." 2021-01-26 14:10:20 +00:00
jenkins-bot
0ba4588fca Merge "Special:Contributions: Pass normalized target to ContribsPager" 2021-01-26 10:57:30 +00:00
Translation updater bot
c0efb2a4c4 Localisation updates from https://translatewiki.net.
Change-Id: Ib7362145553bf2604fe00bdd9bb7d2dd3ea1cb8d
2021-01-26 08:51:40 +01:00
jenkins-bot
7b5bfc428e Merge "Upgrade wikimedia/html-formatter from 2.0.0 to 2.0.1" 2021-01-26 01:58:58 +00:00
jenkins-bot
f5ba23f9b4 Merge "objectcache: add statsd key metrics to BagOStuff classes" 2021-01-26 00:15:06 +00:00
Aaron Schulz
57325ba3bd objectcache: add statsd key metrics to BagOStuff classes
Update SQL, REST, and redis subclasses to emit call count and
payload size metrics for cache key operations. These metrics
are bucketed by cache key collection (similar to WANCache).

Bug: T235705
Change-Id: Icaa3fa1ae9c8b0f664c26ce70b7e1c4fc5f92767
2021-01-25 14:36:29 -08:00
jenkins-bot
1ef7e17dd9 Merge "rdbms: fix bogus read-only mode bug in LoadBalancer" 2021-01-25 21:33:54 +00:00
jenkins-bot
9c8a401a0a Merge "Hard deprecate CacheHelper, ICacheHelper, CachedAction, SpecialCachedPage." 2021-01-25 20:54:09 +00:00
Aaron Schulz
bebbc12f95 rdbms: fix bogus read-only mode bug in LoadBalancer
Fix "break" statement in getAnyOpenConnection() so that the method no
longer returns false in cases where an IDatabase should be returned.
The prior bug caused doWait() to return false and set "lagged replica
mode" in some cases.

Remove $open parameter from doWait() to avoid subtle bugs. All callers
either passed true or checked if the index already had a connection in
the pool themselves (in which case true would not hurt). If somehow, no
connection exists, it is better to connect and log rather than

Additional cleanups:
* Add more "lagged replica mode" debug logging
* Add READER_INDEX_NONE constant to improve readability
* Add getStreamingReplicaIndexes() method to reduce code duplication
  and to avoid replication waits on static clone servers
* Rename "connectionAttempted" field to "chronologyCallbackTriggered"
* Improve various bits of documentation

Bug: T252564
Change-Id: If24736d34c2755ca69ae10b4cc1967e7311fe400
2021-01-25 11:50:31 -08:00
jenkins-bot
0226620085 Merge "Remove unneeded @return documentation" 2021-01-25 19:46:34 +00:00
Petr Pchelko
c446e32682 Hard deprecate CacheHelper, ICacheHelper, CachedAction, SpecialCachedPage.
Bug: T249230
Depends-On: Ia2c6e93595905e6143cccede8478a6aac8dbf567
Change-Id: I749be35d784481671936c5ba037945f3b9ee2c4f
2021-01-25 13:34:31 -06:00
jenkins-bot
d491f23b90 Merge "Respect used options for ParserOptions::isSafeToCache" 2021-01-25 19:13:53 +00:00
jenkins-bot
6c7d2f8ef1 Merge "Update the converter for the Tashelhit language (shi)" 2021-01-25 19:12:16 +00:00
jenkins-bot
607c4d3910 Merge "CacheTime: remove mVersion field" 2021-01-25 19:12:05 +00:00
jenkins-bot
7aba05253b Merge "Use always filled rev_user_text on Special:MergeHistory" 2021-01-25 18:46:50 +00:00
Umherirrender
47cc4da6d7 Remove unneeded @return documentation
Change-Id: If79d2126cc1b6a6e9876a972c9560d045de42ff6
2021-01-25 19:44:27 +01:00
jenkins-bot
480ca0f2d4 Merge "Revert "message boxes: Use CSS classes adhering to class naming scheme"" 2021-01-25 17:27:49 +00:00
VolkerE
e4b3c0e8b0 Revert "message boxes: Use CSS classes adhering to class naming scheme"
This reverts commit 066e77735e.

Reason for revert: Objections brought up on ticket by Esanders are in alignmenet with own objections, that arose after initially providing this patch. We need clarification that is better addressed in new patch, reverting this.

Bug: T270796
Change-Id: Id873b3e3b7efb3003daa4986225b1fb3e7e218c8
2021-01-25 16:31:08 +00:00
Amir Aharoni
0e68b408c4 Update the converter for the Tashelhit language (shi)
The alphabets are based on what is used in
"Dictionnaire Général de la Langue Amazighe Informatisé"
by IRCAM (https://tal.ircam.ma/dglai/lexieam.php, DGLAi).

This was also requested by the community in the Tashelhit
Wikipedia Incubator.

Changes:
* Tests are enhanced to cover the whole alphabet.
* The Latin letter š is replaced with the letter c as
  the equivalent of Tifinagh letter ⵛ.
* The Tifinagh letters ⵠ and ⵒ are eliminated
  because they are not used in the Moroccan version
  of Tifinagh, as presented in the DGLAi.
* The Latin letters O, P, V are converted to the
  Tifinagh letters ⵓ, ⴱ, ⴼ, which are the same letters
  that correspond to the Latin letters U, B, and F.
* Greek Gamma and Epsilon characters are replaced with
  the corresponding characters from the Latin range.
* All the non-ASCII Latin letters are added to
  the uppercase-lowercase Latin conversion.

This is the first patch in a series to fix the most important
issues listed above. It's kept minimal to make reviewing easier.
There will be more patches to fix readability and public/private
members, and to add more tests.

Change-Id: I7134216457b12018fd187ca7200e45c1b5a67471
2021-01-25 14:40:55 +00:00
jenkins-bot
2a5dee5aa4 Merge "Don't limit .thumbborder to img" 2021-01-25 13:50:55 +00:00
Translation updater bot
54acf8af11 Localisation updates from https://translatewiki.net.
Change-Id: Idc6d16cf890eda5c407526caa0b5b584d6d91b66
2021-01-25 08:51:32 +01:00
jenkins-bot
1752f24515 Merge "Deprecate premature instantiation of services." 2021-01-25 03:24:30 +00:00
Ferran Tufan
b4be10f1a4 Use my real name in CREDITS instead of the pseudonym + update CREDITS file
Change-Id: Icaf191296e2793c2386796fb9abcbeb7e214fed4
2021-01-24 01:27:10 +00:00
jenkins-bot
562db2ee58 Merge "Migrate ipblocks to abstract schema" 2021-01-23 19:14:53 +00:00
jenkins-bot
e21c026a93 Merge "Add clearfix to upload warnings" 2021-01-23 18:37:05 +00:00
Amir Sarabadani
6e53acb7cc Migrate ipblocks to abstract schema
For MySQL/Sqlite:
 - Drop default values of ipb_timestamp and ipb_expiry as part of
   standardizing timestamp columns

For Postgres:
 - Drop foreign key on two columns as approved by the RFC
 - Set default of ipb_user
 - Make three columns not nullable to sync with MySQL
 - Change data type of two columns to BIGINT to be the same as MySQL

Bug: T230428
Bug: T164898
Bug: T42626
Change-Id: I2c5303d76c6ce059d7fef324a4521c6336c5b1f3
2021-01-23 18:21:24 +00:00
jenkins-bot
75e1ac5724 Merge "HTMLForm: Fix documentation for tryAuthorizedSubmit" 2021-01-23 02:36:44 +00:00
Ed Sanders
4660cb9be1 Add clearfix to upload warnings
The warnings sometimes contain a right-floated image

Change-Id: If9aec1d6ed942bd669c9f9e0dc6822c725d9b370
2021-01-22 23:11:37 +00:00
jenkins-bot
7511a9cad4 Merge "tests: Fix invalid @covers tags" 2021-01-22 21:50:04 +00:00
Thalia
420001adce HTMLForm: Fix documentation for tryAuthorizedSubmit
This can return any value returned by trySubmit.

Change-Id: Iaf6a69e44984585337c76f329ac491b2e69fe744
2021-01-22 21:41:22 +00:00
Arlo Breault
a0ecde4039 Don't limit .thumbborder to img
See I53cd83bab902f577ca910abf55ff15e7907dfa92 where it will applied to
other tag types.

Change-Id: I512b110770752e32256f5c28a31bdacca8e98561
2021-01-22 16:39:28 -05:00
Subramanya Sastry
0f86da8d4f ParserTests: Update error message to point to the failing test file
Change-Id: Idd5963aedffb2520153a6d99a1661c0471686008
2021-01-22 14:59:21 -06:00
Kunal Mehta
e5b85ae8f9 tests: Fix invalid @covers tags
And use the MediaWikiCoversValidator trait to ensure we don't regress.

Change-Id: I60a75eaf7b6b2606355e1f549050f7b0b8a990b9
2021-01-22 12:45:24 -08:00
jenkins-bot
86092cf073 Merge "Revert most of the changes from 16b76a4" 2021-01-22 20:08:02 +00:00
James D. Forrester
075e5d7e2a Upgrade wikimedia/html-formatter from 2.0.0 to 2.0.1
Bug: T271575
Change-Id: I9c9a28b06733f58e8a83e37d5be65a6c6d5443e7
Depends-On: Ic708d409b145866cbfd85bc69f630eed491d7941
2021-01-22 11:21:52 -08:00
Petr Pchelko
30735541f4 Make vast majority of RevisionRecord tests unit.
Change-Id: Icc94fbd7090ee5f73fc1fba353ff7c936436f76f
2021-01-22 19:04:58 +00:00
Arlo Breault
b97b86e0ea Revert most of the changes from 16b76a4
At the time, Parsoid only emitted the figcaption if a caption was
present.  So, having the border set on the figcaption was leading to
some incomplete borders on figures.

However, since I856ee962b70cef1f8d49652396ea5264e11a8ade,
that's no longer the case.  We can now switch back to displaying the
figcaption as a table-caption and don't have to rely on the hacky
`width: 1px` to have the figcaption width match the media in the figure
(see https://stackoverflow.com/a/6536025).

One problem with the 1px hack is that in T241392, TimedMediaHandler sets
the max-width of a video to 100%, which shrinks it down to that 1px.

The change in display for the figcaption necessitates a bit of trickery
to get the magnify clip in the right place.  At the time of the reverted
commit, css for the magnify clip wasn't present.

Bug: T272186
Bug: T266149
Change-Id: If283c1ab200ca1049343cdac759d7a2b78306227
2021-01-22 13:01:37 -05:00