Commit graph

91673 commits

Author SHA1 Message Date
Petr Pchelko
56c21d059c Remove usages of Title::get{Previous,Next}RevisionId
The methods were deprecated since 1.34.

Change-Id: Ib95ac1ba36a8ffd6b71ed67642d8abb2e3538bae
2019-09-13 09:49:13 -07:00
jenkins-bot
e19e6bfabc Merge "output: Narrow Title type hint to LinkTarget" 2019-09-13 13:31:24 +00:00
jenkins-bot
a48646b3ed Merge "Reset all logging tables together" 2019-09-13 12:06:20 +00:00
jenkins-bot
b8c23cf81e Merge "Improve MediaWikiIntegrationTestCase::resetDB()" 2019-09-13 12:00:51 +00:00
Adam Wight
1c5d140761 Reset all logging tables together
For example, leftover cruft in `log_search` will cause spurious
associated_rev links between unrelated revisions and log entries.

Bug: T227849
Change-Id: Ie344522229e4142f2c61a267b4d693051b813236
2019-09-13 13:03:07 +02:00
Lucas Werkmeister
74fbb2c5c4 Improve MediaWikiIntegrationTestCase::resetDB()
Test the intersection of $tablesUsed with each set of tables
separately and only update it afterwards.  Without this fix, overlaps
between the table groups would cause additional groups to be pulled in
unnecessarily.

Change-Id: I1b2a6eb47e061dee8a27fb4779809b4684c05104
2019-09-13 13:01:41 +02:00
Thiemo Kreuz
1fa42d25ec output: Narrow Title type hint to LinkTarget
The code never needs a full Title object, but only what the (more
narrow) interface provides.

Change-Id: I3a7aa35c7e90fffaf37f4cb444549237c20e0bd9
2019-09-13 11:34:33 +02:00
Translation updater bot
637ba6c7d0 Localisation updates from https://translatewiki.net.
Change-Id: Ieebc40ae9287950ee4ce61612e982d6e307bb2b3
2019-09-13 09:30:02 +02:00
jenkins-bot
a09f8aa639 Merge "filebackend: Use HTTPFileStreamer::send404Message() in caller instead" 2019-09-13 02:33:15 +00:00
jenkins-bot
8ac7621625 Merge "Fix param docs and passed type of UserMailer::sendWithPear" 2019-09-12 23:01:43 +00:00
jenkins-bot
5d1b19ed47 Merge "Avoid Database::tableName in WikiExporter" 2019-09-12 22:36:03 +00:00
jenkins-bot
371f758d9e Merge "Fix spaces in doc comments" 2019-09-12 22:35:56 +00:00
jenkins-bot
e81b3603dc Merge "Make DefaultPreferencesFactory depend on PermissionManager." 2019-09-12 21:03:30 +00:00
Umherirrender
6c64f01c23 Fix spaces in doc comments
Change-Id: Ic404324003d40569d0ddb697c8b1bcf95f28e2ec
2019-09-12 21:45:18 +02:00
Umherirrender
5a4d30ed09 Avoid Database::tableName in WikiExporter
Using * in select is not the prefered way.
List all needed columns to make the use visible and to avoid issues when
new fields gets added with big data.
As each column name is unique there is no need to get the table name for
prefixing the columns

The following columns no longer selected:
- log_user_text -> not used due to use of ActorMigration class
- log_actor -> Add by ActorMigration class
- log_comment_id -> Added by CommentStore
- log_page -> Unused in the writer, the ns/title pair is used instead

Move the arrays out of the loop, because there are not depending on
values changing in the loop

Change-Id: I140641b7ed75bc2b8db2e7612020d668f1be663b
2019-09-12 20:06:07 +02:00
Umherirrender
4b156d619f Fix param docs and passed type of UserMailer::sendWithPear
Mail::send accepts mixed for recipients and only array for headers
The documentation for recipients allows string with comma-separated list
or a string array
https://github.com/pear/Mail/blob/master/Mail/mail.php#L115-L119

Change-Id: Ia8269e91a7dcfe09d41bd03f8830b83f28812564
2019-09-12 20:00:43 +02:00
jenkins-bot
7d54426c37 Merge "mw.ForeignApi: don’t set origin for same-origin requests" 2019-09-12 17:34:37 +00:00
jenkins-bot
7c06bc0278 Merge "Resources: Consistently use base paths without trailing '/'" 2019-09-12 17:34:27 +00:00
Derick Alangi
2d035d713b StreamFile: Merge duplicate switch cases 'jpg' and 'jpeg'
Change-Id: I51d233e80c4b0cebc269b54629582d4cf76e186f
2019-09-12 14:29:40 +01:00
Derick Alangi
bf25b795ea filebackend: Use HTTPFileStreamer::send404Message() in caller instead
Replaced usage of StreamFile::STEAM_HEADLESS (now making it unused) by
HTTPFileStreamer::STREAM_HEADLESS. Also, deprecated these unused constants.
Searched around and found nothing and CS also says so too;

https://codesearch.wmflabs.org/search/?q=StreamFile%3A%3A(STREAM_ALLOW_OB%7CSTREAM_HEADLESS)&i=nope&files=&repos=

Change-Id: Ia3fc2cf072fa2fddb910c64a547d12cb243290d5
2019-09-12 14:09:39 +01:00
Fomafix
f01da1e298 Resources: Consistently use base paths without trailing '/'
Change-Id: Iebaf740f9367a34dc29a9312bccd54f92f0c66f2
2019-09-12 15:08:28 +02:00
jenkins-bot
1af7f36b4f Merge "Replace usages of deprecated User::isAllowed. Step 2." 2019-09-12 12:33:03 +00:00
jenkins-bot
f2574fd1a7 Merge "Make SpecialBlankPageTest independend from the language" 2019-09-12 12:00:06 +00:00
Thiemo Kreuz
0f4869cadc Make SpecialBlankPageTest independend from the language
I would like to argue this is best practice. This also currently blocks
https://gerrit.wikimedia.org/r/521480

Change-Id: I8477f8280038c383c35bebf559ba2b5841748821
2019-09-12 13:10:52 +02:00
Translation updater bot
d57e20f41c Localisation updates from https://translatewiki.net.
Change-Id: Ie04c47bbaa02a23e152f48a35e62f0185054ef6b
2019-09-12 08:29:35 +02:00
jenkins-bot
d79186d085 Merge "Cleanup File::purgeEverything() to use JobQueueGroup::lazyPush() in one batch" 2019-09-12 00:11:18 +00:00
jenkins-bot
5d4344b0a9 Merge "Fix XMP parser errors due to trailing nullchar" 2019-09-11 23:56:51 +00:00
Petr Pchelko
7b4eafda0d Replace usages of deprecated User::isAllowed. Step 2.
Bug: T220191
Depends-On: I509cd88355cfd0cc074f4135ec86399b4075f89f
Change-Id: I2341e6f1d108c92924620fba3c64ec090cb09918
2019-09-11 16:00:03 -07:00
Derk-Jan Hartman
9ce26a564d Fix XMP parser errors due to trailing nullchar
JPEG files can have trailing \0 chars at the end of the XMP value. Use
trim() to remove these from the string value.

Bug: T118799
Change-Id: Id4ab223ef432e5d2c0dd3b4e332320db02422700
2019-09-11 22:34:33 +00:00
Petr Pchelko
5ccb1a42c7 Make DefaultPreferencesFactory depend on PermissionManager.
Bug: T220191
Change-Id: I3f5c4340501d59b5ca63b096364b5cc8388cff80
2019-09-11 15:34:26 -07:00
Aaron Schulz
2bb26430fa Cleanup File::purgeEverything() to use JobQueueGroup::lazyPush() in one batch
Change-Id: I347de55ecca4d2779eba6a8627276b9afef48905
2019-09-11 15:09:07 -07:00
Aaron Schulz
dd99fa6e7f Cleanup LinksUpdate::invalidateProperties() to use JobQueueGroup::lazyPush() in one batch
Change-Id: I7afaf6e6c0692aad83c017660bb8fdbb8a88597a
2019-09-11 15:07:41 -07:00
Aaron Schulz
2adff7579d Cleanup field visibility and comments in CdnCacheUpdate and HTMLCacheUpdate
Change-Id: Ifbdc3e845aee9c6785c7813f6c955da4bfbe2bc8
2019-09-11 15:04:58 -07:00
Aaron Schulz
09de96eb4b Cleanup Title::touchLinks() to use JobQueueGroup::lazyPush() in one batch
Change-Id: I45f36a06cc333170f60162ee37b464865b6bdc37
2019-09-11 14:56:24 -07:00
jenkins-bot
f379b3f897 Merge "Add general messagebox (neutral) styling to shared.css" 2019-09-11 21:07:28 +00:00
Derick Alangi
aae1c8391c Title: Fix case mismatch for function/method calls
Change-Id: I278bd54818a0d143415192d17ef815d40f0c2b63
2019-09-11 20:14:48 +00:00
jenkins-bot
647477e452 Merge "mediawiki.util: Add debounce() function" 2019-09-11 19:33:40 +00:00
jenkins-bot
d788b4e884 Merge "deferred: Fix MW version number when hard deprecating to '1.34'" 2019-09-11 19:33:33 +00:00
jenkins-bot
47181c8134 Merge "jquery.color: Merge $.colorUtil back into this module" 2019-09-11 19:15:22 +00:00
jenkins-bot
58ca1dcf35 Merge "Update OOUI to v0.34.1" 2019-09-11 19:07:08 +00:00
jenkins-bot
f9242d74f8 Merge "Pass the user and request into BlockManager::getUserBlock" 2019-09-11 18:58:32 +00:00
jenkins-bot
48efe9fe8c Merge "mediawiki.special.userlogin.signup: Remove unused debounce dependency" 2019-09-11 18:52:38 +00:00
jenkins-bot
7ca1556592 Merge "mediawiki.util: Remove redundant IE8 support from addCSS()" 2019-09-11 18:42:27 +00:00
jenkins-bot
a354710aff Merge "mediawiki.util: Improve escapeId*() docs and minor optimisations" 2019-09-11 18:42:21 +00:00
Derick Alangi
d441507260 deferred: Fix MW version number when hard deprecating to '1.34'
Should be string or bool and not a float. The reason 49bbfc7 was
not triggered is because the deprecated code path is no longer being
executed in production.

Change-Id: Ieeffb8a6cc7177c52b4c54d66152c90ded1dc248
2019-09-11 19:15:43 +01:00
jenkins-bot
70e2881cec Merge "SpecialRunJobs: optional output stats and status." 2019-09-11 16:11:08 +00:00
Timo Tijhof
a682732900 mediawiki.util: Add debounce() function
Bug: T213426
Change-Id: If370b959b2617d0f506ac3ed344af8c6a667e70d
2019-09-11 14:57:48 +00:00
Lucas Werkmeister
f07b69cf13 mw.ForeignApi: don’t set origin for same-origin requests
If the foreign API has the same host as the current page (e. g. if it’s
actually the same wiki, or multiple wikis are installed under different
paths on the same host), then the browser will not send an Origin
header, and if we still set an origin parameter, then the API will
complain that the two don’t match. Detect this and unset the origin
parameter in that case.

Bug: T208601
Change-Id: Ia006f3dc3283ce3f81d4d72cbe9676a00797c4d0
2019-09-11 16:02:44 +02:00
daniel
c28609ac61 SpecialRunJobs: optional output stats and status.
This adds a parameter to SpecialRunJobs that lets it output statistics
about the jobs it has run.

The 'reached' field can be used to detect when the queue is emopty,
which is essential to know for clients that want to flush the entire
job queue, to ensure that all effects of any actions they have taken
have been processed.

More specifically, this provides a way for an external testing framework
to run all jobs after an action, so it can observe and assert the
effects of that action.

Bug: T231822
Change-Id: Ibb38490afca71efeb67300b9665951c429c19a3c
2019-09-11 14:04:29 +02:00
jenkins-bot
7e49f068f0 Merge "Add namespace filter to Special:PagesWithProp" 2019-09-11 11:59:45 +00:00