lhc/web/wiklou.git
10 years agoMerge "Typography Refresh - Apply line-height to correct ID"
jenkins-bot [Thu, 10 Apr 2014 00:22:45 +0000 (00:22 +0000)]
Merge "Typography Refresh - Apply line-height to correct ID"

10 years agoTypography Refresh - Apply line-height to correct ID
Erwin Dokter [Wed, 9 Apr 2014 15:33:12 +0000 (15:33 +0000)]
Typography Refresh - Apply line-height to correct ID

The 1.6 line-height (@content-line-height set in variables.less) in
the Typography Refresh has been applied to div#content, which is in
turn overridden by the 1.5em line-height of #bodyContent
(set in common.less).

Fix: Remove line-height rule for div#content and set
line-height for #bodyContent to @content-line-height.

Bug: 63731
Change-Id: I16e6d6cea6f283bf79a6bf29c19b9700dda222f8

10 years agoMerge "Disabling profiling in the debug toolbar for ProfilerSimple (for now)"
jenkins-bot [Wed, 9 Apr 2014 22:00:05 +0000 (22:00 +0000)]
Merge "Disabling profiling in the debug toolbar for ProfilerSimple (for now)"

10 years agoMerge "Localisation updates from https://translatewiki.net."
Translation updater bot [Wed, 9 Apr 2014 20:12:43 +0000 (20:12 +0000)]
Merge "Localisation updates from https://translatewiki.net."

10 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Wed, 9 Apr 2014 20:05:35 +0000 (20:05 +0000)]
Localisation updates from https://translatewiki.net.

Change-Id: Ice2ddcc177f59a28c01c558f969e87850142252c

10 years agoMerge "Added $wgRunJobsAsync to allow running jobs the old way"
jenkins-bot [Wed, 9 Apr 2014 19:33:36 +0000 (19:33 +0000)]
Merge "Added $wgRunJobsAsync to allow running jobs the old way"

10 years agoAdded $wgRunJobsAsync to allow running jobs the old way
Jesús Martínez Novo [Mon, 7 Apr 2014 21:13:25 +0000 (23:13 +0200)]
Added $wgRunJobsAsync to allow running jobs the old way

Adding a new global variable (DefaultSettings.php) named $wgRunJobsAsync, that
defaults to true, to allow installations to force the old synchronous job
execution on page requests instead of the new asynchonous one.

The asynchronous job queue execution was added in 1.22, executing a new shell
script, and it caused major problems for third party installations with restricted
environments or limited system resources, and also because a lot of bugs that went
unnoticed because WMF wikis do not use the on-request job queue.

In 1.23 it was changed to use a new internal HTTP request to a MediaWiki entry point
to perform the request, While some of the bugs were solved, it could still have
performance problems for opening a new process and loading a lot of MediaWiki PHP
objects on it, just to perform a request to see if there are pending jobs and execute
them (it doesn't check if there are jobs to execute). While this may improve speed
on single page requests, because it does not block the execution of the current page,
it has't been thoroughly tested on third party installations. And what is more
important, now there's no way to revert back to the old way of handling those jobs,
as it was done in 1.22 (setting $wgPhpCli = false). This means, in case of major
bugs on the job queue execution due to the new request, there's no way to fix it
other than editing MediaWiki PHP files directly, or completely disable the
on-request job queue handling (some hosts can't set up a cron job for that)

This situation makes it critical to have a safe way to revert to the old job queue
handling, at least until testing that the current implementation doesn't break a lot
of installations.

Bug: 61387
Change-Id: I892a3608228ec0a1c63268fb6180ec679c315980

10 years agoMerge "Update OOjs UI to v0.1.0-pre (70932872ba)"
jenkins-bot [Wed, 9 Apr 2014 18:21:25 +0000 (18:21 +0000)]
Merge "Update OOjs UI to v0.1.0-pre (70932872ba)"

10 years agoFix Webinstaller after file move
Fomafix [Wed, 9 Apr 2014 10:38:53 +0000 (10:38 +0000)]
Fix Webinstaller after file move

Follow-Up to Id5ead1453412e763bdb3763084e43694517088fd

Change-Id: I335e4c08bbafd136c3a8734c9b077a62cb9d989d

10 years agoAvoid using raw sql in LinksUpdate.php
umherirrender [Tue, 8 Apr 2014 18:56:02 +0000 (20:56 +0200)]
Avoid using raw sql in LinksUpdate.php

Now the IN-List is created by the database abstraction layer.

Change-Id: I5f4ed9213d04ae3eeef07c995e6ca91c0ee717b8

10 years agoAvoid using raw sql in LocalFile.php
umherirrender [Wed, 9 Apr 2014 15:35:20 +0000 (17:35 +0200)]
Avoid using raw sql in LocalFile.php

Now the IN-List is created by the database abstraction layer.

Change-Id: I08d309eb4aad830ad6141cbfbe16447eb2674f52

10 years agoMerge "Fix documentation for mw.Title#getName()"
Bartosz Dziewoński [Wed, 9 Apr 2014 11:10:06 +0000 (11:10 +0000)]
Merge "Fix documentation for mw.Title#getName()"

10 years agoMerge "resourceloader: Add unit test to ensure absence of illegal dependencies"
Bartosz Dziewoński [Wed, 9 Apr 2014 11:09:43 +0000 (11:09 +0000)]
Merge "resourceloader: Add unit test to ensure absence of illegal dependencies"

10 years agoMerge "Split CLDRPluralRuleEvaluator file"
jenkins-bot [Wed, 9 Apr 2014 11:01:52 +0000 (11:01 +0000)]
Merge "Split CLDRPluralRuleEvaluator file"

10 years agoMerge "zhtable: Add zh2Hant rule 箱里 => 箱裡"
jenkins-bot [Wed, 9 Apr 2014 10:44:26 +0000 (10:44 +0000)]
Merge "zhtable: Add zh2Hant rule 箱里 => 箱裡"

10 years agoMerge "Fix "@param null $param" documentations"
jenkins-bot [Wed, 9 Apr 2014 10:43:22 +0000 (10:43 +0000)]
Merge "Fix "@param null $param" documentations"

10 years agoFix "@param null $param" documentations
Thiemo Mättig [Wed, 9 Apr 2014 10:33:55 +0000 (12:33 +0200)]
Fix "@param null $param" documentations

... and very few other documentation details that are closely connected
to these mistakes.

Change-Id: I5b2691948e196124c77f0cc04d0ed5a7167cac25

10 years agoMerge "Move ConverterRule class to its own file"
jenkins-bot [Wed, 9 Apr 2014 10:29:21 +0000 (10:29 +0000)]
Merge "Move ConverterRule class to its own file"

10 years agoWrap more magic words in <code> for consistency
Raimond Spekking [Wed, 9 Apr 2014 09:58:16 +0000 (11:58 +0200)]
Wrap more magic words in <code> for consistency

Change-Id: I57f964326c7c6e2c932c3a5d11d5a0b61874ebb9

10 years agozhtable: Add zh2Hant rule 箱里 => 箱裡
Liangent [Wed, 9 Apr 2014 08:45:27 +0000 (08:45 +0000)]
zhtable: Add zh2Hant rule 箱里 => 箱裡

Change-Id: Iab42af3a6246174263a1aa752912349a76cdb6a8

10 years agoFix documentation for mw.Title#getName()
Gergő Tisza [Wed, 9 Apr 2014 08:06:33 +0000 (08:06 +0000)]
Fix documentation for mw.Title#getName()

Delete the remark which incorrectly stated that the result of
getName() is transformed by #text.

Change-Id: I7d06d9beee73e113f7c18d5284d94201d7d896a1

10 years agoresourceloader: Add unit test to ensure absence of illegal dependencies
Timo Tijhof [Fri, 28 Mar 2014 00:58:03 +0000 (17:58 -0700)]
resourceloader: Add unit test to ensure absence of illegal dependencies

Loading these can cause side-effects and is just redundant in
general.

Change-Id: Ic8b4ed45d4d42172a456cc5eaf314c41e4e6fd18

10 years agoSplit CLDRPluralRuleEvaluator file
addshore [Tue, 8 Apr 2014 22:50:31 +0000 (23:50 +0100)]
Split CLDRPluralRuleEvaluator file

Change-Id: Iec9a939e3f28a600c841b89a2849f65d41763a62

10 years agoUpdate OOjs UI to v0.1.0-pre (70932872ba)
James D. Forrester [Tue, 8 Apr 2014 19:42:35 +0000 (12:42 -0700)]
Update OOjs UI to v0.1.0-pre (70932872ba)

New changes:
7093287 Don't assume selection is of an item, sometimes it's null

Change-Id: I908a8e723060a6e9155532d944e3d098e1468a2f

10 years agoMove ConverterRule class to its own file
addshore [Tue, 8 Apr 2014 22:39:55 +0000 (23:39 +0100)]
Move ConverterRule class to its own file

Change-Id: I0d743625e32f903ecd13f3c1f5aaeabdaca70f9d

10 years agoFixed batching error in token reset script
Aaron Schulz [Tue, 8 Apr 2014 22:06:21 +0000 (15:06 -0700)]
Fixed batching error in token reset script

Change-Id: Ic31f258011048985532b703d2409d03f2d205cea

10 years agoMerge "Localisation updates from https://translatewiki.net."
Translation updater bot [Tue, 8 Apr 2014 20:09:16 +0000 (20:09 +0000)]
Merge "Localisation updates from https://translatewiki.net."

10 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Tue, 8 Apr 2014 20:04:37 +0000 (20:04 +0000)]
Localisation updates from https://translatewiki.net.

Change-Id: I0d632c1d203c9a606dc8f0a025a420099cc52e8e

10 years agoMerge "WebInstaller inline documentation cleanup"
jenkins-bot [Tue, 8 Apr 2014 20:02:16 +0000 (20:02 +0000)]
Merge "WebInstaller inline documentation cleanup"

10 years agoMerge "Add some settings and quoted test in code tags"
jenkins-bot [Tue, 8 Apr 2014 18:42:41 +0000 (18:42 +0000)]
Merge "Add some settings and quoted test in code tags"

10 years agoMerge "Split part of EnhancedChangesList::recentChangesLine into new method"
Bartosz Dziewoński [Tue, 8 Apr 2014 18:27:45 +0000 (18:27 +0000)]
Merge "Split part of EnhancedChangesList::recentChangesLine into new method"

10 years agoMerge "Removed unneeded spaces and colons in @param and friends"
Krinkle [Tue, 8 Apr 2014 18:05:38 +0000 (18:05 +0000)]
Merge "Removed unneeded spaces and colons in @param and friends"

10 years agoMerge "Handle null file handles in UIDGenerator::_destruct()"
jenkins-bot [Tue, 8 Apr 2014 16:31:09 +0000 (16:31 +0000)]
Merge "Handle null file handles in UIDGenerator::_destruct()"

10 years agoAdd some settings and quoted test in code tags
Siebrand Mazeland [Tue, 8 Apr 2014 16:29:35 +0000 (18:29 +0200)]
Add some settings and quoted test in code tags

Change-Id: I91403d38f4abba19a77cb83cc00fdd8c4ee0104c

10 years agoMerge "Added limit to countRevisionsBetween() for sanity"
jenkins-bot [Tue, 8 Apr 2014 16:15:46 +0000 (16:15 +0000)]
Merge "Added limit to countRevisionsBetween() for sanity"

10 years agoMerge "Made runJobs.php fully respect $wgJobBackoffThrottling"
jenkins-bot [Tue, 8 Apr 2014 16:15:30 +0000 (16:15 +0000)]
Merge "Made runJobs.php fully respect $wgJobBackoffThrottling"

10 years agoHandle null file handles in UIDGenerator::_destruct()
Aaron Schulz [Mon, 7 Apr 2014 23:07:55 +0000 (16:07 -0700)]
Handle null file handles in UIDGenerator::_destruct()

Change-Id: I92f874e610b2ea32d34aeb35ddd4069fe0d721fc

10 years agoMerge "Removed useless JobQueue return values"
jenkins-bot [Tue, 8 Apr 2014 16:12:58 +0000 (16:12 +0000)]
Merge "Removed useless JobQueue return values"

10 years agoMerge "Set the "error" field in the right array"
jenkins-bot [Tue, 8 Apr 2014 16:10:16 +0000 (16:10 +0000)]
Merge "Set the "error" field in the right array"

10 years agoRemoved unneeded spaces and colons in @param and friends
umherirrender [Tue, 8 Apr 2014 15:29:17 +0000 (17:29 +0200)]
Removed unneeded spaces and colons in @param and friends

Also swapped some "$var type" to "type $var" or added missing types
before the $var. Changed some other types to match the more common
spelling. Makes beginning of some text in captial.

Change-Id: Ic36c8c7820a6c2d603f1138130670c6bf6a1ca59

10 years agoMerge "Reduce complexity of "noindex-category-desc""
jenkins-bot [Tue, 8 Apr 2014 15:44:15 +0000 (15:44 +0000)]
Merge "Reduce complexity of "noindex-category-desc""

10 years agoReduce complexity of "noindex-category-desc"
Siebrand Mazeland [Tue, 8 Apr 2014 15:34:40 +0000 (17:34 +0200)]
Reduce complexity of "noindex-category-desc"

Spotted by Lokal Profil and reported at
https://translatewiki.net/wiki/Thread:Support/About_MediaWiki:Noindex-category-desc/sv

Change-Id: Ie088085cc6aa1974c93a1687ecc67ed961413c6f

10 years agoRemove title case for "trackingcategories-msg"
Siebrand Mazeland [Tue, 8 Apr 2014 15:31:10 +0000 (17:31 +0200)]
Remove title case for "trackingcategories-msg"

Change-Id: I0312f89bf399009d87ccdd88f5abfaf79ea5794f

10 years agoWrap parameter in code tags
Siebrand Mazeland [Tue, 8 Apr 2014 13:08:51 +0000 (15:08 +0200)]
Wrap parameter in code tags

Spotted by Lokal Profil and reported at
https://translatewiki.net/wiki/Thread:Support/About_MediaWiki:Config-no-cli-uri/sv

Change-Id: I2803e42c8cfae1a882b3300861b832154129f57f

10 years agoSplit part of EnhancedChangesList::recentChangesLine into new method
aude [Tue, 8 Apr 2014 08:40:04 +0000 (10:40 +0200)]
Split part of EnhancedChangesList::recentChangesLine into new method

Change-Id: I57f22ac0969fe3ba324a2b9d107c6f2d9968769c

10 years agoMerge "Added more filter options to $wgRCFeeds"
Bartosz Dziewoński [Tue, 8 Apr 2014 11:27:34 +0000 (11:27 +0000)]
Merge "Added more filter options to $wgRCFeeds"

10 years agoMerge "qunit: Implement suppressWarnings/restoreWarnings"
Bartosz Dziewoński [Tue, 8 Apr 2014 11:25:02 +0000 (11:25 +0000)]
Merge "qunit: Implement suppressWarnings/restoreWarnings"

10 years agoWebInstaller inline documentation cleanup
Thiemo Mättig [Tue, 8 Apr 2014 10:22:43 +0000 (12:22 +0200)]
WebInstaller inline documentation cleanup

This is a follow-up to Ide17d5af13c416c62a40029848ac17ba24eb5563.
However, I could not fix the "minor style" issue mentioned there
because this would make the line to long.

I fixed lots and lots of other issues instead, e.g.:

* "void" isn't a thing. Added "return null" instead.
* Removed documentation that said "a constructor is a constructor".
* Use "string[]" and such instead of "array" if possible.

Change-Id: I9658c2af58862f1d634cf1b2ba4c9d0f27ee7608

10 years agoFix spelling: occurred
Siebrand Mazeland [Tue, 8 Apr 2014 09:08:46 +0000 (11:08 +0200)]
Fix spelling: occurred

Change-Id: Ic307db2362b00f15eaac781587bfe9c1d074194f

10 years agoMerge "resourceloader: Don't add superfluous line breaks and semicolons"
jenkins-bot [Tue, 8 Apr 2014 03:36:47 +0000 (03:36 +0000)]
Merge "resourceloader: Don't add superfluous line breaks and semicolons"

10 years agoMerge "Add extra views (tabs) for files in a foreign repository"
jenkins-bot [Tue, 8 Apr 2014 02:34:33 +0000 (02:34 +0000)]
Merge "Add extra views (tabs) for files in a foreign repository"

10 years agoqunit: Implement suppressWarnings/restoreWarnings
Timo Tijhof [Mon, 7 Apr 2014 18:43:19 +0000 (11:43 -0700)]
qunit: Implement suppressWarnings/restoreWarnings

There are various tests triggering deprecation warnings because
they are testing deprecated functionality, on purpose.

Surpress these so that the logs aren't filled with false
positives in Jenkins.

Change-Id: I4bb546781a0c89999b2e5df7715abf492a44856d

10 years agoMerge "update-oojs.sh: Rewrite to fetch from npm repo instead of building from git"
jenkins-bot [Tue, 8 Apr 2014 00:13:13 +0000 (00:13 +0000)]
Merge "update-oojs.sh: Rewrite to fetch from npm repo instead of building from git"

10 years agoupdate-oojs.sh: Rewrite to fetch from npm repo instead of building from git
Timo Tijhof [Mon, 7 Apr 2014 22:15:06 +0000 (15:15 -0700)]
update-oojs.sh: Rewrite to fetch from npm repo instead of building from git

* Fetch upstream build from npm repository instead of building it locally
  from git (to avoid different timestamps and checksums not matching, no
  need for MediaWiki code to know how to build a oojs distribution).

* Ran it which changed the oojs.js file slightly (it now contains the file
  as released on npmjs.org instead of the local build by the person who
  last updated it in mediawiki).

Follows-up:
648667a - Split up resources/ into resources/lib/ and resources/src/
c68b967 - Add scripts to generate update builds of OOjs

Change-Id: I63f79293e21781c1db3d7c43658c22f58ba9102d

10 years agoAdded more filter options to $wgRCFeeds
Tyler Anthony Romeo [Thu, 6 Feb 2014 08:20:27 +0000 (03:20 -0500)]
Added more filter options to $wgRCFeeds

Changed RecentChange::notifyRCFeeds() to allow more
filter options than just omit_bots. In order to mirror
the on-wiki Special:RecentChanges UI, the options
omit_anon, omit_user, omit_minor, omit_patrolled were added,
which omits anonymous, registered, minor, and patrolled
edits, respectively.

Bug: 60941
Change-Id: I716c741f1f7d42b6506a97e9a5733beac23ac16c

10 years agoMerge "Replace in_array( array_keys( ... ) ) with array_key_exists( ... )"
jenkins-bot [Mon, 7 Apr 2014 23:16:46 +0000 (23:16 +0000)]
Merge "Replace in_array( array_keys( ... ) ) with array_key_exists( ... )"

10 years agoMerge "Delete UIDGenerator cache files after unit tests"
jenkins-bot [Mon, 7 Apr 2014 23:09:11 +0000 (23:09 +0000)]
Merge "Delete UIDGenerator cache files after unit tests"

10 years agoMerge "Convert <!-- timing data --> to a <script></script> block"
jenkins-bot [Mon, 7 Apr 2014 22:54:20 +0000 (22:54 +0000)]
Merge "Convert <!-- timing data --> to a <script></script> block"

10 years agoMerge "Followup 648667ac: fix paths in update-oojs-ui.sh"
jenkins-bot [Mon, 7 Apr 2014 22:28:04 +0000 (22:28 +0000)]
Merge "Followup 648667ac: fix paths in update-oojs-ui.sh"

10 years agoAdded limit to countRevisionsBetween() for sanity
Aaron Schulz [Mon, 7 Apr 2014 22:18:19 +0000 (15:18 -0700)]
Added limit to countRevisionsBetween() for sanity

* This was causing dozens of DB query timeout errors at WMF

Change-Id: Ie51a491ff5d22c2d84934e83d4b3f690c9dbd595

10 years agoUpdate OOjs UI to v0.1.0-pre (4975b8db90)
Roan Kattouw [Mon, 7 Apr 2014 22:17:17 +0000 (15:17 -0700)]
Update OOjs UI to v0.1.0-pre (4975b8db90)

New changes:
9857035 [BREAKING CHANGE] Fix some intialize -> initialize typos
c93cd2b Use new OO#initClass method for base classes
967ea78 Switch over to grunt-banana-checker now that it's a real boy
4975b8d [BREAKING CHANGE] Death to initializeSelection

Change-Id: I3fac3f5ca25162b82f8830ee63cb4142eb7df68e

10 years agoFollowup 648667ac: fix paths in update-oojs-ui.sh
Roan Kattouw [Mon, 7 Apr 2014 22:12:38 +0000 (15:12 -0700)]
Followup 648667ac: fix paths in update-oojs-ui.sh

Change-Id: I579eb17c72a24ed7e23dc553fa55ce1b4e1f612c

10 years agoConvert <!-- timing data --> to a <script></script> block
Ori Livneh [Sat, 15 Mar 2014 08:05:44 +0000 (01:05 -0700)]
Convert <!-- timing data --> to a <script></script> block

This patch replaces:

  <!-- Served by mw1069 in 0.976 secs. -->

With:

  <script>mw.config.set({"wgBackendResponseTime":976,"wgHostname":"mw1069"});</script>

In the default HTML output of MediaWiki.

While the latter is a nearly twice as long, it is almost as readable for human
beings, while being substantially easy to get via JavaScript.

To get the values from the comment, you have to do something like:

  var comments, comment, hostname, duration;
  comments = $.grep( document.body.childNodes, function ( el ) {
return el.nodeType === 8
  } );
  comment = comments.length
? comments.pop().nodeValue.match( /(\S+) in ([\d.]+)/ ).slice( 1 )
: [ null, null ];
  hostname = comment[0];
  respTime = parseFloat( comment[1] );

On the other hand, to get the values from the JavaScript code, you can simply:

  var hostname = mw.config.get( 'wgHostname' );
  var respTime = mw.config.get( 'wgBackendResponseTime' );

I believe that the ability to parse the number easily via JavaScript will make
it easier to include with other client-side measurements as part of reports on
site performance as experienced by users.

Change-Id: I895cd03f0968815484ff8cda4b23cc602ac555f0

10 years agoMerge "Remove troublesome fonts from font stack"
jenkins-bot [Mon, 7 Apr 2014 21:23:13 +0000 (21:23 +0000)]
Merge "Remove troublesome fonts from font stack"

10 years agoMerge "Fix usage of $wgDebugDumpSql"
jenkins-bot [Mon, 7 Apr 2014 21:22:02 +0000 (21:22 +0000)]
Merge "Fix usage of $wgDebugDumpSql"

10 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Mon, 7 Apr 2014 20:30:49 +0000 (20:30 +0000)]
Localisation updates from https://translatewiki.net.

Change-Id: I65a75087d4eec55f12674de5881ecb34f2d8563a

10 years agoSet the "error" field in the right array
Aaron Schulz [Mon, 7 Apr 2014 20:15:31 +0000 (13:15 -0700)]
Set the "error" field in the right array

Change-Id: Id822ceb53c57daac0000bef3b304bb0260efe4ce

10 years agoRemove troublesome fonts from font stack
jrobson [Mon, 7 Apr 2014 19:54:36 +0000 (12:54 -0700)]
Remove troublesome fonts from font stack

These fonts have been shown to render extremely
badly on Windows machines. Reverting them from the
font stack as a short term measure.

Bug: 63512
Change-Id: Ibb16c93ef7f0c7efd5ba963d01e6dc5db61fdc87

10 years agoSplit /resources into /resources/lib and /resources/src
James D. Forrester [Thu, 3 Apr 2014 16:17:09 +0000 (09:17 -0700)]
Split /resources into /resources/lib and /resources/src

Currently, MediaWiki has a mess of resources, some but not all of which are upstream libraries.
This means that occasionally people will attempt to make local modifications of the libraries
by accident, or deliberately but do not flag it, making dependency management a challenge (and
fixing upstream-related bugs a headache).

Instead, we now split the /resources directory into a /resources/lib directory for those items
which are used purely as intact upstream libraries, and a /resources/src directroy for those
which are either local libraries written for MediaWiki and mastered here, or downstream forks
of upstream libraries which require particular care and attention when being upgraded. Also,
some incidental files which are not to be loaded as part of a module have been moved to better
locations.

Upstream libaries

* jquery
resources/jquery/jquery.js

* jquery.appear
resources/jquery/jquery.appear.js

* jquery.async
resources/jquery/jquery.async.js

* jquery.chosen
resources/jquery.chosen/*

* jquery.cookie
resources/jquery/jquery.cookie.js

* jquery.form
resources/jquery/jquery.form.js

* jquery.fullscreen.js
resources/jquery/jquery.fullscreen.js

* jquery.hoverIntent
resources/jquery/jquery.hoverIntent.js

* jquery.json
resources/jquery/jquery.json.js

* jquery.mockjax
resources/jquery/jquery.mockjax.js

* jquery.qunit
resources/jquery/jquery.qunit.css
resources/jquery/jquery.qunit.js

* jquery.jStorage
resources/jquery/jquery.jStorage.js

* jquery.throttle-debounce
resources/jquery/jquery.ba-throttle-debounce.js

* jquery.validate
resources/jquery/jquery.validate.js

* jquery.xmldom
resources/jquery/jquery.xmldom.js

* moment
resources/moment/*

* OOjs
resource/oojs/*

* OOjs UI
resources/oojs-ui/*

* jquery.ui.*
resources/jquery.ui/*
resources/jquery.ui/themes/default moved to resources/lib/jquery.ui/themes/
resources/jquery.ui/themes/vector moved to resources/src/jquery.ui-themes/

* jquery.effects.*
resources/jquery.effects/*

* sinon
resources/sinonjs/*

Upstream libraries forked for MediaWiki

* jquery.color
resources/jquery/jquery.color.js

* jquery.tipsy
resources/jquery.tipsy/*

Local libraries

* jquery.arrowSteps
resources/jquery/jquery.arrowSteps.css
resources/jquery/jquery.arrowSteps.js
resources/jquery/images/jquery.arrowSteps.divider-ltr.png
resources/jquery/images/jquery.arrowSteps.divider-rtl.png
resources/jquery/images/jquery.arrowSteps.head-ltr.png
resources/jquery/images/jquery.arrowSteps.head-rtl.png
resources/jquery/images/jquery.arrowSteps.tail-ltr.png
resources/jquery/images/jquery.arrowSteps.tail-rtl.png

* jquery.autoEllipsis
resources/jquery/jquery.autoEllipsis.js

* jquery.badge
resources/jquery/jquery.badge.css
resources/jquery/jquery.badge.js

* jquery.byteLength
resources/jquery/jquery.byteLength.js

* jquery.byteLimit
resources/jquery/jquery.byteLimit.js

* jquery.checkboxShiftClick
resources/jquery/jquery.checkboxShiftClick.js

* jquery.client
resources/jquery/jquery.client.js

* jquery.colorUtil
resources/jquery/jquery.colorUtil.js

* jquery.delayedBind
resources/jquery/jquery.delayedBind.js

* jquery.expandableField
resources/jquery/jquery.expandableField.js

* jquery.farbtastic
resources/jquery/jquery.farbtastic.css
resources/jquery/jquery.farbtastic.js
resources/jquery/images/marker.png
resources/jquery/images/mask.png
resources/jquery/images/wheel.png

* jquery.footHovzer
resources/jquery/jquery.footHovzer.css
resources/jquery/jquery.footHovzer.js

* jquery.getAttrs
resources/jquery/jquery.getAttrs.js

* jquery.hidpi
resources/jquery/jquery.hidpi.js

* jquery.highlightText
resources/jquery/jquery.highlightText.js

* jquery.localize
resources/jquery/jquery.localize.js

* jquery.makeCollapsible
resources/jquery/jquery.makeCollapsible.css
resources/jquery/jquery.makeCollapsible.js

* jquery.mw-jump
resources/jquery/jquery.mw-jump.js

* jquery.mwExtension
resources/jquery/jquery.mwExtension.js

* jquery.placeholder
resources/jquery/jquery.placeholder.js

* jquery.spinner
resources/jquery/jquery.spinner.css
resources/jquery/jquery.spinner.js
resources/jquery/images/spinner-large.gif
resources/jquery/images/spinner.gif

* jquery.suggestions
resources/jquery/jquery.suggestions.css
resources/jquery/jquery.suggestions.js

* jquery.tabIndex
resources/jquery/jquery.tabIndex.js

* jquery.tablesorter
resources/jquery/jquery.tablesorter.css
resources/jquery/jquery.tablesorter.js
resources/jquery/images/sort_both.gif
resources/jquery/images/sort_down.gif
resources/jquery/images/sort_none.gif
resources/jquery/images/sort_up.gif

* jquery.textSelection
resources/jquery/jquery.textSelection.js

* jquery.qunit.completenessTest
resources/jquery/jquery.qunit.completenessTest.js

* mediawiki
resources/mediawiki/mediawiki.js
resources/mediawiki/mediawiki.log.js

* mediawiki.api
resources/mediawiki.api/mediawiki.api.js

* mediawiki.api.category
resources/mediawiki.api/mediawiki.api.category.js

* mediawiki.api.edit
resources/mediawiki.api/mediawiki.api.edit.js

* mediawiki.api.login
resources/mediawiki.api/mediawiki.api.login.js

* mediawiki.api.parse
resources/mediawiki.api/mediawiki.api.parse.js

* mediawiki.api.watch
resources/mediawiki.api/mediawiki.api.watch.js

* mediawiki.debug
resources/mediawiki/mediawiki.debug.js
resources/mediawiki/mediawiki.debug.less
resources/mediawiki/mediawiki.debug.profile.css
resources/mediawiki/mediawiki.debug.profile.js

* mediawiki.debug.init
resources/mediawiki/mediawiki.debug.init.js

* mediawiki.feedback
resources/mediawiki/mediawiki.feedback.css
resources/mediawiki/mediawiki.feedback.js
resources/mediawiki/mediawiki.feedback.spinner.gif

* mediawiki.hidpi
resources/mediawiki/mediawiki.hidpi.js

* mediawiki.hlist
resources/mediawiki/mediawiki.hlist.css
resources/mediawiki/mediawiki.hlist.js

* mediawiki.htmlform
resources/mediawiki/mediawiki.htmlform.js

* mediawiki.icon
resources/mediawiki/mediawiki.icon.less
resources/mediawiki/images/arrow-collapsed-ltr.png
resources/mediawiki/images/arrow-collapsed-ltr.svg
resources/mediawiki/images/arrow-collapsed-rtl.png
resources/mediawiki/images/arrow-collapsed-rtl.svg
resources/mediawiki/images/arrow-expanded.png
resources/mediawiki/images/arrow-expanded.svg

* mediawiki.inspect
resources/mediawiki/mediawiki.inspect.js

* mediawiki.notification
resources/mediawiki/mediawiki.notification.css
resources/mediawiki/mediawiki.notification.hideForPrint.css
resources/mediawiki/mediawiki.notification.js

* mediawiki.notify
resources/mediawiki/mediawiki.notify.js

* mediawiki.searchSuggest
resources/mediawiki/mediawiki.searchSuggest.css
resources/mediawiki/mediawiki.searchSuggest.js

* mediawiki.Title
resources/mediawiki/mediawiki.Title.js

* mediawiki.toc
resources/mediawiki/mediawiki.toc.js

* mediawiki.Uri
resources/mediawiki/mediawiki.Uri.js

* mediawiki.user
resources/mediawiki/mediawiki.user.js

* mediawiki.util
resources/mediawiki/mediawiki.util.js

* mediawiki.action.edit
resources/mediawiki.action/mediawiki.action.edit.js

* mediawiki.action.edit.styles
resources/mediawiki.action/mediawiki.action.edit.styles.css

* mediawiki.action.edit.collapsibleFooter
resources/mediawiki.action/mediawiki.action.edit.collapsibleFooter.css
resources/mediawiki.action/mediawiki.action.edit.collapsibleFooter.js

* mediawiki.action.edit.preview
resources/mediawiki.action/mediawiki.action.edit.preview.js

* mediawiki.action.history
resources/mediawiki.action/mediawiki.action.history.js

* mediawiki.action.history.diff
resources/mediawiki.action/mediawiki.action.history.diff.css

* mediawiki.action.view.dblClickEdit
resources/mediawiki.action/mediawiki.action.view.dblClickEdit.js

* mediawiki.action.view.metadata
resources/mediawiki.action/mediawiki.action.view.metadata.js

* mediawiki.action.view.postEdit
resources/mediawiki.action/mediawiki.action.view.postEdit.css
resources/mediawiki.action/mediawiki.action.view.postEdit.js
resources/mediawiki.action/images/green-checkmark.png

* mediawiki.action.view.redirectToFragment
resources/mediawiki.action/mediawiki.action.view.redirectToFragment.js

* mediawiki.action.view.rightClickEdit
resources/mediawiki.action/mediawiki.action.view.rightClickEdit.js

* mediawiki.action.edit.editWarning
resources/mediawiki.action/mediawiki.action.edit.editWarning.js

* mediawiki.action.watch.ajax
  No files associated with this resource.

* mediawiki.language
resources/mediawiki.language/mediawiki.language.js
resources/mediawiki.language/mediawiki.language.numbers.js
resources/mediawiki.language/languages/bs.js
resources/mediawiki.language/languages/dsb.js
resources/mediawiki.language/languages/fi.js
resources/mediawiki.language/languages/ga.js
resources/mediawiki.language/languages/he.js
resources/mediawiki.language/languages/hsb.js
resources/mediawiki.language/languages/hu.js
resources/mediawiki.language/languages/hy.js
resources/mediawiki.language/languages/la.js
resources/mediawiki.language/languages/os.js
resources/mediawiki.language/languages/ru.js
resources/mediawiki.language/languages/sl.js
resources/mediawiki.language/languages/uk.js

* mediawiki.cldr
resources/mediawiki.language/mediawiki.cldr.js

* mediawiki.libs.pluralruleparser
  Possibly should be moved to /lib
resources/mediawiki.libs/CLDRPluralRuleParser.js

* mediawiki.language.init
resources/mediawiki.language/mediawiki.language.init.js

* mediawiki.jqueryMsg
resources/mediawiki/mediawiki.jqueryMsg.js
resources/mediawiki/mediawiki.jqueryMsg.peg

* mediawiki.language.months
resources/mediawiki.language/mediawiki.language.months.js

* mediawiki.libs.jpegmeta
resources/mediawiki.libs/mediawiki.libs.jpegmeta.js

* mediawiki.page.gallery
resources/mediawiki.page/mediawiki.page.gallery.js

* mediawiki.page.ready
resources/mediawiki.page/mediawiki.page.ready.js

* mediawiki.page.startup
resources/mediawiki.page/mediawiki.page.startup.js

* mediawiki.page.patrol.ajax
resources/mediawiki.page/mediawiki.page.patrol.ajax.js

* mediawiki.page.watch.ajax
resources/mediawiki.page/mediawiki.page.watch.ajax.js

* mediawiki.page.image.pagination
resources/mediawiki.page/mediawiki.page.image.pagination.js

* mediawiki.special
resources/mediawiki.special/mediawiki.special.css
resources/mediawiki.special/mediawiki.special.js

* mediawiki.special.block
resources/mediawiki.special/mediawiki.special.block.css
resources/mediawiki.special/mediawiki.special.block.js

* mediawiki.special.changeemail
resources/mediawiki.special/mediawiki.special.changeemail.css
resources/mediawiki.special/mediawiki.special.changeemail.js

* mediawiki.special.changeslist
resources/mediawiki.special/mediawiki.special.changeslist.css

* mediawiki.special.changeslist.legend
resources/mediawiki.special/mediawiki.special.changeslist.legend.css

* mediawiki.special.changeslist.legend.js
resources/mediawiki.special/mediawiki.special.changeslist.legend.js

* mediawiki.special.changeslist.enhanced
resources/mediawiki.special/mediawiki.special.changeslist.enhanced.css

* mediawiki.special.movePage
resources/mediawiki.special/mediawiki.special.movePage.js

* mediawiki.special.pagesWithProp
resources/mediawiki.special/mediawiki.special.pagesWithProp.css

* mediawiki.special.preferences
resources/mediawiki.special/mediawiki.special.preferences.css
resources/mediawiki.special/mediawiki.special.preferences.js

* mediawiki.special.recentchanges
resources/mediawiki.special/mediawiki.special.recentchanges.js

* mediawiki.special.search
resources/mediawiki.special/mediawiki.special.search.css
resources/mediawiki.special/mediawiki.special.search.js

* mediawiki.special.undelete
resources/mediawiki.special/mediawiki.special.undelete.js

* mediawiki.special.upload
resources/mediawiki.special/mediawiki.special.upload.js

* mediawiki.special.userlogin.common.styles
resources/mediawiki.special/mediawiki.special.userlogin.common.css
resources/mediawiki.special/images/icon-lock.png

* mediawiki.special.userlogin.signup.styles
resources/mediawiki.special/mediawiki.special.userlogin.signup.css
resources/mediawiki.special/images/icon-edits.png
resources/mediawiki.special/images/icon-pages.png
resources/mediawiki.special/images/icon-contributors.png

* mediawiki.special.userlogin.login.styles
resources/mediawiki.special/mediawiki.special.userlogin.login.css
resources/mediawiki.special/images/glyph-people-large.png

* mediawiki.special.userlogin.common.js
resources/mediawiki.special/mediawiki.special.userlogin.common.js

* mediawiki.special.userlogin.signup.js
resources/mediawiki.special/mediawiki.special.userlogin.signup.js

* mediawiki.special.javaScriptTest
resources/mediawiki.special/mediawiki.special.javaScriptTest.js

* mediawiki.special.version
resources/mediawiki.special/mediawiki.special.version.css

* mediawiki.ui
resources/mediawiki.ui/default.less
resources/mediawiki.ui/vector.less
resources/mediawiki.ui/components/utilities.less
resources/mediawiki.ui/components/default/forms.less
resources/mediawiki.ui/components/vector/containers.less
resources/mediawiki.ui/components/vector/forms.less
resources/mediawiki.ui/mixins/effects.less
resources/mediawiki.ui/mixins/forms.less
resources/mediawiki.ui/mixins/type.less
resources/mediawiki.ui/mixins/utilities.less
resources/mediawiki.ui/settings/colors.less
resources/mediawiki.ui/settings/typography.less
resources/mediawiki.ui/styleguide.md

* mediawiki.ui.button
resources/mediawiki.ui/components/default/buttons.less
resources/mediawiki.ui/components/vector/buttons.less

Legacy modules, untouched:

* mediawiki.legacy.ajax
* mediawiki.legacy.commonPrint
* mediawiki.legacy.config
* mediawiki.legacy.protect
* mediawiki.legacy.shared
* mediawiki.legacy.oldshared
* mediawiki.legacy.upload
* mediawiki.legacy.wikibits

Miscellaneous files moved elsewhere

* A currently-failing (unused?) script attempting to build some kss style documentation.
  Previously in the root of the resources directory, now moved to a new folder, /docs/kss.
Makefile
README.txt
package.json
scripts/nodecheck.sh
styleguide-template/index.html
styleguide-template/public/kss.less
styleguide-template/public/less.js

* ResourceLoader startup JS code was also moved to /src
resources/startup.js

* mediawiki.mixins, hard-coded to be loaded by ResourceLoader, also moved to /src
resources/mediawiki.less/mediawiki.mixins.animation.less
resources/mediawiki.less/mediawiki.mixins.less
resources/mediawiki.less/mediawiki.mixins.rotation.less

* jquery.cycle.all.js appears not to be refered to (?!):
  (added in 2f1f0abc6b)
resources/jquery/jquery.cycle.all.js

Change-Id: Id5ead1453412e763bdb3763084e43694517088fd

10 years agoMerge "Cache VCS commit id/date text on Special:Version"
jenkins-bot [Mon, 7 Apr 2014 19:16:03 +0000 (19:16 +0000)]
Merge "Cache VCS commit id/date text on Special:Version"

10 years agoCache VCS commit id/date text on Special:Version
Alex Monk [Sun, 17 Nov 2013 17:30:42 +0000 (17:30 +0000)]
Cache VCS commit id/date text on Special:Version

So Special:Version works on beta.wmflabs.org again

Bug: 53335
Change-Id: I5a5b23a73974aba2322bf69f534e8aa8b60741db

10 years agojquery.suggestions, mediawiki.searchSuggest: Don't use jquery.autoEllipsis
Bartosz Dziewoński [Tue, 4 Feb 2014 12:11:17 +0000 (13:11 +0100)]
jquery.suggestions, mediawiki.searchSuggest: Don't use jquery.autoEllipsis

(How's that for a loaded commit topic, huh?)

We can just use text-overflow: ellipsis, which is widely supported
these days. The result is a lot less code being loaded on every page
view and a lot less processing being done on the suggestions.

This changes the position of the ellipsis from the "middle" of the
text to the end of it. I don't think this is a problem.

Bug: 30309
Bug: 59172
Change-Id: I6fc229a292a90a3cbb945b58061ee99b0ac7f97d

10 years agoMerge "Error Msg for missing db username & password when installing"
jenkins-bot [Mon, 7 Apr 2014 16:58:59 +0000 (16:58 +0000)]
Merge "Error Msg for missing db username & password  when installing"

10 years agoError Msg for missing db username & password when installing
pubudu538 [Sat, 15 Mar 2014 07:07:07 +0000 (12:37 +0530)]
Error Msg for missing db username & password  when installing

Added configurations for Mysql and Postgresql installers
to display an error message if user doesnt input a username to the
database username

Bug: 43528
Bug: 59663
Change-Id: Ib6b05d2d7e8ebb4438d3b0051c33d367f41a9957

10 years agoApiQueryDeletedrevs: Fix getDescription() docs
Bartosz Dziewoński [Mon, 7 Apr 2014 14:10:55 +0000 (16:10 +0200)]
ApiQueryDeletedrevs: Fix getDescription() docs

Strings were incorrectly quoted.

Change-Id: I5b7aa4709a9bfde36b4e81ba8ea3e15efde003b1

10 years agoMerge "Allow access to revision deleted wikitext on action=edit"
jenkins-bot [Mon, 7 Apr 2014 13:19:51 +0000 (13:19 +0000)]
Merge "Allow access to revision deleted wikitext on action=edit"

10 years agoMerge "Revert "Temporarily remove tests added in I8eef5a165""
jenkins-bot [Mon, 7 Apr 2014 13:18:30 +0000 (13:18 +0000)]
Merge "Revert "Temporarily remove tests added in I8eef5a165""

10 years agoMerge "Changed some comments from /// to /** @var */"
jenkins-bot [Mon, 7 Apr 2014 12:13:15 +0000 (12:13 +0000)]
Merge "Changed some comments from /// to /** @var */"

10 years agoRemove misspelling for ExpandTemplates special page
Siebrand Mazeland [Mon, 7 Apr 2014 10:00:28 +0000 (12:00 +0200)]
Remove misspelling for ExpandTemplates special page

This misspelling would have been a case insensitive equivalent, so it was
not needed.

Change-Id: I5e234cba686b1f2a8d359c370301425c0ae332ce

10 years agoAdd extra views (tabs) for files in a foreign repository
This, that and the other [Mon, 7 Apr 2014 10:00:11 +0000 (20:00 +1000)]
Add extra views (tabs) for files in a foreign repository

Previously, foreign files with no local page had only a [Create] tab, with
no explanation that this created a local description page. There was not
even a [Read] tab - from SkinTemplate's perspective, a foreign file page
did not exist.

This patch changes the following view tabs:
* [Read] now always appears on foreign files - no change in functionality
* New tab [View on <repo name>] always appears on foreign files
* [Create] tab renamed to [Add local description] for foreign files without
  a local page
* [Edit] tab renamed to [Edit local description] for foreign files with a
  local page

This is related to bug 26525. I am hesitant to implement a [Edit on
<repo name>] tab that goes straight to the edit screen, as I worry about
users getting confused and thinking they are editing the file locally.

Change-Id: I4a43b759b7a7e9ac2c8d437408847bf3b6c1f4a9

10 years agoMerge "Remove button-math"
jenkins-bot [Mon, 7 Apr 2014 09:38:35 +0000 (09:38 +0000)]
Merge "Remove button-math"

10 years agoRemove button-math
Moritz Schubotz (Physikerwelt) [Sun, 6 Apr 2014 08:37:39 +0000 (08:37 +0000)]
Remove button-math

The button-math is now created by the Extension:Math
see I3d126c1c252c27fa65ab8fb42ffab66a2d99cfa8

Bug: 60471
Change-Id: Ib17aa47c7d647e1ed293541adbdd1aa77e25e59e

10 years agoChanged some comments from /// to /** @var */
umherirrender [Sun, 6 Apr 2014 18:02:32 +0000 (20:02 +0200)]
Changed some comments from /// to /** @var */

Change-Id: I55b30099e4464c272c35bcabbddbb0b1364a5d65

10 years agoAllow passing parameters to preload
Jackmcbarn [Mon, 7 Apr 2014 01:03:02 +0000 (21:03 -0400)]
Allow passing parameters to preload

When pages are loaded in the edit box via preload, allow parameter
substitution. The interface-style $1 is used rather than the
template-style {{{1}}} to avoid conflicts with preloads that add template
parameters. Syntax is:
action=edit&preload=Foo&preloadparams[]=first&preloadparams[]=second

Bug: 12853
Change-Id: If02cf4b3dba9f9d22a956d8bfff224677cbce00d

10 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sun, 6 Apr 2014 19:50:01 +0000 (19:50 +0000)]
Localisation updates from https://translatewiki.net.

Change-Id: Ifa7ad1aff1263465248fb63d40007bb99c3024ff

10 years agoFix [missing] variables in @param docs
umherirrender [Sun, 6 Apr 2014 18:11:30 +0000 (20:11 +0200)]
Fix [missing] variables in @param docs

Two places found without variable, one without $ and one only missed a
space before $

Change-Id: Iacd7c386d57223f3a112b59cd11383ef5c0ac2f1

10 years agoMerge "Remove unused 'prefs-beta' message"
jenkins-bot [Sun, 6 Apr 2014 16:19:47 +0000 (16:19 +0000)]
Merge "Remove unused 'prefs-beta' message"

10 years agoRevert "Temporarily remove tests added in I8eef5a165"
Aude [Sun, 6 Apr 2014 13:18:07 +0000 (13:18 +0000)]
Revert "Temporarily remove tests added in I8eef5a165"

this was to be temporary, right? we need the tests in.

If there are issues with jenkins, this is not the *best*
way to fix them.

This reverts commit 44a19685317de16f5afe42b710d8d412352d7fe9.

Change-Id: I5dd60a9818c28155d96a6642c588781667e682c3

10 years agoMerge "mediawiki.action.edit.js: Remove WikiEditor iframe hack from 2010"
jenkins-bot [Sun, 6 Apr 2014 13:01:36 +0000 (13:01 +0000)]
Merge "mediawiki.action.edit.js: Remove WikiEditor iframe hack from 2010"

10 years agoMerge "mediawiki.util: Init tooltipAccessKeyPrefix immediately instead of on domready"
jenkins-bot [Sun, 6 Apr 2014 11:43:18 +0000 (11:43 +0000)]
Merge "mediawiki.util: Init tooltipAccessKeyPrefix immediately instead of on domready"

10 years agomediawiki.util: Init tooltipAccessKeyPrefix immediately instead of on domready
Fomafix [Sat, 5 Apr 2014 18:46:53 +0000 (18:46 +0000)]
mediawiki.util: Init tooltipAccessKeyPrefix immediately instead of on domready

Change-Id: I60e30e1d029d29b713b229bf2b0313e92a59f120

10 years agoMerge "Make chunked upload jobs robust in face of exceptions."
jenkins-bot [Sun, 6 Apr 2014 09:26:10 +0000 (09:26 +0000)]
Merge "Make chunked upload jobs robust in face of exceptions."

10 years agoMerge "When uploading a new file, save to memcached directly after commit"
jenkins-bot [Sun, 6 Apr 2014 09:26:03 +0000 (09:26 +0000)]
Merge "When uploading a new file, save to memcached directly after commit"

10 years agoMerge "Make doEditContent call $dbw->rollback() if exception happens"
jenkins-bot [Sun, 6 Apr 2014 09:12:02 +0000 (09:12 +0000)]
Merge "Make doEditContent call $dbw->rollback() if exception happens"

10 years agoMerge "shared.css: Move sup, sub styling from commonElements to shared styles"
TheDJ [Sun, 6 Apr 2014 08:53:03 +0000 (08:53 +0000)]
Merge "shared.css: Move sup, sub styling from commonElements to shared styles"

10 years agoMake doEditContent call $dbw->rollback() if exception happens
Brian Wolff [Sun, 6 Apr 2014 03:16:37 +0000 (00:16 -0300)]
Make doEditContent call $dbw->rollback() if exception happens

doEditContent calls a variety of methods in the middle of its
database transaction that can throw exceptions. For example if
$revision->insertOn() throws an exception, it can cause
referential integrity issues unless the transaction is rolled
back by something further up the chain (Thus see I5807e, I8f1da5).

It seems like it would be more reliable if doEditContent rolled
back its own transaction in exceptional circumstances. So this
patch puts everything in a try block, and does rollback if
an exception happens.

Bug: 63145
Bug: 32551
Change-Id: Icc44687da4edb1a72f13d2b95bfee2eea3ad6808

10 years agoOptimize all SVGs
Bartosz Dziewoński [Sat, 8 Feb 2014 13:48:37 +0000 (14:48 +0100)]
Optimize all SVGs

Once more, with feeling. First reverted attempt: a9b855ee.

Passed with svgo 0.4.2 <https://github.com/svg/svgo>, then prepended
'<?xml version="1.0" encoding="UTF-8"?>' prolog to each file since
svgo sees it fit to remove it and that breaks just about everything.

Previous attempt used a '<?xml version="1.0" ?>' prolog, which
apparently is too short to ensure the file is picked up as an SVG in
some versions of the 'file' utility; see PleaseStand's comments on
bug 59234. We could just add some spaces instead of 'encoding="UTF-8"',
but it seems like a reasonable thing to add.

Skipped the ones in tests/, there's some weird stuff there and they
didn't shrink much when I tried anyway.

Total file size reduced from ~30 KB to ~10 KB.

---

For future reference, the prolog appending was done with the following
script:

for i in `find . -name '*.svg'`
do
    mv $i $i-tmp
    (echo -n '<?xml version="1.0" encoding="UTF-8"?>'; cat $i-tmp) > $i
    rm $i-tmp
done

---

Bug: 59744
Change-Id: Ic9fdd081003b694dbd7e413ca25fffe782b912b5

10 years agoMerge "Rollback transaction in case of uncaught exceptions during job"
jenkins-bot [Sun, 6 Apr 2014 02:31:43 +0000 (02:31 +0000)]
Merge "Rollback transaction in case of uncaught exceptions during job"

10 years agoWhen uploading a new file, save to memcached directly after commit
Brian Wolff [Sun, 6 Apr 2014 02:50:10 +0000 (23:50 -0300)]
When uploading a new file, save to memcached directly after commit

Previously if an exception was thrown when creating the description
page, the old (negative) memcached entry would not be purged, and
the file would appear not to exist until 24 hours later.

This way, as soon as we have the image row committed to db, we
change the memcache entry, so memcache of image row always looks
like actual image row.

Bug: 32551
Change-Id: I9c260e9a4a1e0d6ade1771542dd834f969904cef

10 years agoMake chunked upload jobs robust in face of exceptions.
Brian Wolff [Sun, 6 Apr 2014 02:15:26 +0000 (23:15 -0300)]
Make chunked upload jobs robust in face of exceptions.

If an exception occurs when creating the new image page during
PublishStashedFile (for example, if ExternalStorage servers
become overloaded), the job is aborted, but the current
transaction is not aborted. Then the next job comes along, does
$dbw->begin(), which implicitly commits the current open
transactions, causing database corruption (entries in page table
with page_latest = 0).

This patch ensures that if some unknown exception occurs during
the job, that the database gets rolled back to a known good state.

I also plan to make a separate patch to make the recordUpload
code handle exceptions properly. Nonetheless, I think its
important that the general job code be as robust as possible.

Bug: 32551
Change-Id: Icb5e06e81700e5dcf0d4e739c7b2bb3221e718b8