Commit graph

106571 commits

Author SHA1 Message Date
jenkins-bot
0d675c382b Merge "rdbms: mark getServerConnection() as @internal" 2021-10-23 03:09:30 +00:00
Timo Tijhof
58fe6328cc docker: Update dev images to newer version with Composer 2.x
Ref https://gitlab.wikimedia.org/releng/dev-images/-/merge_requests/7.

Bug: T279857
Change-Id: Ie113f7a6b70edecbdabe1774f79e88ebd8f92151
2021-10-23 02:21:33 +01:00
jenkins-bot
743dc72f25 Merge "Hide deprecation on tests for ParserOutput::addWarning" 2021-10-22 21:53:17 +00:00
Alexander Vorwerk
bd13a42535 build: Update mediawiki-codesniffer from v37.0.0 to v38.0.0
Change-Id: Iff096d3789b8c261aa47fb41d6f450a3bda7ce6a
2021-10-22 22:43:16 +02:00
jenkins-bot
bcb797a5be Merge "CheckStorage: Annotate importRevision $revision parameter as being WikiRevision" 2021-10-22 18:30:11 +00:00
jenkins-bot
4796ff7c51 Merge "CreditsAction: Minor code tweaks" 2021-10-22 17:14:01 +00:00
Translation updater bot
ad94e00dba Localisation updates from https://translatewiki.net.
Change-Id: I7a201c56923dbd29f488a506efe1d76032c6f01e
2021-10-22 08:01:18 +02:00
James D. Forrester
c386f2c5a7 RELEASE-NOTES-1.37: Note that we require PHP 7.4.2+ and not PHP 8.0
Bug: T289590
Change-Id: I59b3de0e9a753d41835d1d9b562848b9c9fb2f46
2021-10-21 15:56:36 -07:00
Reedy
f5b5fa06ce RELEASE-NOTES-1.37: Sync up with 1.37.0-rc.0
Change-Id: I090fce46d248104aff2c0de6f7c55fa67bebdebc
2021-10-21 22:16:04 +01:00
Reedy
c5134d9c39 CheckStorage: Annotate importRevision $revision parameter as being WikiRevision
Change-Id: Ic07cd955a3a25a70db2a1589a57d19a592813986
2021-10-21 21:03:35 +01:00
Reedy
cf90246692 CreditsAction: Minor code tweaks
Change-Id: Ie3bff75102e01ed6e174ee21541b598b746a99dd
2021-10-21 20:22:35 +01:00
Bartosz Dziewoński
2254eba8aa Fix PHP warning with some inputs to wfCgiToArray()
Also add some more tests for it.

Bug: T294017
Change-Id: I8a4faa42c2219ce415fbb82a248b07a28b59157d
2021-10-21 20:49:34 +02:00
jenkins-bot
c0f12afe1e Merge "Deprecate replaced PageArchive methods" 2021-10-21 17:26:07 +00:00
jenkins-bot
33c556d1fb Merge "Fix checkStorage.php" 2021-10-21 17:22:55 +00:00
jenkins-bot
ca893ec1c9 Merge "Make live preview work when section=new&nosummary=1" 2021-10-21 16:53:55 +00:00
Matěj Suchánek
61289e0290 Deprecate replaced PageArchive methods
Change-Id: I07fe12e6e96c6a27b66655f179c09f624180daa3
2021-10-21 18:28:03 +02:00
Universal Omega
328257bf72 Fix checkStorage.php
Fixes checkStorage.php --fix

* importRevision() is required to be public for WikiImporter::setRevisionCallback()
* $revision must not be passed by reference
* $importer is unused, so removed

Change-Id: I53ef3825308af3b6e632cb88b9a3eb2f40ab5239
2021-10-21 06:57:39 +00:00
Translation updater bot
9a7d9c1e80 Localisation updates from https://translatewiki.net.
Change-Id: Idb158dfb010296a2e7b59a639d34ef6c4561e422
2021-10-21 08:09:28 +02:00
jenkins-bot
51644fcc78 Merge "ApiDelete: pass in page title to 'deleted-scheduled' message" 2021-10-21 00:45:39 +00:00
jenkins-bot
0ce8ac7f7e Merge "tests: Call parent tearDown at end of teardown in BackupDumperPageTest" 2021-10-21 00:28:48 +00:00
Petr Pchelko
cee52db33d Type-hint LinkTarget
These type-hints are definitely correct, but it's still
a relatively risky patch cause of how messy Title is.
I did some manual review of Title, all tests are passing,
but even still if this is approved, I'll add it to phab
as a risky deployment.

Change-Id: I1ed98ddae30066956e7adbde6780d6bab54dec04
2021-10-21 00:12:51 +00:00
jenkins-bot
1a4244ec34 Merge "Promote 4 SkinTemplate methods to Skin, add getAction" 2021-10-20 23:13:18 +00:00
jenkins-bot
40d14fee7d Merge "Change return format of DeletePage entrypoints" 2021-10-20 22:18:33 +00:00
MusikAnimal
7bdb12646f ApiDelete: pass in page title to 'deleted-scheduled' message
Change-Id: I894f8d51d60de0f8f3f078fc00be07dd4a347d7b
2021-10-20 17:56:10 -04:00
Umherirrender
bac7f31b0e tests: Call parent tearDown at end of teardown in BackupDumperPageTest
Reverse order to setUp, where parent is called first

Change-Id: Ia04952b9dc3bc2c7426b66f556defacb5750240c
2021-10-20 23:20:12 +02:00
jenkins-bot
ba0eab5b0e Merge "Hard-deprecate remaining MWNamespace methods" 2021-10-20 21:15:48 +00:00
Nardog
2204a6d01a Make live preview work when section=new&nosummary=1
#wpSummaryWidget does not exist if index.php has
section=new&nosummary=1.

Bug: T293892
Change-Id: Icfff6c70b4967edd4b70affa13b7584ab356bc8b
2021-10-20 19:54:08 +00:00
jenkins-bot
b0313250e4 Merge "file: Fix nullable documentation for property, args and return types" 2021-10-20 19:49:58 +00:00
Umherirrender
b581e6d40e Hide deprecation on tests for ParserOutput::addWarning
Change-Id: Ifc5f3ef93720a944f0e0fffc1666047b46f1683b
2021-10-20 21:32:49 +02:00
Daimona Eaytoy
965f6db3c1 Change return format of DeletePage entrypoints
Instead of putting logID/false in the status' value, add getters that
can be used to retrieve this information. Also, make it return an array
of log IDs, which is easier to expand later on to account for deletion
of related pages (e.g. associated talk page).

Note: this change will be backported to 1.37.

Bug: T288758
Change-Id: I7ef64242ae0cb7018a4b1e8eb004a5563925b9a4
2021-10-20 19:26:12 +00:00
Alexander Vorwerk
ec2cd3dc37 Hard-deprecate remaining MWNamespace methods
MWNamespace has been deprecated in favor of the NamespaceInfo
service in 1.34 and should no longer be used.

All methods are unused in wikimedia-deployed extensions.

Bug: T291389
Change-Id: Ibe2069dea1af983d8fda53e734396c5a7a8b7321
2021-10-20 21:16:25 +02:00
jenkins-bot
f0123b83b5 Merge "Make ArchivedRevisionLookup a service" 2021-10-20 18:51:32 +00:00
jenkins-bot
91a9e2db75 Merge "Move methods from PageArchive to new ArchivedRevisionLookup" 2021-10-20 18:47:42 +00:00
jenkins-bot
c61a9dfd5c Merge "Do not cache private wiki completion results" 2021-10-20 18:47:36 +00:00
jenkins-bot
5680816a08 Merge "import/export: Add documentation for nullable arguments" 2021-10-20 18:47:28 +00:00
jenkins-bot
e875b742e2 Merge "HistoryBlobStub: add getLocation() to get $mOldId" 2021-10-20 18:42:25 +00:00
jenkins-bot
24373dab6b Merge "Replace Content::getParserOutput call to ContentRenderer::getParserOutput" 2021-10-20 17:56:19 +00:00
jenkins-bot
9065442e54 Merge "Don't pass nulls to CommentFormatter::formatStrings" 2021-10-20 17:51:36 +00:00
jenkins-bot
a5384e5f7f Merge "Register omitted tracking categories" 2021-10-20 17:51:26 +00:00
jenkins-bot
a42e686602 Merge "mediawiki.action.edit.preview: Use same UX as in normal diff" 2021-10-20 16:55:21 +00:00
Fomafix
b4e9c1cdf9 mediawiki.action.edit.preview: Use same UX as in normal diff
This change fixes the following differences and bugs compared to the
normal diff:

* On an empty change the API response contains no `main` in
  `response[ 0 ].compare.bodies`. Remove the previous diff and show a
  'diff-empty' message in this case.
* The header with 'currentrev' and 'yourtext' is missing. Show this
  message similar to the normal diff.

The HTML in the diff of the live preview is not exactly the same as in
the normal diff:
* The live preview has now <thead> and <tbody> elements.
* The live preview has always 4 columns.

Bug: T293307
Bug: T293597
Change-Id: Ibb4fccb74634094ffeabf6fe201257d747bb8a01
2021-10-20 14:24:22 +00:00
Umherirrender
b914247380 file: Fix nullable documentation for property, args and return types
Change documentation to null or false where the type is allowed

Change-Id: I7c9a612adabf47da8ce11265907702ad5d83699a
2021-10-20 14:23:29 +00:00
Petr Pchelko
cf4b335aaf Don't pass nulls to CommentFormatter::formatStrings
Bug: T292797
Change-Id: I00607ef2a65076a34f99d2f5fdc658e1c6e11832
2021-10-20 06:56:13 -07:00
Roman Stolar
fa5237eb48 Replace Content::getParserOutput call to ContentRenderer::getParserOutput
Bug: T287158
Change-Id: I8a13f45027e08e2d8ddefa140dd47a0c55094934
2021-10-20 12:11:24 +03:00
Translation updater bot
aa4d25ce15 Localisation updates from https://translatewiki.net.
Change-Id: I3f2f772e91197d33990f4d9685555dfe1d0a111b
2021-10-20 08:20:16 +02:00
Petr Pchelko
ac935cb758 Make SlotRecordTest a unit test
Change-Id: I4f5a4bf3703fc490c6c4de45f5a7947b7726aaa1
2021-10-19 20:31:55 -07:00
jenkins-bot
c55307829c Merge "Use correct default value when calling Status::getWikiText" 2021-10-20 02:36:11 +00:00
jenkins-bot
4454ea3b9c Merge "mediawiki.util: Improve docs with updated examples from wiki page" 2021-10-20 01:54:59 +00:00
jenkins-bot
c0844fae83 Merge "mediawiki.page.ready: Fire hook 'wikipage.indicators' with children" 2021-10-20 00:45:42 +00:00
jenkins-bot
38c3844213 Merge "resourceloader: Replace outdated references to "globalEval"" 2021-10-20 00:31:41 +00:00