Commit graph

65746 commits

Author SHA1 Message Date
Brad Jorsch
77d62edef3 Refactor hashing utility functions from MWCryptRand and make public
MWCryptRand already has some useful utility functions wrapping PHP's
hash() and hash_hmac(). Let's make them public so we can use them from
other code.

But since "MWCryptRand" isn't really a good place for hashing functions,
let's move them to "MWCryptHash" instead.

Change-Id: I7542c719ac72beba7b0f6aa170bdb4c69fa6beab
2015-10-01 01:18:23 +00:00
jenkins-bot
4d59cba3ab Merge "build: Don't run Travis CI for wmf/* branches" 2015-10-01 00:36:52 +00:00
jenkins-bot
43856c3412 Merge "mediawiki.page.watch.ajax: Add dependency on mediawiki.page.startup" 2015-10-01 00:27:46 +00:00
Timo Tijhof
6dfc09c48b build: Don't run Travis CI for wmf/* branches
These test runs don't seem very valuable and take up a lot of
slots that could be used for other wikimedia/* repos.

Change-Id: I47ff3a31883d02ec6b535e411d92ada92a84aa2f
2015-09-30 16:07:47 -07:00
jenkins-bot
5acab2ed22 Merge "Retry getting CatChange RC from master" 2015-09-30 22:56:27 +00:00
addshore
a1094b42db Retry getting CatChange RC from master
This adds optional flags to Revision::getRecentChange
And uses them in CategoryMembershipChange

Bug: T109700
Change-Id: I197ebccf1f62cdcb03ce4daa2527b973e495236c
2015-09-30 23:09:12 +01:00
Ori Livneh
b91643ffdc resourceloader: Deprecate two pointless minification config vars
When minifying JavaScript, never put each statement on a separate line, and
always set a target maximum line length of 1000. These behaviors were
previously configurable via $wgResourceLoaderMinifierStatementsOnOwnLine and
$wgResourceLoaderMinifierMaxLineLength, respectively.

Change-Id: I0b0eb632875b5e16f728fd0aa62f7f5ecd79ef62
2015-09-30 22:04:33 +00:00
Aaron Schulz
2c63d57ddd Made User::loadFromId() skip cache with READ_LATEST
* That flag is used for anti-dependencies and thus
  should never rely on cache

Bug: T95839
Change-Id: I4ffc8325e55588ef649b96e7b90bc95282f765a9
2015-09-30 21:53:25 +00:00
jenkins-bot
833cbddc99 Merge "API: Remove warning about continuation change" 2015-09-30 21:37:58 +00:00
jenkins-bot
9e6032545b Merge "build: Enable jscs jsDoc rule 'checkParamNames' and make pass" 2015-09-30 21:34:03 +00:00
jenkins-bot
10783e29e4 Merge "mediawiki.messagePoster: Update comments after mw.Api file renames" 2015-09-30 21:33:19 +00:00
Fomafix
bb662f909b mediawiki.messagePoster: Update comments after mw.Api file renames
* Use class name instead of file name
* Expand abbreviation

Follow-up 0bfdd927

Change-Id: I33ad2b10ffb4b4e5e3a38a5c6f644eb183134a36
2015-09-30 21:20:44 +00:00
jenkins-bot
47de0d3b1e Merge "Fix LESS file dependency tracking in ResourceLoader" 2015-09-30 21:18:14 +00:00
jenkins-bot
dc2bcf6e38 Merge "mw.Upload.BookletLayout: Go back to upload page on upload error" 2015-09-30 21:09:07 +00:00
Ori Livneh
7ac0a3ac59 Fix LESS file dependency tracking in ResourceLoader
As Timo noted in a review of I1ff6115, using '+=' to combine file dependencies
is incorrect here. I fixed it in one place but not the other, causing the file
dependencies to vary based on whether a .lesscache file was used.

Change-Id: Ie3f48048febc32c5c2d45acd87e10f946f6dfc94
2015-09-30 14:04:18 -07:00
Prateek Saxena
dddb0064a9 mw.Upload.BookletLayout: Go back to upload page on upload error
Bug: T114130
Change-Id: Ibe50ce845a42bb5e66f842c68a35541747c9a570
2015-10-01 02:24:04 +05:30
Prateek Saxena
048b0c2b7a mw.Upload.BookletLayout: Make all errors unrecoverable
Any error apart from 503's can't be recovered just by hitting 'Try
Again'. The user will _have_ to make some changes before the process
can continue.

Bug: T114130
Change-Id: I8e2d619be5b7e47bc903155c353bc1da36a62bb6
2015-10-01 02:03:25 +05:30
jenkins-bot
83630079f3 Merge "mw.Upload.BookletLayout: Move error checking for uploadToStash to uploadFile" 2015-09-30 20:27:05 +00:00
Prateek Saxena
887fedc500 mw.Upload.BookletLayout: Move error checking for uploadToStash to uploadFile
We were checking for uploadToStash errors in saveFile, instead of in
uploadFile itself. Apart from being just wrong it was causing two
issues:

1. We would show an upload error until after you've tried to save the
   file.

2. If there was an error in saving, and you try again, the first thing
   it would do is check mw.Upload.State to hopefully check for
   uploadToStash errors. Instead of running the finishStashUpload again
   it would fail because of the earlier error, thus making all errors
   unrecoverable.

Bug: T114130
Change-Id: I56f4ef6e6536840a63402688eb2a1875a6876fcc
2015-09-30 19:55:44 +00:00
Brad Jorsch
847f92ca23 API: Remove warning about continuation change
Change-Id: I2a69e8ae7dc7df915ceaaeed740b74d55f9207ce
2015-09-30 19:48:52 +00:00
Translation updater bot
562b579127 Localisation updates from https://translatewiki.net.
Change-Id: I5fc58474ab4bc404a9a74d734e2fe4e61bfaa2ad
2015-09-30 21:46:52 +02:00
Timo Tijhof
f177e40ac8 mediawiki.page.watch.ajax: Add dependency on mediawiki.page.startup
Follows-up 77cdf19 which accidentally removed it.
It is used to host the mw.page.watch method.

Bug: T114288
Change-Id: I1aad9c3c46c3765b6b241cf3fd7b2f1956b8cfa0
2015-09-30 12:11:03 -07:00
Amir E. Aharoni
f9d0c98e16 Make lines short to pass phpcs in 2 files under tests/phpunit/includes/
Bug: T102614
Change-Id: I21a7cbc40a3015c3d6cbea1b9d7df58a358beb6a
2015-09-30 16:17:35 +00:00
jenkins-bot
3de7e73bd0 Merge "mw.widgets.CategorySelector: Link to category page and display existence status" 2015-09-30 16:16:41 +00:00
Amir E. Aharoni
b59ad5811b Make lines short to pass phpcs in BagOStuffTest.php
Bug: T102614
Change-Id: I125cf7ec294818ae4c7741acf24a40980448daa9
2015-09-30 16:01:54 +00:00
jenkins-bot
b02fd14f50 Merge "mediawiki.action.edit.preview: Remove spurious 'return'" 2015-09-30 16:01:22 +00:00
jenkins-bot
e62c56ee6d Merge "Pass real boolean or array params to mw.Api#get and #post when convenient" 2015-09-30 16:01:19 +00:00
jenkins-bot
2a0da4c007 Merge "Rename RESTBase1/Parsoid3 bodyOnly parameter to body_only" 2015-09-30 15:52:12 +00:00
Amir E. Aharoni
9f5c3c1520 Make lines short to pass phpcs in ResourcesTest.php
Bug: T102614
Change-Id: I3c5df376dbfc6cbb114b59202ee9d68d4d850746
2015-09-30 15:40:39 +00:00
jenkins-bot
c78876d333 Merge "Chinese Conversion Table Update 2015-8" 2015-09-30 15:32:14 +00:00
jenkins-bot
a2d8b163da Merge "Rename message 'move-new-title' back to 'newtitle'" 2015-09-30 14:33:55 +00:00
C. Scott Ananian
f422d00970 Rename RESTBase1/Parsoid3 bodyOnly parameter to body_only
The old `bodyOnly` name was deprecated on 2015-09-09.

Bug: T114185
Change-Id: If1fe919672dec4ca281c7f72bfd769a4bcaa5047
2015-09-30 10:27:04 -04:00
Bartosz Dziewoński
8bbc622c13 mediawiki.action.edit.preview: Remove spurious 'return'
Retuning another Promise from a .done() callback does nothing, it's
only meaningful for .then(). Looking at other code, the .done() rather
than .then() was intended, the 'return' wasn't.

Change-Id: I1022ba45b8f422a626246fa38c4fe81428acb3bc
2015-09-30 13:49:57 +00:00
jenkins-bot
ce1d95166f Merge "Cleaned up WANObjectCache toy example code blocks" 2015-09-30 13:38:14 +00:00
Bartosz Dziewoński
66468a7820 Pass real boolean or array params to mw.Api#get and #post when convenient
We have this wonderful feature, let's use is more often!

Change-Id: I3cc48d11780c0f83df2f13acc9885bb0b4124a92
2015-09-30 15:34:30 +02:00
jenkins-bot
7791a3c260 Merge "Converted Interwiki::load to using getWithSetCallback()" 2015-09-30 13:28:24 +00:00
jenkins-bot
6ee1823fb8 Merge "Converted checkRedirect() to using getWithSetCallback()" 2015-09-30 13:16:45 +00:00
Bartosz Dziewoński
a1ed9acbb0 Rename message 'move-new-title' back to 'newtitle'
Per post-merge feedback on 795922d59c,
the changes to message contents are not substantial enough to
invalidate all existing translations.

Change-Id: Ifbbfd27c8ca6a4abe71e91e6fb7d61155a7be955
2015-09-30 15:11:19 +02:00
jenkins-bot
2cb893c085 Merge "Introduce CategoryMembershipChange" 2015-09-30 12:44:37 +00:00
jenkins-bot
9fd987171d Merge "Added DeleteLinksJob to support purging backlinks via job runners" 2015-09-30 12:35:24 +00:00
Aaron Schulz
3a56848dfc Converted checkRedirect() to using getWithSetCallback()
* Also merged in the code for LocalRepo::getArticleID()

Change-Id: I80d46d2358a48a39e251be83cdb336f663dbfaff
2015-09-30 00:52:01 -07:00
Aaron Schulz
7cb83f0bb3 Converted Interwiki::load to using getWithSetCallback()
Change-Id: I4299715ce4c996fed8add773aa03441324eb0dfc
2015-09-29 23:52:41 -07:00
Aaron Schulz
3f3d5a10b9 Cleaned up WANObjectCache toy example code blocks
The list order logic was backwards

Change-Id: Id26e13b69d9e1e6ef132792bdcc693836757cbd8
2015-09-29 23:05:33 -07:00
jenkins-bot
ff3a5aa605 Merge "Improve brevity of Special:MovePage form and its description" 2015-09-30 06:04:05 +00:00
jenkins-bot
0c1cd96747 Merge "Added testStaleSet() WAN cache test" 2015-09-30 05:39:58 +00:00
Amir E. Aharoni
ddbba62d03 Make lines short to pass phpcs in 2 files under includes/
Bug: T102614
Change-Id: Iae4d4fbdba88ebcd9bcb018a2a0015d0c0ac607c
2015-09-30 05:20:03 +00:00
jenkins-bot
f22024c7c2 Merge "Improved getWithSetCallback() docs to have more use cases" 2015-09-30 04:07:06 +00:00
jenkins-bot
415b317666 Merge "Add option to expose original sha1 in thumb url" 2015-09-30 01:43:52 +00:00
Aaron Schulz
aaa7df96a4 Added testStaleSet() WAN cache test
Change-Id: Ib8565c48af09af0df1809e877fde9d4d6c7e7038
2015-09-29 18:14:48 -07:00
jenkins-bot
9ec4dfdba6 Merge "resourceloader: Vary module_deps on language (in addition to skin)" 2015-09-30 00:51:11 +00:00