Commit graph

110601 commits

Author SHA1 Message Date
Matěj Suchánek
b345cbffa0 Remove ApiQueryBase::showHiddenUsersAddBlockInfo
It has been deprecated since 1.34 and it is unused.

Change-Id: I5c879fd3bedef807181b503663b68e3c2956e120
2022-06-17 09:35:15 +02:00
jenkins-bot
bd87be3650 Merge "Remove LinkCache::forUpdate and clean up the constructor" 2022-06-16 21:22:27 +00:00
jenkins-bot
9080cac03a Merge "Remove ApiStashEdit::parseAndStash" 2022-06-16 21:20:13 +00:00
jenkins-bot
71e8cfdfdf Merge "docs: Use ::class for class name resolution in demo code" 2022-06-16 21:18:34 +00:00
jenkins-bot
bd6800ba21 Merge "rdbms: add Database::flushSession() $mode safety parameter" 2022-06-16 21:17:22 +00:00
jenkins-bot
87c945ce60 Merge "updateRestrictions: add missing \n to output call" 2022-06-16 20:41:14 +00:00
jenkins-bot
b66fddf583 Merge "page: Change visibility of some WikiPage members to protected" 2022-06-16 20:29:11 +00:00
Umherirrender
28b8cad9d4 docs: Use ::class for class name resolution in demo code
Change-Id: I7282a2bbf7838e55df71d61cae5ce25f740b412c
2022-06-16 22:17:16 +02:00
jenkins-bot
f8432192d4 Merge "languages: Explicit init the arrays in MessagesHyw.php" 2022-06-16 20:03:13 +00:00
Aaron Schulz
3ce1067594 rdbms: add Database::flushSession() $mode safety parameter
This matches the begin(), commit(), and rollback() methods.

Change-Id: I3e66582052b2f42b2260bcf02b102caea8986f0a
2022-06-16 19:54:35 +00:00
jenkins-bot
b0a27042c9 Merge "Remove Title::isNamespaceProtected" 2022-06-16 19:49:02 +00:00
jenkins-bot
439f89721d Merge "Configure caching parsoid output per wiki based on threshold" 2022-06-16 19:16:31 +00:00
Alexander Vorwerk
c58271299d updateRestrictions: add missing \n to output call
Change-Id: Ibf73c32061f8564eb7b4bfb58659613c26c2c05d
2022-06-16 19:10:58 +00:00
Matěj Suchánek
1c48194d4e Remove LinkCache::forUpdate and clean up the constructor
Passing null to the constructor as well as the LinkCache::forUpdate
method have been deprecated since 1.34. Since this is a service
class, it should only be instantiated directly by the service
container anyways.

Change-Id: Id15ccf2af6ef59e7052ea88548464e7481ca73d4
2022-06-16 20:17:54 +02:00
Matěj Suchánek
e670688adf Remove ApiStashEdit::parseAndStash
It has been deprecated since 1.34 and it is unused.

Change-Id: I49bdeec5a0fae2f9057e42f6cf5122cf09663480
2022-06-16 20:05:21 +02:00
Matěj Suchánek
8096e6a6e3 Remove Title::isNamespaceProtected
It has been deprecated since 1.34 and it is unused.

Change-Id: I3f375a8d3aceb3e31c27532c28b190c41e628edf
2022-06-16 19:08:34 +02:00
Matěj Suchánek
b7dd016dbc Remove LogFormatter::styleRestricedElement
It's been deprecated since 1.37 and it is unused.

Change-Id: Ibc7d722601b70c4a599d9b235b5d5a2fe1b5328a
2022-06-16 18:00:04 +02:00
jenkins-bot
e2c65670c6 Merge "Bugfix: Add padding to confirmable links when hiding the rollback button" 2022-06-16 15:09:26 +00:00
jenkins-bot
1340c086e1 Merge "Replace deprecated calls ParserOptions::newCanonical( 'canonical' )" 2022-06-16 14:43:22 +00:00
jenkins-bot
052a25aec7 Merge "resourceloader: Don't raise notice when the logo wordmark is false" 2022-06-16 13:41:15 +00:00
Derick Alangi
d01e3ed739 Replace deprecated calls ParserOptions::newCanonical( 'canonical' )
This is a quick find & replace of calls to the deprecated method
ParserOptions::newCanonical() when the context is the string literal
'canonical'. This can be safely replaced by called newFromAnon().

Change-Id: If7bb68459b11e0c5f5de188f10fdae85ad1a78bf
2022-06-16 14:22:24 +01:00
Umherirrender
dac7708655 languages: Explicit init the arrays in MessagesHyw.php
This makes it also easier to add new entries

Also readd @phpcs-require-sorted-array,
it now works as previous expected (follow 514d941)

Change-Id: I5d9f61c2de51ca8125a601377f4df041ab954f94
2022-06-16 15:11:23 +02:00
Derick Alangi
40c1f56dcc page: Change visibility of some WikiPage members to protected
After surveying consumers of these members, apart from the WikiPage
class itself that uses it internally and FlagabbleWikiPage in the
FlaggedRevs ext which subclasses WikiPage, I don't see any other
consumers of this member.

So it can be safely marked as protected as we're sure nothing is
consuming this publicly.
See: https://codesearch.wmcloud.org/search/?q=%5C-%5C%3EmDataLoaded&i=nope&files=&excludeFiles=&repos=,
https://codesearch.wmcloud.org/search/?q=%5C-%5C%3EmPreparedEdit&i=nope&files=&excludeFiles=&repos=,
https://codesearch.wmcloud.org/search/?q=%5C-%5C%3EmLatest&i=nope&files=&excludeFiles=&repos=

NOTE: The tests in ArticleTest.php was removed as the WikiPage::mLatest
      is now a protected member and can't be accessed publicly.

TODO: The last of it's kind is WikiPage::mTitle which will be removed in
      a later patch and that one will be quite bit and tricky.

Change-Id: I78c5b4c31090fe2e01b4cc922ec77131be3223dc
2022-06-16 13:21:34 +01:00
Derick Alangi
270699ec34 Configure caching parsoid output per wiki based on threshold
Cache the parsoid outputs only if a certain time is exceeded on
parse and consider the parse operation within this time limit as
not expensive per that wiki and not cache the parsoid output at all.

Bug: T308588
Change-Id: I7793b77feab13400ccd04343e7878ad701f5e6a7
2022-06-16 11:42:06 +01:00
Translation updater bot
b654f3827b Localisation updates from https://translatewiki.net.
Change-Id: I18769ca6524efe5a842b222d188187358cafe6f0
2022-06-16 09:11:41 +02:00
Tim Starling
a5b44d60f1 resourceloader: Don't raise notice when the logo wordmark is false
Fix notice on PHP 7.4+ when the wordmark is false. It is false on the
beta cluster and Mustache doesn't mind if it is false. Update docs.

Use !empty($x) as a shortcut for isset($x) && $x in two nearby places.

Bug: T310767
Change-Id: Ie33f8edf075f1216881428ec6aa29cae1dac4e64
2022-06-16 14:10:40 +10:00
Tim Starling
514d941a73 Add structure test for Messages*.php files
* Verify that the fallback chain is not too long
* Add some other obvious tests and fix the files that fail them.

Bug: T310532
Change-Id: I00f3aed35e756a3985f9f16af6d4721e2b61d3f6
2022-06-16 03:09:39 +00:00
jenkins-bot
01beedea28 Merge "ApiParse: When querying TOC sections, also return whether it should be hidden" 2022-06-15 20:38:35 +00:00
jenkins-bot
df99d563be Merge "EditPage: Set sections for new skin TOC when previewing" 2022-06-15 20:38:27 +00:00
jenkins-bot
4082d5e8ff Merge "i18n/en.json: Revert postedit-confirmation-restored change" 2022-06-15 17:11:34 +00:00
jenkins-bot
d7202df497 Merge "Non-responsive skins should zoom out by default" 2022-06-15 16:20:17 +00:00
jenkins-bot
2feb6c2e65 Merge "Transform.js tests: soften one more schema version check." 2022-06-15 16:19:04 +00:00
Jon Robson
f5afb5c48c Non-responsive skins should zoom out by default
Bug: T306910
Bug: T308979
Change-Id: Ie67af332cec2c6785addf6c3c6e8b9e50d79b570
2022-06-15 16:02:16 +00:00
jenkins-bot
68972c30d2 Merge "ParsoidHandler: add backwards-compat code for parsoid extension." 2022-06-15 15:42:13 +00:00
daniel
d3d33ed41b ParsoidHandler: add backwards-compat code for parsoid extension.
This restores some functionality to ParsoidHandle that was originally
removed when the class was moved from the parsoid extension into core:

* assertDomainIsCorrect() is restored, because the endpoints in the
parsoid extension still need to verify that the {domain} parameter is
correct, to defend against cache pollution.

* getXYZEndpoint methods were added to allow subclasses to override
the paths used when redirecting to sublin endpoints.

Needed-By: Idfb15e0b638386a026cbb8647f58a3a781484cdd
Change-Id: Iaa02d8eda1eea9bf95b4c8d00b26464875136ca2
2022-06-15 16:31:10 +02:00
samtar
8acd652a06
i18n/en.json: Revert postedit-confirmation-restored change
Revert the key `postedit-confirmation-restored` back to "restored"

Bug: T310708
Change-Id: I18b07c328885b5356418c9467b3c0010cca6ff74
2022-06-15 15:30:15 +01:00
jenkins-bot
4d1336db2b Merge "Add rate limiting to ParsoidHTMLHelper" 2022-06-15 12:39:48 +00:00
daniel
6955380fbe Add rate limiting to ParsoidHTMLHelper
Bug: T267991
Change-Id: I52a83e7d3bdb0bcde59160e2d193f06908fda3d4
2022-06-15 13:40:56 +02:00
Ed Sanders
8522c0944a LoginSignupSpecialPage: Document used message keys
Bug: T224429
Change-Id: I14d98d8bfd92fee32a5577b37a78c33f2151388f
2022-06-15 12:36:45 +01:00
jenkins-bot
48e067edf3 Merge "Don't show title as missing when it's known" 2022-06-15 09:16:59 +00:00
Translation updater bot
9b781c5d9f Localisation updates from https://translatewiki.net.
Change-Id: I2ec49adfaf716797a4ab1396733414f46b00d4f1
2022-06-15 08:24:58 +02:00
Tim Starling
a01aa705a9 MessageCache: Increase the MapCacheLRU size
Quick fix for linked bug. Regression testing will be in a separate
commit.

Bug: T310532
Change-Id: Ibc0997c87be194e0a8a92a726de07f4dc786cd47
2022-06-15 01:04:06 +00:00
jenkins-bot
44192e56e8 Merge "Drop limitreport-ppgeneratednodes message" 2022-06-14 21:59:58 +00:00
jenkins-bot
7388fa7ffc Merge "Improve edit API documentation for 'sectiontitle' and 'summary'" 2022-06-14 21:55:40 +00:00
Amir Sarabadani
d1d17908d2 Drop limitreport-ppgeneratednodes message
Unused since Id48effcba48d1ae1621a4e17a70e65b73f2473b7

Bug: T224429
Change-Id: I28fd286442bdbeaae0c666b709155dbda24d63c6
2022-06-14 20:32:26 +00:00
Arlo Breault
2dbef8d9f0 Transform.js tests: soften one more schema version check.
Follow up to I6d7db6a05c48de8a57f83e4c8af38ab50271297a

Change-Id: I317ce587e62f9e94bbafbdabac64156237c4f1e3
2022-06-14 15:09:47 -04:00
Bartosz Dziewoński
54de7e388c Improve edit API documentation for 'sectiontitle' and 'summary'
Change-Id: I5501460768aec75816d74554dd41c9bebc6d7bdd
2022-06-14 20:51:40 +02:00
James D. Forrester
f25d7d45da API: Use arrays when writing multiple HTML.php classes
Change-Id: I9e0e261c5577ca3506004e31e46aacfd05a84130
2022-06-14 18:09:43 +00:00
jenkins-bot
cf803a6d44 Merge "SpecialRecentChanges: Drop old rcfilters-container and rcfilters-head classes" 2022-06-14 17:05:37 +00:00
jenkins-bot
65572907d2 Merge "Transform.js tests: soften schema version check." 2022-06-14 16:31:48 +00:00