Commit graph

85173 commits

Author SHA1 Message Date
Aryeh Gregor
8435e0907b Clean up ApiLoginTest
Change-Id: Icd77f8a5ee0c26cfbd3cc8f220412cfa1bf49d60
2018-10-09 20:04:58 +03:00
Translation updater bot
936b958cb9 Localisation updates from https://translatewiki.net.
Change-Id: I37d7b1dfa4bbe393b32d62f8f8ac564ebb24d149
2018-10-07 21:55:00 +02:00
Translation updater bot
536e575288 Localisation updates from https://translatewiki.net.
Change-Id: Ib87a638392b5f4d20ce69a0af2895692f11197d4
2018-10-06 21:54:18 +02:00
jhsoby
1137ccafc1 Fix numerals for Saraiki
Change numerals from Persian numerals to
Eastern Arabic numerals.

Bug: T202943
Change-Id: I9ef7c18d40b9aa3f1c3b3db7407d3f61feb7fd1d
2018-10-06 17:42:14 +03:00
jenkins-bot
866831f2ef Merge "messagecache: use MergeableUpdate for the deferred replace() update" 2018-10-06 03:21:47 +00:00
jenkins-bot
098e23fb9d Merge "Add link to protect log to action=info" 2018-10-06 00:09:41 +00:00
jenkins-bot
ea9fd67a7b Merge "Remove trailing spaces from IP addr in Special:DeletedContributions" 2018-10-05 23:26:26 +00:00
Alex Ezell
613e269920 Replace Media namespace redirects with File namespace
If a user creates a redirect that goes to a [[Media:example.jpg]]
page, then an exception is thrown because NS_MEDIA is a virtual
namespace. This change catches this case and changes the namespace
to an NS_FILE namespace and the redirect works correctly. This
change only happens when we are dealing with a redirect so other
uses of the NS_MEDIA namespace shouldn't be affected.

Bug: T203942
Change-Id: Ia744059650e16510732a65d51b138b11cbd43eb4
2018-10-05 18:04:24 -04:00
Aaron Schulz
59242afaa7 messagecache: use MergeableUpdate for the deferred replace() update
This combines the load loop for multiple messages for a language code.

Bug: T203925
Bug: T193271
Change-Id: Ie5e1e83d6740344b7ca641c99fb3bd4ad5718492
2018-10-05 20:14:41 +00:00
Translation updater bot
150e3bf460 Localisation updates from https://translatewiki.net.
Change-Id: I16181fad87c2d0afe3c43188c9f7807b6a953698
2018-10-05 21:56:02 +02:00
jenkins-bot
81cbe34e4d Merge "UIDGenerator: Remove the clock skew problem" 2018-10-05 19:29:40 +00:00
jenkins-bot
6da08c3c5b Merge "Write Latin and other scripts with captial letter" 2018-10-05 19:28:48 +00:00
jenkins-bot
a847221f07 Merge "search: Fix DYM typos in widget" 2018-10-05 19:03:26 +00:00
Fomafix
5632815976 Write Latin and other scripts with captial letter
Change-Id: I16c660e54191b63cd6eb3407cb00504665930c4e
2018-10-05 18:49:08 +02:00
Alangi Derick
4bc2447787 Remove trailing spaces from IP addr in Special:DeletedContributions
* Trim "target" to remove trailing spaces from IP address in
  Special:DeletedContributions that triggers MW internal error.

Bug: T187619
Change-Id: Ic6b0d8020553ecce4dcf97f9c78487d3174444d8
2018-10-05 14:55:29 +00:00
jenkins-bot
ec83f37eb8 Merge "wdio-mediawiki: Add 'fragment' parameter to Page" 2018-10-05 08:04:08 +00:00
jenkins-bot
bf9d11ca8b Merge "Localisation updates from https://translatewiki.net." 2018-10-05 06:59:36 +00:00
jenkins-bot
f5cfde2825 Merge "Test ApiUnblock" 2018-10-05 00:43:56 +00:00
jenkins-bot
92b1205718 Merge "Fix List* in MessagesKo.php" 2018-10-05 00:29:50 +00:00
Aryeh Gregor
376e702942 Test ApiUnblock
Full coverage (except for the examples/help URL).

Change-Id: I4c618506b5446680f06fa9b605d3babe7194de94
2018-10-05 00:23:01 +00:00
jenkins-bot
3a5c490b77 Merge "filebackend: Add normalization for stat errors" 2018-10-04 23:22:13 +00:00
Timo Tijhof
8df0342eef filebackend: Add normalization for stat errors
Bug: T205567
Change-Id: I75f1eb6dc2cbff0ea0dc0706cca0ad79c54fc612
2018-10-04 23:00:48 +00:00
jenkins-bot
bc15d529cd Merge "Enforce no-session constraint in opensearch_desc.php and profileinfo.php" 2018-10-04 21:37:00 +00:00
Translation updater bot
ec1c307372 Localisation updates from https://translatewiki.net.
Change-Id: Idf339b32a190b7a770c0465e4545948861ab979d
2018-10-04 22:03:30 +02:00
jenkins-bot
a3c780d08c Merge "Clean up UIDGenerator field comments" 2018-10-04 19:53:45 +00:00
Timo Tijhof
e1d7271e42 UIDGenerator: Remove the clock skew problem
In a nutshell:

This commmit removes the use of drifting microtime()
in favour of non-drifting time(). Then, we increase the size of
the counter by x1000, and consider every 1000 increments as 1ms
for the purposes of UUID.

Why:

This means we eliminate the whole code that can produce a fatal
exception when the clock drifts by more than we can wait for,
which puts us in a logical conundrum we can't get out of, hence
it previously fatalled.

Not aborting random end-user requests and jobs is good.

This also means we avoid the vast majority of cases where
MediaWiki would busy-loop for upto 10ms in a likely-to-fail
attempt to sync the clock. This means the method runs faster,
which is a nice win, albeit not the main objective.

Bug: T94522
Change-Id: Ia8a847078ec76d633854db6823a20f0961c80f80
2018-10-04 20:08:44 +01:00
Martin Urbanec
63a6805fbf Add link to protect log to action=info
Bug: T52190
Change-Id: Id983d4585a253ebe34e07f07472548f6d1d20bce
2018-10-04 20:40:35 +02:00
jenkins-bot
109a6ecf78 Merge "Update OOUI to v0.29.1" 2018-10-04 18:31:32 +00:00
jenkins-bot
062cadb1d6 Merge "Avoid fatal when finding no base revision for a null revision." 2018-10-04 18:11:58 +00:00
daniel
539cb2816a Avoid fatal when finding no base revision for a null revision.
Bug: T205675
Change-Id: Iae67649a1be9597086033ad34d9d00556ba35730
2018-10-04 19:54:31 +02:00
James D. Forrester
86ff8ccdcd Update OOUI to v0.29.1
Release notes:
 https://phabricator.wikimedia.org/diffusion/GOJU/browse/master/History.md;v0.29.1

Local fix to rcfilters for renamed parent method.

Bug: T130434
Bug: T165650
Bug: T183299
Bug: T196756
Bug: T205472
Bug: T205692
Bug: T205979
Bug: T206153
Bug: T206155
Depends-On: Ie847465af6762fd0322a5be4adf601cabda2d458
Change-Id: I704e3197e86d484be3ab91b9282d6ac1b7db2251
2018-10-04 10:41:14 -07:00
jenkins-bot
f340c7271c Merge "ParserOutput::getCacheTime should stay the same after the first call." 2018-10-04 16:58:00 +00:00
jenkins-bot
1dde3dadc0 Merge "Ensure OutputPageTest works when Translate extension is loaded" 2018-10-04 16:53:20 +00:00
jenkins-bot
6871d732a1 Merge "Use Remex for TextContentTest subclasses" 2018-10-04 16:38:46 +00:00
jenkins-bot
69ad33b0c2 Merge "Disallow overriding services that were set" 2018-10-04 16:20:25 +00:00
jenkins-bot
96361e8866 Merge "tests: Allow string to be passed to getTestUser() etc." 2018-10-04 15:54:57 +00:00
jenkins-bot
076f262023 Merge "Minor cleanup in ApiBlockTest" 2018-10-04 15:50:51 +00:00
jenkins-bot
a4120368bb Merge "Only use "*Test.php" for actual PHPUnit tests" 2018-10-04 15:43:12 +00:00
jenkins-bot
fdce3717a1 Merge "Re-enable tests from TitlePermissionTest" 2018-10-04 15:40:48 +00:00
jenkins-bot
ca725a12bc Merge "registration: Let extensions add PHP extension requirements" 2018-10-04 15:38:58 +00:00
Erik Bernhardson
c49b8bf0d5 search: Fix DYM typos in widget
* DYM link was triggering the 'go' feature due to fulltext misspelled
* all ids are of the form mw-search-*, except one. Make it the same
  (WikimediaEvents code was expecting everything to be mw-search-*)

Bug: T206232
Change-Id: Ib91ccf28879b8af2a8c0f2a40b9fe3ec4259a730
2018-10-04 08:32:16 -07:00
Aryeh Gregor
b93b18d98a tests: Allow string to be passed to getTestUser() etc.
If there's only one group, let's not require the brackets.

Change-Id: Ib46ef1facbbbf2ba01c13b8290ebbe3a8e08cb4f
2018-10-04 15:30:47 +00:00
Aryeh Gregor
c057200613 Minor cleanup in ApiBlockTest
Use tablesUsed instead of cleaning up ourselves.

Change-Id: Ibe470a8f292d65ceeaa098d5c033b8585501a9f3
2018-10-04 15:55:55 +03:00
Translation updater bot
261fdc3862 Localisation updates from https://translatewiki.net.
Change-Id: I3a709a2ec2f0e13ca2b8015aa9de36e9e7d4e063
2018-10-04 14:12:05 +02:00
daniel
414215ccac ParserOutput::getCacheTime should stay the same after the first call.
Previously, getCacheTime would default to the current time, potentially
causing the return value to change over subsequent calls. With this change,
the value is determined on the first call, and then remembered for subsequent
calls.

Bug: T205464
Change-Id: If240161c71d523ad5b0d33b9378950e0bebceb6e
2018-10-04 13:08:56 +02:00
Timo Tijhof
1d0e26cf83 UIDGenerator: Misc clean up
Various miscellaneous clean ups with no change to any of the
logical code. This to make the next commit have a cleaner diff
for easier review.

* Make internal millitime() non-static.

* Improve documentation and add missing @covers annotations.

* Correct getTimestampedID88() documentation to state that
  only two values need to be passed, not three.
  This is significant because the Flow extension is actually
  using this method in a subclass and passes only two values.

Bug: T94522
Change-Id: I2a0c51bea58df4cc0c253c1c10de3ac383f04c8e
2018-10-04 12:44:17 +02:00
WMDE-Fisch
9425d3e46e wdio-mediawiki: Add 'fragment' parameter to Page
In some cases it's useful adding a fragment to the url, e.g. when
accessing the beta features preference page. This patch adds support
for that on the Page object.

Change-Id: I4b6aa5e7e89e60f05e217fc557bf6786441855e6
2018-10-04 11:38:58 +02:00
Aaron Schulz
d739e97884 Clean up UIDGenerator field comments
Change-Id: I0c6d125ec03a56fe0b3456cff7d498d231315e0d
2018-10-04 01:11:26 -07:00
Fomafix
1472f02b36 Phabricator: Use Tddddd instead of Bug ddddd in comments
Change-Id: Ic9fe03cab270bd6be738af346164ad5d31a0d780
2018-10-04 09:15:02 +02:00
jenkins-bot
a2847a4282 Merge "rdbms: clarfiy some comments about commitMasterChanges() methods" 2018-10-04 02:46:25 +00:00