Commit graph

79808 commits

Author SHA1 Message Date
addshore
ec5d1fd6f9 Add test for WikiPage::updateCategoryCounts
Bug: T180989
Change-Id: Iff4bb885e5d385a7b3ec6169ee9a3e1e82d7d993
2017-12-04 09:46:33 +00:00
addshore
81c156b402 Refactor test for WikiPage::doRollback
This test was not running and a comment said
it was broken.
This patch refactors the test.

Bug: T180989
Change-Id: I46b73371e5fd65860fce6cc101bad6abfa20e91d
2017-12-04 09:46:28 +00:00
addshore
6c3e67f2be WikiPage tests @covers for doDeleteArticleReal & commitRollback
Bug: T180989
Change-Id: I70dcad9d527be4d91a88a14fe9787c53a7cf7d2f
2017-12-04 09:46:23 +00:00
addshore
1ceabc0f64 Split WikiPageTest into ContentHandler & NoContentHandler tests
Follow up to Iccdcd4a4f72c8b1329d36ff2e8699ba6b23c9ae7

Bug: T180989
Change-Id: Ib37a058586c7222ffe3ee5dc5f0e134ee18f0ff7
2017-12-04 10:46:02 +01:00
addshore
f894f2ec98 Fix phpdoc for WikiPage::updateRedirectOn $redirectTitle param
Change-Id: I8e666db2a7502bd1773252aa71db47819f63f08b
2017-12-04 10:43:01 +01:00
Translation updater bot
a22c3b0762 Localisation updates from https://translatewiki.net.
Change-Id: Id5fe73a56a251d6feafca45edba583532180bd4c
2017-12-03 22:03:45 +01:00
Étienne Beaulé
653a18f683 Show protection log on every use of moveddeleted-notice
As a follow-up to T171338, the other uses of the message were ignored.
This change adds the protection log to these uses; that is, history and
image pages.

Bug: T174889
Change-Id: Ib9f22d6e06c372c4a32e77a08c846d768853bc21
2017-12-03 20:04:22 +00:00
Kunal Mehta
10f187821e .gitignore: Exclude Extension:Score generated files
Change-Id: Ic9cd0051cc8bd241b933037466a2af76d0f6a287
2017-12-03 11:02:16 +00:00
jenkins-bot
99fe1baa74 Merge "xmp: Lower severity of XMP parse failure log events" 2017-12-03 07:48:52 +00:00
Aaron Schulz
62bb392e9e Lower DatabaseMysqlBase::lock logging to INFO
Whether the lock() acquisition failing is a huge problem depends
on what the caller is doing. Let the caller do any logging it needs.

Bug: T180793
Change-Id: I3d05138d312d8b973df153bb511e69619d663c9d
2017-12-03 03:56:32 +00:00
Bryan Davis
93a38ae0ff xmp: Lower severity of XMP parse failure log events
Errors when parsing XMP information blocks broadly indicate that the
file is somehow malformed. This is generally a content issue rather than
an operational issue.

Bug: T118799
Change-Id: I3c7992343f28db75cd9ec0701c1eceebf6db2d08
2017-12-02 17:43:52 -07:00
Bartosz Dziewoński
808e45d13d Revert "Special:Preferences: Use OOjs UI" and follow-ups
The number of issues with the new interface is unacceptable and we
will not be able to fix them reasonably quickly. See subtasks of
T180538 for the list of issues, raised both by the Wikimedia community
and by WMF employees.

I should have pushed back harder against the merging of this half-baked
change with the promise that we'll fix it later. I convinced myself
that the regressions were not so noticeable and that the issues that
were pointed out will in fact be fixed by someone. Predictably,
however, regressions were bad and the only person fixing the issues
was me.

I am not going to work nights to make this page decent again within a
reasonable timeframe; I'm not sure if I'd even be able to since many
issues are problems with the design rather than the implementation. No
one else seems to be working on improving it, therefore I am reverting
the change.

On the bright side, this work has resulted in a number of improvements
to HTMLForm and Preferences code, which are not being reverted here:
<https://gerrit.wikimedia.org/r/#/q/topic:T117781>.

If anyone reattempts this, I recommend gating the new interface behind
a configuration variable and URL parameter, like we did with
$wgOOUIEditPage in the past, and testing thoroughly in production
before enabling it for everyone.

* Revert "Special:Preferences: Use OOjs UI"
  This reverts commit 486e566cfe.
* Revert "Preferences: Show preview of edit fonts in edit font selector"
  This reverts commit 6634ff729d.
* Revert "Follow-Up Iae63b6994: Add missing editfont dependency"
  This reverts commit ce42fdf151.
* Revert "Preferences: Improve visual appearance by “unboxing” sections"
  This reverts commit c9415bb005.
* Revert "Remove box-shadow from preference panels for ooui-apex"
  This reverts commit a934b82ca2.
* Revert "Preferences: Don't show the watchlist token; just link to ResetTokens"
  This reverts commit e8c9102fc7.
* Revert "mw.special.preferences: Make the "Basic information" section more compact"
  This reverts commit d48b7260f3.
* Revert "mw.special.preferences: Widen the dropdown of the "Time zone" field"
  This reverts commit afd5f1417e.

Bug: T117781
Bug: T180538
Change-Id: I44b5daea1828f71881b5bd35218f5ecb7ab7f36e
2017-12-02 22:32:08 +01:00
Translation updater bot
60a700be60 Localisation updates from https://translatewiki.net.
Change-Id: I1995cac694d9093d8356fd122b92f44e86bb643e
2017-12-02 21:59:29 +01:00
jenkins-bot
2111554271 Merge "Try to avoid bogus JobTest failures for PHP 7" 2017-12-02 20:20:30 +00:00
Albert221
8084ab66c1 Add GENDER where strings could differ
Bug: T129731
Change-Id: If1100a5c9ec4882f96237c70e5270a9aa40e6b24
2017-12-02 18:22:18 +01:00
jenkins-bot
a8a24d3da8 Merge "Fix double escaping for 'userlogin-createanother', 'userlogin-joinproject'" 2017-12-02 16:55:07 +00:00
Bartosz Dziewoński
03d2686297 Fix double escaping for 'userlogin-createanother', 'userlogin-joinproject'
Change-Id: I6773420cf656e0bf47897198251e43917e1d57c6
2017-12-02 17:14:34 +01:00
Aaron Schulz
83bf5105d8 Try to avoid bogus JobTest failures for PHP 7
Change-Id: I07b4bd796a668fef83ebb3e2824ccc608781a6e8
2017-12-02 00:36:58 +00:00
jenkins-bot
268dd365f2 Merge "objectcache: add example use case to WANObjectCache::getMultiCheckKeyTime()" 2017-12-01 22:42:34 +00:00
jenkins-bot
d965b71fbf Merge "objectcache: Fix HashBagOStuffTest test in PHP 7.1" 2017-12-01 22:30:15 +00:00
Aaron Schulz
e3b6f7ef4d objectcache: add example use case to WANObjectCache::getMultiCheckKeyTime()
Change-Id: I874070d2f770be7f9e06c381b2413f6e133418b8
2017-12-01 14:29:56 -08:00
jenkins-bot
71ba42ec36 Merge "objectcache: add WANObjectCache::getMultiCheckKeyTime method" 2017-12-01 22:14:41 +00:00
jenkins-bot
d27ed98570 Merge "build: Add PHP 7.1 to Travis CI test matrix" 2017-12-01 21:46:46 +00:00
Aaron Schulz
b29ee7a960 objectcache: add WANObjectCache::getMultiCheckKeyTime method
Change-Id: I5675fabc5aa70f72659ce02d68caae88be20e06d
2017-12-01 21:45:32 +00:00
Timo Tijhof
0eaee3ae22 build: Add PHP 7.1 to Travis CI test matrix
Looks like we've got at least one test failure at the moment
(being fixed in Ibb1a59e373740772). Let's use Travis CI to also
check if there are other failures behind it.

Change-Id: Iec9857ee04b4811e912f2f43aed1e5a9fce0a2c4
2017-12-01 13:37:22 -08:00
jenkins-bot
5405fd880e Merge "Changes for Mirandese (mwl)" 2017-12-01 21:37:20 +00:00
Timo Tijhof
7dbc5b0fe6 objectcache: Fix HashBagOStuffTest test in PHP 7.1
> There was 1 error:
>
> 1) HashBagOStuffTest::testEvictionAdd
> A non-numeric value encountered
>
> tests/phpunit/includes/libs/objectcache/HashBagOStuffTest.php:106

This warning is new in PHP 7.1, however the behaviour is not new.
This code was already not behaving as it should have. Concatenation
preceeds addition/multiplication. As such, this was producing
(int)-10 each time instead of (str)"key0" through (str)"key10".

Change-Id: Ibb1a59e373740772f02dfec77ee7ebd9d181d852
2017-12-01 13:28:36 -08:00
Translation updater bot
fa8deac6ad Localisation updates from https://translatewiki.net.
Change-Id: I67c7200d7062e685c0d3eac069f6faf70f745f25
2017-12-01 22:12:39 +01:00
MarcoAurelio
bc42544ef5 Changes for Mirandese (mwl)
* Renamed ns:-2 and added previous name as alias for backwards
  compatibility.
* Renamed NS_TEMPLATE_TALK.
* Added "utilizador/utilizadora" as alias for NS_USER for backwards
  compatibility.
* NS_MEDIAWIKI added to avoid issues.
* Renamed NS_PROJECT_TALK and added old naming as alias for backwards
  compatibility.

Author: <https://www.mediawiki.org/wiki/User:Athena_in_Wonderland>.

Bug: T180052
Change-Id: I85431339bf24520063077db49d5e9f6b2666bc23
2017-12-01 21:09:36 +00:00
jenkins-bot
bd78292e75 Merge "objectcache: Run preemptive WAN cache refreshes post-send" 2017-12-01 19:08:31 +00:00
jenkins-bot
6eb558b5e0 Merge "RCFilters: Ignore 'invert' model if there are no namespaces in saved queries" 2017-12-01 12:14:44 +00:00
jenkins-bot
ad3f83099f Merge "objectcache: fix a few documentation mistakes" 2017-12-01 10:06:10 +00:00
jenkins-bot
f28a0ccaab Merge "Cleanup WikiPageTest" 2017-12-01 10:04:19 +00:00
Aaron Schulz
73b928750c objectcache: Run preemptive WAN cache refreshes post-send
This keeps HTTP request time consistent in case of expensive keys

Change-Id: I0746fde29a6e2f27d1b92f1af599c741d5972f46
2017-12-01 08:15:26 +00:00
Aaron Schulz
976cb7035b objectcache: fix a few documentation mistakes
* Fix useInterimHoldOffCaching() description
* Mention when staleTTL and graceTTL where added

Change-Id: Iea24b77f6816251e9dac814dc57f6a44382a3cea
2017-12-01 06:16:16 +00:00
jenkins-bot
a6f465a5f4 Merge "objectcache: Add @ingroup to RedisBagOStuff" 2017-12-01 06:02:13 +00:00
jenkins-bot
4a811bd14b Merge "Use ParserOutput stateless transforms" 2017-12-01 04:20:33 +00:00
jenkins-bot
ebf65fabc4 Merge "ParserOutput: Add stateless transforms to getText()" 2017-12-01 04:16:07 +00:00
Moriel Schottlender
470ee95784 RCFilters: Ignore 'invert' model if there are no namespaces in saved queries
When comparing and when saving the query, normalize the 'invert'
state so that it represents the **effective** state of the filters.
If there are no namespaces, then 'invert' is irrelevant.

Make sure we ignore that state when it is irrelevant when we save
saved queries and when we compare the current state to a saved query.

Change-Id: If80b50c3d2b90b5116b6b0018a8d56bce2deb7c4
2017-11-30 16:42:24 -08:00
jenkins-bot
8f167abd12 Merge "Title: Use a more proper way of detecting whether interwikis are local" 2017-12-01 00:05:04 +00:00
jenkins-bot
1c7c8b2540 Merge "objectcache: Make WANObjectCache interim caching not interfere with ChronologyProtector" 2017-12-01 00:04:23 +00:00
Aaron Schulz
e90eafdf61 objectcache: Make WANObjectCache interim caching not interfere with ChronologyProtector
Also removed useless line from testLockTSE(). That would have needed
to be using $this->internalCache and those locks are freed immediately.

Bug: T180035
Change-Id: Ida1a923f779aaf8410da76643457d2200da6cb20
2017-11-30 23:54:22 +00:00
jenkins-bot
e845c67e5b Merge "Remove @defgroup from DefaultSettings.php" 2017-11-30 23:52:44 +00:00
Timo Tijhof
5c96292e9a objectcache: Add @ingroup to RedisBagOStuff
Was missing from "Cache" group, as well as from the cross-component
"Redis" group.

Change-Id: I52ebc93cf472a4acc383742e0ea5c15c5a6db537
2017-11-30 15:52:01 -08:00
Timo Tijhof
cc2401c062 Remove @defgroup from DefaultSettings.php
This renders in Doxygen as a blank page in the "Modules" sidebar,
doesn't seem to serve any purpose.

No mentions of "Globalsettings" or "Global settings" elsewhere
in the repository.

Change-Id: I2c03b4190c899f2acff400d63bbd3df09f8d49d1
2017-11-30 15:44:35 -08:00
Chad Horohoe
e7c86d8537 Remove some dumb headers with my name in it
Change-Id: Ib34b623b47fb92f1383bc5c55c50a16dd6d49abd
2017-11-30 15:39:46 -08:00
jenkins-bot
929072a0c2 Merge "resourceloader: Remove deprecated minifier config vars" 2017-11-30 23:32:51 +00:00
Max Semenik
4d8b064fae Title: Use a more proper way of detecting whether interwikis are local
Bug: T181575
Change-Id: Ifcfe609ce01b174120b81b8c0bf82c4ed6077641
2017-11-30 23:32:50 +00:00
jenkins-bot
71139c04f5 Merge "Make ChronologyProtector actually use cpPosTime cookies" 2017-11-30 23:30:55 +00:00
Timo Tijhof
10a126ce1b resourceloader: Remove deprecated minifier config vars
Unused, their values have been hard-coded since 1.27.
No uses anywhere in Wikimedia Git, besides their definition
in this file.

Change-Id: I6689274d0ad028e2c468560816ab753b345048e9
2017-11-30 23:20:06 +00:00