jenkins-bot [Mon, 16 Mar 2015 15:10:21 +0000 (15:10 +0000)]
Merge "Lower timeout of upload stash -> image scaler requests"
Derk-Jan Hartman [Tue, 10 Mar 2015 21:27:01 +0000 (22:27 +0100)]
ApiParse: Support previewing section=new
When live previewing a 'new' section, we want to automatically add the
edit summary/sectiontitle as an H2 element, as the Edit Page and API
do as well.
Bug: T84877
Change-Id: I40925c16284bb97a4d491e12a8e7878b9d1b4810
Prtksxna [Mon, 16 Mar 2015 10:36:07 +0000 (10:36 +0000)]
Merge "Enable mw-ui-radio styles on Special:Preferences"
Translation updater bot [Sun, 15 Mar 2015 20:17:22 +0000 (21:17 +0100)]
Localisation updates from https://translatewiki.net.
Change-Id: I5547cae4cf155c31b20a231e1fd7f81848e14612
Brad Jorsch [Sat, 14 Mar 2015 01:11:13 +0000 (21:11 -0400)]
Set main RequestContext title in api.php
We set $wgTitle to a dummy title, and RequestContext::getMain()->getTitle()
falls back to that so everything *works*, but RequestContext whines
about it.
Set the same dummy title explicitly on RequestContext::getMain() to shut
things up.
Bug: T78414
Change-Id: I5b90df16cf2f51a6edd5898e9712161f335202a7
jenkins-bot [Sun, 15 Mar 2015 19:14:01 +0000 (19:14 +0000)]
Merge "Fix phpcs errors and warnings in includes/specialpage"
Kunal Mehta [Sun, 15 Mar 2015 02:40:15 +0000 (19:40 -0700)]
Fix phpcs errors and warnings in includes/specialpage
Change-Id: Ie9276c162e20b28915d31e5a87b2f18cf1c295b6
Fomafix [Thu, 18 Dec 2014 13:14:54 +0000 (13:14 +0000)]
API: Return parsedsummary on onlypst
This updates the summary preview on "Show changes" for LivePreview.
Bug: T84836
Change-Id: I169fd1e1b6ed4d4f43ca69f92bc7a38e7823ddae
jenkins-bot [Sun, 15 Mar 2015 03:29:59 +0000 (03:29 +0000)]
Merge "Fix phpcs errors and warnings in includes/site"
Kunal Mehta [Fri, 30 Jan 2015 21:36:52 +0000 (13:36 -0800)]
resourceloader: Add ResourceLoader::isModuleRegistered()
Currently if code wants to check whether a module is registered it
has to call getModule() and see if the response !== null.
Change-Id: I4b470083ddaa5d8cd6be50d5c5b690d4b99b6c4a
jenkins-bot [Sun, 15 Mar 2015 02:45:32 +0000 (02:45 +0000)]
Merge "Fix phpcs errors and warnings in includes/exception"
jenkins-bot [Sun, 15 Mar 2015 02:42:53 +0000 (02:42 +0000)]
Merge "Fix phpcs errors and warnings in includes/json"
jenkins-bot [Sun, 15 Mar 2015 02:42:48 +0000 (02:42 +0000)]
Merge "Fix phpcs errors and warnings in includes/skins"
jenkins-bot [Sun, 15 Mar 2015 02:42:13 +0000 (02:42 +0000)]
Merge "Fix phpcs errors and warnings in includes/filerepo"
Kunal Mehta [Sun, 15 Mar 2015 02:12:18 +0000 (19:12 -0700)]
Fix phpcs errors and warnings in includes/site
Change-Id: Id6ae5659af6062b92bb964f1f0951e61408725ec
Kunal Mehta [Sun, 15 Mar 2015 01:59:28 +0000 (18:59 -0700)]
Fix phpcs errors and warnings in includes/exception
Change-Id: I979c94a41df67426e621a734d5a86d55b890d269
Kunal Mehta [Sun, 15 Mar 2015 02:11:19 +0000 (19:11 -0700)]
Fix phpcs errors and warnings in includes/json
Change-Id: Id5ae1cabe87f73f7458a744834ebb6a1a7c3dbf8
Kunal Mehta [Sun, 15 Mar 2015 02:09:54 +0000 (19:09 -0700)]
Fix phpcs errors and warnings in includes/skins
Change-Id: I800f8fcd6c1ac16d0a0bd20799550de577306ded
Kunal Mehta [Sun, 15 Mar 2015 02:04:52 +0000 (19:04 -0700)]
Fix phpcs errors and warnings in includes/filerepo
Change-Id: I8a2b437f9f393baf4ee6546d654d56845fcdd1b6
Kunal Mehta [Sun, 15 Mar 2015 01:52:45 +0000 (18:52 -0700)]
Fix phpcs warning and errors in includes/resourceloader
Mainly breaking long lines
Change-Id: Ide37c81d156348cfb8a010043d79eaf80f95fded
jenkins-bot [Sat, 14 Mar 2015 23:59:32 +0000 (23:59 +0000)]
Merge "Fix IRC lines for blocks published with the old logging system"
Translation updater bot [Sat, 14 Mar 2015 20:10:52 +0000 (21:10 +0100)]
Localisation updates from https://translatewiki.net.
Change-Id: I695a54629fa78b7ccfe20c9f76df25eeffd1d181
umherirrender [Sat, 14 Mar 2015 11:17:24 +0000 (12:17 +0100)]
Fix IRC lines for blocks published with the old logging system
The CheckUser and GlobalBlocking extension are inserting the block logs
over the old logging system, where the keys are numeric.
This case is not known when building the irc line, because that was
already migrated to just get the new style.
Added compatibility code for legacy rows.
Needs the legacy flag also in ManualLogEntry to make this happen,
because it is using the LogFormatter of the new logging system to format
the actionText.
Have not found the old way for block/reblock, so just for block/block.
Bug: T92713
Follow-Up: Ibc7fcaa5a952ff90d42a6477da4baa429f3de64b
Change-Id: I08aea8399ce766e98c1a76e237169f220c6cc751
Adam Roses Wight [Sat, 14 Mar 2015 08:35:54 +0000 (01:35 -0700)]
phpcs fixups for line length
Change-Id: Ic36b111dcae0880fb34fb336065098650a30db5f
jenkins-bot [Sat, 14 Mar 2015 08:02:51 +0000 (08:02 +0000)]
Merge "Update code examples in docs/hooks.txt"
umherirrender [Fri, 13 Mar 2015 16:58:52 +0000 (17:58 +0100)]
Update code examples in docs/hooks.txt
Adjust for code convention and wfRunHooks -> Hooks::run
Bug: T85588
Change-Id: I0297e389eb761822b0b5b9ea7a0a0a7990790677
jenkins-bot [Sat, 14 Mar 2015 00:20:43 +0000 (00:20 +0000)]
Merge "mediawiki.page.startup: Use document.documentElement instead of 'html'"
Kunal Mehta [Fri, 13 Mar 2015 23:25:44 +0000 (16:25 -0700)]
Update documentation for SpecialPage_initList
State that it can be used to conditionally register special pages
Change-Id: I83fd793c9cbb7a70fe97186f72078ee021a79475
Aaron Schulz [Fri, 13 Mar 2015 01:06:28 +0000 (18:06 -0700)]
Made getNewtalk use slaves instead of cache/master
* This was causing floods of master connections on page views
Bug: T92357
Change-Id: I02fd1505f589112b8f6217047e6713845142a1c3
Translation updater bot [Fri, 13 Mar 2015 20:57:47 +0000 (21:57 +0100)]
Localisation updates from https://translatewiki.net.
Change-Id: I2cdf3805a5d8e395e040a069d16c53ab5ed0c164
Bartosz Dziewoński [Fri, 13 Mar 2015 18:49:15 +0000 (19:49 +0100)]
Html: Make addition of 'mw-ui-input' conditional on $wgUseMediaWikiUIEverywhere
We were always adding it previously, which seemed harmless since
'mediawiki.ui.input' RL module, providing the styling, was only loaded
if $wgUseMediaWikiUIEverywhere was true… unless someone loaded it
manually to have specific input fields styled. Whoops.
There are a lot more unconditional additions like this in tons of
places in the code, and someone should check whether each one is
intentional or not, but probably no one will. Oh well.
Bug: T92496
Change-Id: I5e91a3852a76ebbbfe64485bccb4c30ddee28b66
jenkins-bot [Fri, 13 Mar 2015 18:01:46 +0000 (18:01 +0000)]
Merge "Removed newFromConds master fallback logic; obsoleted by $flags"
jenkins-bot [Fri, 13 Mar 2015 17:32:50 +0000 (17:32 +0000)]
Merge "Avoid certain useless dbperformance log entries"
aude [Fri, 13 Mar 2015 10:16:31 +0000 (11:16 +0100)]
Fix comment typo in mediawiki.legacy/protect.js
Change-Id: I82c351d0d89a3f65ba9aa65cd11ca9b5ba99d6c5
Fomafix [Fri, 13 Mar 2015 09:06:46 +0000 (09:06 +0000)]
mediawiki.page.startup: Use document.documentElement instead of 'html'
Change-Id: If443fdc543a0eebcaa3d82ab92eadb39b0f0f196
jenkins-bot [Fri, 13 Mar 2015 08:44:02 +0000 (08:44 +0000)]
Merge "Return HTTP 500 not 200 from thumb.php when streaming fails"
jenkins-bot [Fri, 13 Mar 2015 07:06:33 +0000 (07:06 +0000)]
Merge "Add linkable anchor #L<N> to (original text) line number in diff"
jenkins-bot [Fri, 13 Mar 2015 07:01:30 +0000 (07:01 +0000)]
Merge "Pass context to FormatMetadata class on ImagePage"
Federico Leva [Fri, 16 Jan 2015 23:14:10 +0000 (00:14 +0100)]
Add linkable anchor #L<N> to (original text) line number in diff
Bug: T63486
Change-Id: I068c7f6167e20f42cb675335554b98ff1fb83e16
jenkins-bot [Fri, 13 Mar 2015 06:44:51 +0000 (06:44 +0000)]
Merge "Replacing generic Exception with Exception subclasses"
jenkins-bot [Fri, 13 Mar 2015 06:30:05 +0000 (06:30 +0000)]
Merge "Add support for HD versions of the wiki logo in MonoBook-like skins."
isarra [Mon, 9 Mar 2015 01:55:31 +0000 (01:55 +0000)]
Add support for HD versions of the wiki logo in MonoBook-like skins.
Done using an array $wgLogoHD, which expects something like the following:
$wgLogoHD = array(
"1.5x" => "path/to/1.5x_version.png",
"2x" => "path/to/2x_version.png"
);
This is still horrible, but I dunno how to make it less horrible. Help.
Bug: T37337
Change-Id: Iee3e73c1f96b81c2094418986cf1c267d93d1bdd
jenkins-bot [Fri, 13 Mar 2015 06:09:10 +0000 (06:09 +0000)]
Merge "Made JobQueueFederated::supportsDelayedJobs() check all the partition queues"
jenkins-bot [Fri, 13 Mar 2015 06:00:11 +0000 (06:00 +0000)]
Merge "Title: Consider empty edit notices to not exist"
jenkins-bot [Fri, 13 Mar 2015 05:58:55 +0000 (05:58 +0000)]
Merge "Title: Clean up getEditNotices()"
Aaron Schulz [Fri, 13 Mar 2015 01:50:05 +0000 (18:50 -0700)]
Avoid certain useless dbperformance log entries
* If DB_SLAVE was used but a master was picked due to having
non-zero load, that should not issue a warning.
Change-Id: I79f3c477b4160b15ffb7f7679d7e15cabc236b82
jenkins-bot [Fri, 13 Mar 2015 00:28:54 +0000 (00:28 +0000)]
Merge "Updated Revision::newFromId() callers to use READ_LATEST as needed"
James D. Forrester [Thu, 12 Mar 2015 23:48:59 +0000 (16:48 -0700)]
Update OOjs UI to v0.9.2
Release notes:
https://git.wikimedia.org/blob/oojs%2Fui.git/v0.9.2/History.md
Bypassing /vendor this time as no PHP changes.
Change-Id: I05830110d624bc1cd9a7c1244f3f0f34835326dd
Aaron Schulz [Thu, 12 Mar 2015 23:47:21 +0000 (16:47 -0700)]
Updated Revision::newFromId() callers to use READ_LATEST as needed
Change-Id: Idcc071e99a712cf3208c10059d476dafe95044cf
jenkins-bot [Thu, 12 Mar 2015 23:40:14 +0000 (23:40 +0000)]
Merge "qunit: Use default (~1-4ms) delay instead of 10ms or 150ms"
Timo Tijhof [Thu, 12 Mar 2015 23:15:40 +0000 (00:15 +0100)]
qunit: Use default (~1-4ms) delay instead of 10ms or 150ms
* jquery.byteLimit: Speeds up test suite from 425ms to about 275s.
* mediawiki: Speeds up test suite from 870ms to 350ms.
(Measures as reported by QUnit, using Chrome on OSX with a MacBook Pro)
Change-Id: Ia8db228219175c1aea6eb1b1edacf521494d3bdb
Adam Roses Wight [Wed, 11 Mar 2015 07:21:30 +0000 (00:21 -0700)]
Clean up oldid argument to Content::prepareSave()
The prepareSave function expects the latest revision ID of the article
being replaced. Instead, we were passing an ID only used for rollbacks
and other special effects.
Change-Id: I4647930566b9370052a820ae3a46e10a6bba65ce
Gergő Tisza [Thu, 12 Mar 2015 22:50:19 +0000 (22:50 +0000)]
Return HTTP 500 not 200 from thumb.php when streaming fails
Bug: T92545
Change-Id: Id40a8f401232cc7b9ca102a2866957f80c5ec8a3
jenkins-bot [Thu, 12 Mar 2015 22:00:51 +0000 (22:00 +0000)]
Merge "Avoid excess master queries in getTimestampFromId"
Timo Tijhof [Thu, 12 Mar 2015 19:31:13 +0000 (20:31 +0100)]
mediawiki.action.edit.preview: Hide inserted div#wikiDiff by default
Avoids a redraw when the node is inserted because the <div> with
the placeholder table does have height (~ 5px). Causing it to move
everything below it after the page loads.
Bug: T92552
Change-Id: I43d44c070ce6b5861dd3ee0d9968475d24df59a3
kaldari [Thu, 12 Mar 2015 21:31:32 +0000 (14:31 -0700)]
Replacing generic Exception with Exception subclasses
Improves ability to debug.
Change-Id: I21a51fc5b4f185a01ba4706bd5a853c2974057dd
jenkins-bot [Thu, 12 Mar 2015 20:35:21 +0000 (20:35 +0000)]
Merge "Update OOjs UI to v0.9.1"
Timo Tijhof [Thu, 12 Mar 2015 20:15:43 +0000 (21:15 +0100)]
Title: Consider empty edit notices to not exist
Don't include edit notices that parse to nothing in the output
array.
Similar filtering logic currently exists in VisualEditor. This
helps support systems like the one on English Wikipedia where an
Editnotice page may exist, but conditionally outputs the actual
notice.
Bug: T91715
Change-Id: Ic8fb038fd6acf18830cafdd09a8ca86f3950c7a5
Timo Tijhof [Thu, 12 Mar 2015 20:12:30 +0000 (21:12 +0100)]
Title: Clean up getEditNotices()
Change-Id: I4ad5e16dfe42494ee6d8c43cfc50ae57e2b9a2d4
Translation updater bot [Thu, 12 Mar 2015 19:58:07 +0000 (20:58 +0100)]
Localisation updates from https://translatewiki.net.
Change-Id: I8d8c741d66891c08fce33b38e867e485e70cfa74
James D. Forrester [Thu, 12 Mar 2015 19:12:01 +0000 (12:12 -0700)]
Update OOjs UI to v0.9.1
Release notes:
https://git.wikimedia.org/blob/oojs%2Fui.git/v0.9.1/History.md
Change-Id: I936ea56e1c99f576f44115a9b2fa075ef1ab14bd
Chad Horohoe [Thu, 12 Mar 2015 18:53:21 +0000 (11:53 -0700)]
Pass if log entry is legacy to ApiQueryLogEvents::addLogParams()
Querying via ApiQueryRecentChanges and ApiQueryWatchlist did not
pass if a particular log entry was a legacy log entry.
Ultimately CheckUser should stop writing legacy style log entries
too but we can at least behave properly when we hit them.
Bug: T91466
Change-Id: I1564ec7e599e2f9d78775e63e06eca84db497a43
jenkins-bot [Thu, 12 Mar 2015 17:17:16 +0000 (17:17 +0000)]
Merge "Mark DoEditSectionLink hook as deprecated"
Kunal Mehta [Thu, 12 Mar 2015 16:51:59 +0000 (09:51 -0700)]
Mark DoEditSectionLink hook as deprecated
Change-Id: I347fe68900c98080bf3070a1b0bf5a005048868a
JuneHyeon Bae [Wed, 18 Jun 2014 02:45:32 +0000 (11:45 +0900)]
Refactor out 'infinity' variants
Refactor out 'infinity' vartiant values which used in blocking and
protecting actions. This patchset adds GlobalFunction wfIsInfinity.
Bug: T68646
Change-Id: I60cc55a5bbd43c72916a1c2ea3807457d4e33765
jenkins-bot [Thu, 12 Mar 2015 14:56:31 +0000 (14:56 +0000)]
Merge "Use underscores in help links"
umherirrender [Tue, 10 Mar 2015 18:26:39 +0000 (19:26 +0100)]
Use underscores in help links
Replace spaces by underscore to build correct links to wiki pages. IE11
will show %20 for spaces. Also use urlencode to make the url safe.
Follow-Up: I2934b1708a0d207dcf3d940264f140613646f203
Change-Id: I5ef08441406e96aa9749476af0a81fc11fa4e4d6
James D. Forrester [Wed, 11 Mar 2015 23:14:46 +0000 (16:14 -0700)]
resources: Move to library version of jquery.client
The jQuery Client library is no longer mastered in MediaWiki, and is
instead a proper, published library, which is now tagged as v1.0.0.
Change-Id: Idd19d738b392a5f742fef6f98c885e8c391a5cbf
Aaron Schulz [Wed, 11 Mar 2015 03:33:52 +0000 (20:33 -0700)]
Avoid excess master queries in getTimestampFromId
Bug: T92357
Change-Id: Id5cf7a5620daeee12abfa778f9be19435f3e5e84
Translation updater bot [Wed, 11 Mar 2015 20:53:36 +0000 (20:53 +0000)]
Merge "Localisation updates from https://translatewiki.net."
Translation updater bot [Wed, 11 Mar 2015 20:50:32 +0000 (21:50 +0100)]
Localisation updates from https://translatewiki.net.
Change-Id: I384c8214ba8453349d0b7cc90b954580bd571011
Timo Tijhof [Fri, 6 Mar 2015 02:12:49 +0000 (03:12 +0100)]
OutputPage: Condition-wrap the <script> for 'user.groups'
Follows-up
9d390a09cdfb. It already wraps the only=script requests
for 'site' and 'user', but forgot about 'user.groups' which is
not 'scripts' but 'combined' (as regular module requests).
That request responds with mw.loader.implement whih will be absent
if the environment is unsupported.
With normal module requests, this is naturally covered by those
requests not being fired from mw.loader in the first place but
with hardcoded requests like these the condition wrap with
document.write is unfortunately required in the current reality.
Change-Id: Ib3a7378d0c44e601760fbbc5174da09bd7b7f492
Aaron Schulz [Tue, 10 Mar 2015 19:26:24 +0000 (12:26 -0700)]
Mention metrics in IContextSource docs
Change-Id: I9b654a12578758471978ffd1e1ae20476aeeaa0d
jenkins-bot [Wed, 11 Mar 2015 18:36:49 +0000 (18:36 +0000)]
Merge "mediawiki.js: clean-ups"
Ori Livneh [Tue, 10 Mar 2015 06:57:33 +0000 (23:57 -0700)]
mediawiki.js: clean-ups
* Inline canExpandStylesheetWith().
* Make resolve() take an array of module names instead of being flexible
(taking either a string or an array). It's a private method, so it doesn't
need to have a cute API.
* Use simple string concatenation rather than [].join in pad()
* Make allReady() more efficient by having it bail early as soon as any
non-ready module is encountered.
* Add anyFailed(), which is a complement to allReady().
* Remove filter(). In more than one place, it was used to check whether a
module in some specified state existed in a list of modules, which is
inefficient, since filter() continues iterating through the array of modules
after finding a match and because it constructed an array with the matches,
which was not needed.
* Replace some verbose array iteration with $.grep / $.map / $.each.
Change-Id: I22a2f824488ba39d03b546ac8560f551a3198d7f
Aaron Schulz [Wed, 11 Mar 2015 18:12:50 +0000 (11:12 -0700)]
Made JobQueueFederated no longer need "checkDelay" for delaying
This reverts commit
b9fd0f311c292424fd49d7bff550f67e94a62bc4.
Change-Id: Ibff28591c268689d593cb56a58e0b33c22292eba
Aaron Schulz [Wed, 11 Mar 2015 18:10:12 +0000 (11:10 -0700)]
Made JobQueueFederated::supportsDelayedJobs() check all the partition queues
Change-Id: Id451faedd6286a84f993fa183e67e0bf35d21c41
jenkins-bot [Wed, 11 Mar 2015 17:17:33 +0000 (17:17 +0000)]
Merge "Revert "Made JobQueueFederated no longer need "checkDelay" for delaying""
Legoktm [Wed, 11 Mar 2015 17:10:18 +0000 (17:10 +0000)]
Revert "Made JobQueueFederated no longer need "checkDelay" for delaying"
Breaks Cirrus and Wikibase
This reverts commit
c8f96384aad312e52969b81dd8ce6b8d80c3857a.
Change-Id: I15278d52806bf30d6ea6c6b9eb8586160f65c42b
Gergő Tisza [Tue, 3 Feb 2015 22:49:40 +0000 (22:49 +0000)]
mw.loader: Replace log() calls with mw.track events
This allows other consumers (such as an error logging backend) to
subscribe to these errors.
Change-Id: I157e2fb5c6b4d77736fcaf0a87c624e76a833161
jenkins-bot [Wed, 11 Mar 2015 15:20:20 +0000 (15:20 +0000)]
Merge "jsduck: Add 'mediawiki.startUp.js' to eg-iframe"
jenkins-bot [Wed, 11 Mar 2015 15:01:18 +0000 (15:01 +0000)]
Merge "FeedItem: Use full URL with protocol for <id>/<guid> in Atom/RSS feeds"
Timo Tijhof [Wed, 11 Mar 2015 14:44:47 +0000 (15:44 +0100)]
jsduck: Add 'mediawiki.startUp.js' to eg-iframe
Follows-up
2ea420eed86. Without this, the startUp() is never called,
and mw.config remains undefined which caused some of the examples
to no longer work properly.
Also move onerror handler to first <script> (follows-up
a64a07d).
Exceptions from other code (eg. startup or mediawiki modules),
were not being caught.
Also include 'error' in the line being logged from onerror.
Change-Id: I3956da40b0bd862acab6d4552932aa609c17d569
Timo Tijhof [Sun, 8 Mar 2015 17:38:01 +0000 (18:38 +0100)]
jsduck: Refactor example iframe to catch uncaught errors
* Make logging function not depend on 'mw' existing.
* Add window.onerror handler.
* Keep exporting to mw.log because that's what existing examples
use and is what uses should copy for interoperability with the
regular runtime.
Change-Id: I2925532035974343125e34084f9ac7c8dd1fa279
Brian Wolff [Fri, 20 Feb 2015 00:31:31 +0000 (20:31 -0400)]
Allow edit summaries to be up to 767 bytes long
This is just the db part. The changes to UI validation code will
come in a dependent patch later.
This changes the max size of various *_comment, *_description
and *_reason fields to be 767 bytes. This size is chosen to
be consistent with the largest we can get away with while
still having covering indexes.
It also unifies the various data types of these fields to
varbinary. (Note, this was previously done and reverted in
r80547, but I don't think the reason for revert applies to
the edit summary fields)
MyISAM has a much smaller max index size, and this wouldn't
work with that storage engine. However, none of these fields
are used in default indexes (only in WMF indexes), so this
should not be an issue for anyone using MyISAM. Postgress
and sqlite already supported the larger edit summary size.
Note: This patch increases min mysql version to 5.0.3.
Bug: T6715
Change-Id: I8558e80a18e4591f07f2c3e80f792ea4435c4e71
Aaron Schulz [Wed, 11 Mar 2015 03:53:44 +0000 (20:53 -0700)]
Removed newFromConds master fallback logic; obsoleted by $flags
Bug: T86862
Change-Id: I6867a61fff9828fb32b063c1e84872e910c4b273
Brad Jorsch [Tue, 10 Mar 2015 22:26:31 +0000 (18:26 -0400)]
API: Remove explicit profiling
The profileIn/profileOut pair should be covered by the Xhprof profiling
of the method calls it was wrapping.
The profileDBIn/profileDBOut pair are covered by profiling done by the
Database class.
Nothing in extensions in Gerrit is calling anything besides the
profileIn/profileOut pair (and likely those are only to avoid core
formerly throwing exceptions from internal profileDBIn/profileDBOut
calls), and nothing in core or extensions-in-Gerrit is using the methods
for fetching profiling data.
The methods are left as stubs for now to allow for backwards
compatibility in extensions.
Change-Id: I05ba4e2762dc86d5e2bafc183dce701239b43f5c
Aaron Schulz [Tue, 10 Mar 2015 22:13:18 +0000 (15:13 -0700)]
Made JobQueueFederated no longer need "checkDelay" for delaying
* Cleaned up the weird logic for checking if delays are supported
Change-Id: I3a1a78bb48b4950b76f445bf8c27b5868d3dc89c
Translation updater bot [Tue, 10 Mar 2015 21:09:43 +0000 (22:09 +0100)]
Localisation updates from https://translatewiki.net.
Change-Id: I3be2b9a50b5695cd9c247bb9a0a49af82eed6ffd
jenkins-bot [Tue, 10 Mar 2015 18:25:42 +0000 (18:25 +0000)]
Merge "mw.ui: button: Update focus state"
jenkins-bot [Tue, 10 Mar 2015 17:08:14 +0000 (17:08 +0000)]
Merge "Introduce the Restbase Virtual REST Service class"
jenkins-bot [Tue, 10 Mar 2015 13:58:22 +0000 (13:58 +0000)]
Merge "Update the Chinese conversion table for Chinese WikiProjects"
Aaron Schulz [Tue, 10 Mar 2015 06:08:37 +0000 (23:08 -0700)]
Minor doc fixes
Change-Id: I80678e64cafcfd6e2c779452f466d8a630089568
jenkins-bot [Tue, 10 Mar 2015 01:58:51 +0000 (01:58 +0000)]
Merge "mediawiki.jqueryMsg: Fix examples in comments"
jenkins-bot [Tue, 10 Mar 2015 00:26:30 +0000 (00:26 +0000)]
Merge "Add StatsD metric logging"
jenkins-bot [Tue, 10 Mar 2015 00:25:02 +0000 (00:25 +0000)]
Merge "Specify max compatible kss version"
Ori Livneh [Fri, 20 Feb 2015 08:23:18 +0000 (00:23 -0800)]
Add StatsD metric logging
This patch adds a metric data service object to the IContextSource interface,
with full support for StatsD meters, gauges, counters and timing metrics, via
the liuggio/statsd-php-client, which this patch also introduces.
Usage example:
$stats = $context->getStats();
$stats->increment( 'resourceloader.cache.hits' );
$stats->timing( 'resourceloader.cache.rtt', $rtt );
The metrics are flushed to a StatsD server, which may be specified via the
'StatsdServer' configuration key. If no such configuration key exists, the
metrics are discarded.
The StatsD client supplants MediaWiki's StatCounter class. wfIncrStats()
will continue to work, but it will delegate to the StatsD data object.
Change-Id: Ie10db1c154d225971398e189737de7c560bf0f90
Marko Obrovac [Mon, 2 Mar 2015 14:35:21 +0000 (15:35 +0100)]
Introduce the Restbase Virtual REST Service class
Restbase, the REST content API service, is to be queried instead of
Parsoid by current Parsoid users (most importantly VE). This patch
introduces the Restbase virtual REST service class and transparently
maps Parsoid calls into Restbase ones if parsoidCompat is set when
creating the service object.
Additionally, $wgVirtualRestConfig is introduced in DefaultSettings.php. This
is a first step towards global service configuration and management.
Bug: T89066
Change-Id: I4d4043e5052327bbd789331f1c05b607c45fe7cb
Fomafix [Mon, 9 Mar 2015 20:55:47 +0000 (20:55 +0000)]
mediawiki.jqueryMsg: Fix examples in comments
Change-Id: Ia6fcb718e9c0ef073ed472af29c8ca4507f45b5a
Translation updater bot [Mon, 9 Mar 2015 20:44:38 +0000 (21:44 +0100)]
Localisation updates from https://translatewiki.net.
Change-Id: I361e11d5dbbc13010b24e6dd49ff8153f5163535