lhc/web/wiklou.git
8 years agoSpecialWatchlist: Remove random unnecessary `<hr>`
Bartosz Dziewoński [Fri, 4 Dec 2015 16:39:53 +0000 (17:39 +0100)]
SpecialWatchlist: Remove random unnecessary `<hr>`

Change-Id: I7ebe73ae0773a4bfc52c02fdc0cd028913b044b3

8 years agoFix categories with a namespace prefix in the cat name for CatWatch
addshore [Fri, 4 Dec 2015 11:03:44 +0000 (12:03 +0100)]
Fix categories with a namespace prefix in the cat name for CatWatch

Title::newFromText will use the given namespace as default, but when
parsing a title with a namespace at the begin the method will not use
the default, instead used the namespace from the given text.
Use Title::makeTitle to create a title with always belongs to the given
namespace.

Bug: T119763
Change-Id: Ic96671e1c33c6572b07f0f859d97c85a7a15bd39

8 years agoMerge "Fix CatMemberChanges for numeric category names"
jenkins-bot [Fri, 4 Dec 2015 10:57:26 +0000 (10:57 +0000)]
Merge "Fix CatMemberChanges for numeric category names"

8 years agoMerge "Move category membership RC updates to CategoryMembershipChangeJob"
jenkins-bot [Fri, 4 Dec 2015 10:56:12 +0000 (10:56 +0000)]
Merge "Move category membership RC updates to CategoryMembershipChangeJob"

8 years agoAdd warning comment on formatLinksInComment
csteipp [Fri, 4 Dec 2015 00:12:41 +0000 (16:12 -0800)]
Add warning comment on formatLinksInComment

Bug: T120324
Change-Id: If4423e14737a7e9d80661da27ad6f5463798a7d7

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Thu, 3 Dec 2015 21:43:23 +0000 (22:43 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I8925bc900d351d0a7aa6e69553fea3c48f86a4a2

8 years agoMerge "Move Special:ChangeContentModel to the pagetools special page group"
jenkins-bot [Thu, 3 Dec 2015 19:45:23 +0000 (19:45 +0000)]
Merge "Move Special:ChangeContentModel to the pagetools special page group"

8 years agoMove Special:ChangeContentModel to the pagetools special page group
umherirrender [Thu, 3 Dec 2015 19:13:42 +0000 (20:13 +0100)]
Move Special:ChangeContentModel to the pagetools special page group

Acting on pages, so that group is better than the default of "other"
The group is shown on Special:Specialpages

Change-Id: I0d9734fa31775332fb8935bf4fc63ad3fb8a2852

8 years agoMerge "Supports schema revision id in avro binary formatter"
jenkins-bot [Thu, 3 Dec 2015 18:10:39 +0000 (18:10 +0000)]
Merge "Supports schema revision id in avro binary formatter"

8 years agoMerge "Cast numeric cat names back to string in api output"
jenkins-bot [Thu, 3 Dec 2015 14:56:42 +0000 (14:56 +0000)]
Merge "Cast numeric cat names back to string in api output"

8 years agoDon't load WikiPage (w/ READ_LATEST) if search-update is not supported
aude [Wed, 2 Dec 2015 16:16:17 +0000 (17:16 +0100)]
Don't load WikiPage (w/ READ_LATEST) if search-update is not supported

instead lazy load WikiPage, when needed.

Change-Id: If67057b0b76f0f889ed498d8bbedaaeae3b2785d

8 years agoMerge "Consolidate Title normalization code in SearchUpdate"
jenkins-bot [Thu, 3 Dec 2015 14:21:00 +0000 (14:21 +0000)]
Merge "Consolidate Title normalization code in SearchUpdate"

8 years agoMerge "Do SearchUpdate::indexTitle after search-update is supported check"
jenkins-bot [Thu, 3 Dec 2015 14:20:56 +0000 (14:20 +0000)]
Merge "Do SearchUpdate::indexTitle after search-update is supported check"

8 years agoCast numeric cat names back to string in api output
addshore [Thu, 3 Dec 2015 14:15:59 +0000 (15:15 +0100)]
Cast numeric cat names back to string in api output

This could be considered a breaking change even
though it unifies behaviour.

Change-Id: Ib6bc7386f689cc6c2812e9e9406f18b20caa8fee

8 years agoFix CatMemberChanges for numeric category names
addshore [Thu, 3 Dec 2015 13:09:34 +0000 (14:09 +0100)]
Fix CatMemberChanges for numeric category names

Change-Id: I5ff3ff2d26d8e2d0b4250843f028eabc96020ccc

8 years agoMerge "Make getCacheSetOptions() and WAN cache handle broken replication"
jenkins-bot [Thu, 3 Dec 2015 12:24:37 +0000 (12:24 +0000)]
Merge "Make getCacheSetOptions() and WAN cache handle broken replication"

8 years agoMove category membership RC updates to CategoryMembershipChangeJob
Aaron Schulz [Sun, 15 Nov 2015 02:29:37 +0000 (18:29 -0800)]
Move category membership RC updates to CategoryMembershipChangeJob

* Recursive link updates no longer mention an category changes.
  It's hard to avoid either duplicate mentioning of changes or
  confusing explicit and automatic category changes.
* LinksUpdate no longer handles this logic, but rather WikiPage
  decides to spawn this update when needed in doEditUpdates().
* Fix race conditions with calculating category deltas. Do not
  rely on the link tables for the read used to determine these
  writes, as they may be out-of-date due to slave lag. Using the
  master would still not be good enough since that would assume
  FIFO and serialized job execution, which is not garaunteed.
  Use the parser output of the relevant revisions to determine
  the RC rows. If 3 users quickly edit a page's categories, the
  old way could misattribute who actually changed what.
* Make sure RC rows are inserted in an order that matches that
  of the corresponding revisions.
* Better avoid mentioning time-based (parser functions) category
  changes so they don't get attributed to the next editor.
* Also wait for slaves between RC row insertions if there where
  many category changes (it theory it could well over 10K rows).
* Using a separate job better separates concerns as LinksUpdate
  should not have to care about recent changes updates.
* Added more docs to $wgRCWatchCategoryMembership.

Bug: T95501
Change-Id: I5863e7d7483a4fd1fa633597af66a0088ace4c68

8 years agoMerge "Improve error message for failing HTTP requests"
jenkins-bot [Thu, 3 Dec 2015 00:28:48 +0000 (00:28 +0000)]
Merge "Improve error message for failing HTTP requests"

8 years agoMake getCacheSetOptions() and WAN cache handle broken replication
Aaron Schulz [Sat, 28 Nov 2015 12:13:27 +0000 (04:13 -0800)]
Make getCacheSetOptions() and WAN cache handle broken replication

TTL_LAGGED now triggers if the slave or I/O threads stopped

Change-Id: I5e7bf2d33b8d3a60182ec53a93d65f7e55f02222

8 years agoMerge "Fix relayPurge() IDEA warnings"
jenkins-bot [Wed, 2 Dec 2015 22:41:43 +0000 (22:41 +0000)]
Merge "Fix relayPurge() IDEA warnings"

8 years agoMerge "API: Allow querying central user info"
jenkins-bot [Wed, 2 Dec 2015 22:41:38 +0000 (22:41 +0000)]
Merge "API: Allow querying central user info"

8 years agoMerge "objectcache: Add $holdoff parameter to WANObjectCache::touchCheckKey()"
jenkins-bot [Wed, 2 Dec 2015 22:35:00 +0000 (22:35 +0000)]
Merge "objectcache: Add $holdoff parameter to WANObjectCache::touchCheckKey()"

8 years agoAPI: Allow querying central user info
Brad Jorsch [Thu, 19 Nov 2015 20:57:12 +0000 (15:57 -0500)]
API: Allow querying central user info

meta=siteinfo gets a list of all configured central ID lookup providers
and which one is being used as the default, while meta=userinfo,
list=users, and list=allusers get the ability to return the IDs and
attachment status.

Change-Id: Iea15b6c22baac79b3f8ca6df0e20a6a4299507d2

8 years agoFix relayPurge() IDEA warnings
Aaron Schulz [Wed, 2 Dec 2015 22:31:51 +0000 (14:31 -0800)]
Fix relayPurge() IDEA warnings

Change-Id: I6e6c0f611c344eab79350468552a2ccbf4cd1d18

8 years agoMerge "objectcache: Move WANObjectCache holdoff from get() to purge value"
jenkins-bot [Wed, 2 Dec 2015 22:27:34 +0000 (22:27 +0000)]
Merge "objectcache: Move WANObjectCache holdoff from get() to purge value"

8 years agoAdd a central ID lookup service
Brad Jorsch [Thu, 12 Nov 2015 23:21:19 +0000 (18:21 -0500)]
Add a central ID lookup service

Anything that wants to be "central" right now has to depend on
CentralAuth, and then either can't work without CentralAuth or has to
branch all over the place based on whether CentralAuth is present. Most
of the time all it really needs is a mapping from local users to central
user IDs and back or the ability to query whether the local user is
attached on some other wiki, so let's make an interface for that in
core.

See I52aa0460 for an example implementation (CentralAuth), and Ibd192e29
for an example use (OAuth).

Bug: T111302
Change-Id: I49568358ec35fdfd0b9e53e441adabded5c7b80f

8 years agoobjectcache: Add $holdoff parameter to WANObjectCache::touchCheckKey()
Timo Tijhof [Wed, 2 Dec 2015 15:47:05 +0000 (15:47 +0000)]
objectcache: Add $holdoff parameter to WANObjectCache::touchCheckKey()

Change-Id: I14b6d7660b34271826b77875c660c34343712648

8 years agoobjectcache: Move WANObjectCache holdoff from get() to purge value
Timo Tijhof [Wed, 2 Dec 2015 15:08:42 +0000 (15:08 +0000)]
objectcache: Move WANObjectCache holdoff from get() to purge value

Move the holdoff period into the purge value instead of deciding
it at runtime. This opens the way for touchCheckKey() to support
a custom $holdoff parameter, which will allow callers to invalidate
keys without a holdoff period. Similar to what we already support
in delete().

Right now the holdoff period is decided at run time.

Change-Id: Id10c036272e92ae4429effc823b75e08fb11a48b

8 years agoMerge "Localisation updates from https://translatewiki.net."
Translation updater bot [Wed, 2 Dec 2015 20:36:35 +0000 (20:36 +0000)]
Merge "Localisation updates from https://translatewiki.net."

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Wed, 2 Dec 2015 20:33:50 +0000 (21:33 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I189c9f774d7322a9aa2cb8b18f6e1d0465576dd5

8 years agoFix case for special pages (was breaking tests)
Elliott Eggleston [Wed, 2 Dec 2015 19:51:30 +0000 (11:51 -0800)]
Fix case for special pages (was breaking tests)

Change I6f44e3e5d97ea917e4a03af47f3795792e4ca122 added some calls
to make special page URLs with the wrong case.  This is breaking
tests in extensions, e.g.
https://integration.wikimedia.org/ci/job/mwext-DonationInterface-testextension-zend/2097/consoleFull

Change-Id: Ica66b314088275d43b67e207cedea97a5f1a7350

8 years agoMerge "Connect OOjs UI to MediaWiki's localisation system"
jenkins-bot [Wed, 2 Dec 2015 18:05:44 +0000 (18:05 +0000)]
Merge "Connect OOjs UI to MediaWiki's localisation system"

8 years agoConsolidate Title normalization code in SearchUpdate
aude [Wed, 2 Dec 2015 15:42:18 +0000 (16:42 +0100)]
Consolidate Title normalization code in SearchUpdate

and rename the private method to be more clear

Change-Id: Iec7b934babddd102402cfa7616accd91fd3422ff

8 years agoConnect OOjs UI to MediaWiki's localisation system
Bartosz Dziewoński [Wed, 2 Dec 2015 16:02:56 +0000 (17:02 +0100)]
Connect OOjs UI to MediaWiki's localisation system

Somehow we have forgotten to do this in here, it was only done in
VisualEditor, which is why no one noticed for so long.

Bug: T119984
Change-Id: I9154345119846dcba90c30f81636ea70fd524471

8 years agoDo SearchUpdate::indexTitle after search-update is supported check
aude [Wed, 2 Dec 2015 15:34:25 +0000 (16:34 +0100)]
Do SearchUpdate::indexTitle after search-update is supported check

If the SearchEngine does not support search-update, then
$indexTitle is not used and thus no need to create it in
that case.

Change-Id: I487d06274e921223a3bcb5af846b48b7c2b8065e

8 years agoAPI: Add isset() to avoid PHP warning
Brad Jorsch [Wed, 2 Dec 2015 14:09:08 +0000 (09:09 -0500)]
API: Add isset() to avoid PHP warning

Bug: T120075
Change-Id: I8e4ac665c262e6f889abba24eb2beb4fd5a76d1b

8 years agoMerge "Make HTMLCacheUpdate callers more consistent"
jenkins-bot [Tue, 1 Dec 2015 22:02:51 +0000 (22:02 +0000)]
Merge "Make HTMLCacheUpdate callers more consistent"

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Tue, 1 Dec 2015 20:13:10 +0000 (21:13 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I2954fbad34ec3c9d2c6537dfa1987eb93f0887fd

8 years agoImproved personal toolbar for logged-out users
This, that and the other [Fri, 6 Nov 2015 23:51:59 +0000 (10:51 +1100)]
Improved personal toolbar for logged-out users

Previously, logged-out users either only saw "Create account" and "Log in"
links in the personal area, or if $wgShowIPinHeader was true, they saw

  [icon] 127.0.0.1  Talk for this IP address  Create account  Log in

where the IP address itself linked to the IP user page.

Now, logged-out users by default see the following:

  [icon] Not logged in  Talk  Contributions  Create account  Log in

The old $wgShowIPinHeader feature is removed. It is very unfriendly to
show the user's IP address (in red, no less) at the top of every page,
since this will mean nothing to most visitors. Caching means that this
can't even be done reliably, anyway.

Another improvement is that the "talk" and "contributions" links are not
shown if anonymous users don't have the 'edit' right.

Modelled after the loggedOutTalkPage() function at Dutch Wikipedia
<https://nl.wikipedia.org/w/index.php?oldid=44706954>

Bug: T112724
Change-Id: I6f44e3e5d97ea917e4a03af47f3795792e4ca122

8 years agotests: let us select/exclude ParserTests
Antoine Musso [Thu, 26 Nov 2015 20:25:03 +0000 (21:25 +0100)]
tests: let us select/exclude ParserTests

The MediaWiki test suite is painfully slow and delays merging of
changes. More than half of the time is spent in
ParserTest_Parser⁄parserTests::testParserTest which is the PHPUnit
wrapping class for the parser tests.

This patch let us extract the parser tests so we can run them
independently. By running them parallely with the rest of the tests,
that will speed up the gate processing time.

Mark the MediaWikiParserTest and NewParserTest class as belonging to the
test group 'ParserTests'.  Will let us filter them out via PHPUnit
option --exclude-group

Introduce a new PHPUnit test suite 'parsertests' which loads the
MediaWiki core parser tests wrapper 'MediaWikiParserTest' and the suite
which loads the extensions parser tests (ExtensionsParserTestSuite.php).
This way we can run solely the parser tests with:

  cd tests/phpunit
  php phpunit.php --testsuite ParserTests

Wikimedia CI can then be configure to run two jobs:

 A) php phpunit.php --exclude-group ParserTests
 B) php phpunit.php --testsuite ParserTests

Bug: T114314
Change-Id: Ie819bab43163995048c073691c4c5d258f797c02

8 years agoAdd a wikipage.diff hook
Derk-Jan Hartman [Sun, 14 Jun 2015 22:13:20 +0000 (00:13 +0200)]
Add a wikipage.diff hook

Bug: T53583
Change-Id: Iba54f26537e0a7ffaaf9465e2f44de2e4367abdb

8 years agoMake HTMLCacheUpdate callers more consistent
Aaron Schulz [Tue, 1 Dec 2015 00:55:43 +0000 (16:55 -0800)]
Make HTMLCacheUpdate callers more consistent

A few random callers were calling doUpdate() themselves
instead of using DeferredUpdates

Change-Id: If121e6afab9899dae92f0bf831b0b0c9967deeb5

8 years agoFix incorrect annotation
Adam Roses Wight [Mon, 30 Nov 2015 23:25:21 +0000 (15:25 -0800)]
Fix incorrect annotation

Change-Id: Ia240bda6f8bcee52814e200c6118ed5713ca0ea7

8 years agoMinor api doc fix
Yuri Astrakhan [Mon, 30 Nov 2015 20:42:09 +0000 (23:42 +0300)]
Minor api doc fix

Change-Id: Ibc432e504aa63f908b5fca93110e2d54f91c5dbd

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Mon, 30 Nov 2015 20:12:23 +0000 (21:12 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: Id1033768d26224e8db6f901a636477adfee77ffd

8 years agoRemove RELEASE-NOTES-1.26 from master as it is now a release.
Reedy [Sun, 29 Nov 2015 14:15:34 +0000 (14:15 +0000)]
Remove RELEASE-NOTES-1.26 from master as it is now a release.

Change-Id: I57f39c77286057d29b91dc8e4feda67cbd0ee3ee

8 years agoMerge "Do not set autofocus for valid target input on Special:UserRights"
jenkins-bot [Mon, 30 Nov 2015 19:17:10 +0000 (19:17 +0000)]
Merge "Do not set autofocus for valid target input on Special:UserRights"

8 years agoMerge "Fix packet reduction in SamplingStatsdClient"
jenkins-bot [Mon, 30 Nov 2015 18:54:50 +0000 (18:54 +0000)]
Merge "Fix packet reduction in SamplingStatsdClient"

8 years agoDo not set autofocus for valid target input on Special:UserRights
umherirrender [Mon, 30 Nov 2015 18:44:26 +0000 (19:44 +0100)]
Do not set autofocus for valid target input on Special:UserRights

When open Special:UserRights with a valid user as target, there is no
need to set the autofocus on the input field. Just set it on blank input
and error input (such as non existing user or ip).

Change-Id: I14b005b83adbbd899d2846c8d71cbfb1a1a25ad7

8 years agoFix "Undefined property: DiffEngine::$seq" under HHVM in DairikiDiff.php
Edward Chernenko [Sun, 29 Nov 2015 15:46:24 +0000 (18:46 +0300)]
Fix "Undefined property: DiffEngine::$seq" under HHVM in DairikiDiff.php

Bug: T116266
Change-Id: I94ed1ce946b4c3e757405167d6c4530a5863a220

8 years agoFixup MW for HHVM Repo Authorative mode
Reedy [Sun, 29 Nov 2015 04:51:33 +0000 (04:51 +0000)]
Fixup MW for HHVM Repo Authorative mode

https://github.com/facebook/hhvm/issues/5834
https://github.com/facebook/hhvm/issues/5833

Change-Id: I138ffa5df874c5660897dc7feab36adef9f32aea

8 years agoMerge "mediawiki.ForeignStructuredUpload: Behave correctly when '=' appears in a...
jenkins-bot [Mon, 30 Nov 2015 17:15:31 +0000 (17:15 +0000)]
Merge "mediawiki.ForeignStructuredUpload: Behave correctly when '=' appears in a description"

8 years agomediawiki.ForeignStructuredUpload: Behave correctly when '=' appears in a description
Bartosz Dziewoński [Thu, 26 Nov 2015 18:36:18 +0000 (19:36 +0100)]
mediawiki.ForeignStructuredUpload: Behave correctly when '=' appears in a description

We can't escape it (and we can't deal with '|'), because users might
expect these to accept wikitext.

Bug: T119691
Change-Id: I10df9ebab408f531812b653b36ed35570311935e

8 years agoSpecialMovepage: Don't change button text when moving over existing page
Bartosz Dziewoński [Fri, 27 Nov 2015 01:29:51 +0000 (02:29 +0100)]
SpecialMovepage: Don't change button text when moving over existing page

The button text was being changed from "Move" to "Delete and move". This
is no longer necessary after a confirmation checkbox "Yes, delete the page"
was implemented in ac563af7e7489e701b6b68756fb7b10ed058d07d (r12433).

Change-Id: Ie8e25ab3d11e75f47f4cf1a4ec96407d3f37b547

8 years agoSpecialMovePage: Display introduction text even after the form was submitted
Bartosz Dziewoński [Fri, 27 Nov 2015 01:22:56 +0000 (02:22 +0100)]
SpecialMovePage: Display introduction text even after the form was submitted

I see no reason to remove this helpful information just because there's
an error in the form.

Change-Id: I01c6d66231c272d0ef0c671c388c7aa43020b4a3

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sun, 29 Nov 2015 23:10:43 +0000 (00:10 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: Ifb2360c79250472ea49345e50f4525b56b0bb1f5

8 years agoSpecial:Contribs: autofocus to 'target' if target hasn't been specified or in non...
Glaisher [Thu, 12 Nov 2015 05:15:40 +0000 (10:15 +0500)]
Special:Contribs: autofocus to 'target' if target hasn't been specified or in non-newbies mode

Target field doesn't work in newbies mode so users doesn't need to enter in that field
newbies mode also. This is not a huge issue normally but annoying when you're on a tablet
or mobile where the autofocus makes the screen keyboard be shown when you visit the page.

Bug: T117397
Change-Id: Ic6fd2fb2421325f748fccb2a5432e7713d0dcbb0

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sat, 28 Nov 2015 20:26:22 +0000 (21:26 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I71391874ae48d2a0d6583001839f7ccedbd03f57

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Fri, 27 Nov 2015 21:24:30 +0000 (22:24 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I862700e5f136550102670d787880ddba92b98b77

8 years agoFix packet reduction in SamplingStatsdClient
addshore [Fri, 27 Nov 2015 19:17:03 +0000 (20:17 +0100)]
Fix packet reduction in SamplingStatsdClient

Doc block has also been changed to show that
this implementation does not follow the defined
interface.
It also says why...

Bug: T116031
Change-Id: If8cca355ae77b751486b40e56a6b3a51b1d7fe0b

8 years agoEnhance SamplingStatsdClient::sampleData return doc
addshore [Fri, 27 Nov 2015 18:21:52 +0000 (19:21 +0100)]
Enhance SamplingStatsdClient::sampleData return doc

Change-Id: Idde67e9514fdf736881cb42b6413045f7bc6f3b3

8 years agoAdd mediawiki.api.messages module to easily retrieve a set of messages
Florian [Sat, 7 Nov 2015 22:56:06 +0000 (23:56 +0100)]
Add mediawiki.api.messages module to easily retrieve a set of messages

Bug: T40280
Change-Id: I6e3fc4beb56c3120702ca291adf6e1521a0bc21f

8 years agoSpecialMovepage: Remove amusing comment about MySQL 4
Bartosz Dziewoński [Thu, 26 Nov 2015 22:17:45 +0000 (23:17 +0100)]
SpecialMovepage: Remove amusing comment about MySQL 4

We haven't supported MySQL 4 since MediaWiki 1.19.

Change-Id: Ice3e62d02ebe94a5a48981039dc455014a5d53f2

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Thu, 26 Nov 2015 20:38:52 +0000 (21:38 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I016ec75a42be034951e8516669c09489054a3d28

8 years agoUpdate liuggio/statsd-php-client to 1.0.18
Reedy [Mon, 23 Nov 2015 00:37:33 +0000 (00:37 +0000)]
Update liuggio/statsd-php-client to 1.0.18

Depends-On: I81a7d7da30374072c78c51d1a7fe8229cd70d42c
Change-Id: Ibf06b3b97eb6002c1ad2666f38764b44fc716ef3

8 years agoMerge "Split out WikiPage 'page' field for EditPage"
jenkins-bot [Thu, 26 Nov 2015 00:26:48 +0000 (00:26 +0000)]
Merge "Split out WikiPage 'page' field for EditPage"

8 years agoSplit out WikiPage 'page' field for EditPage
Aaron Schulz [Tue, 24 Nov 2015 22:36:36 +0000 (14:36 -0800)]
Split out WikiPage 'page' field for EditPage

* This fixes numerous IDEA warnings
* Also fixed some other warnings by fixing documentation

Change-Id: I2a76ce79c0d04a28a6cd74116dfce4e67435f44a

8 years agoMerge "Add comments to EditPage::getBaseRevision()"
jenkins-bot [Wed, 25 Nov 2015 22:04:57 +0000 (22:04 +0000)]
Merge "Add comments to EditPage::getBaseRevision()"

8 years agoAdd comments to EditPage::getBaseRevision()
Aaron Schulz [Tue, 24 Nov 2015 22:48:56 +0000 (14:48 -0800)]
Add comments to EditPage::getBaseRevision()

Change-Id: Ib0b9e26916f86f00a49c6007ae55896f7421de22

8 years agoMerge "Remove MWException use from UIDGenerator"
jenkins-bot [Wed, 25 Nov 2015 19:36:12 +0000 (19:36 +0000)]
Merge "Remove MWException use from UIDGenerator"

8 years agoMerge "Update ApiBase::PARAM_* comments"
jenkins-bot [Wed, 25 Nov 2015 17:09:06 +0000 (17:09 +0000)]
Merge "Update ApiBase::PARAM_* comments"

8 years agoUpdate ApiBase::PARAM_* comments
Brad Jorsch [Wed, 25 Nov 2015 16:32:14 +0000 (11:32 -0500)]
Update ApiBase::PARAM_* comments

Put them in a form that doxygen should recognize,[1] and document all the
types recognized for PARAM_TYPE.

Ideally we'd use some @-thing like @var to specify the types instead of
just a weird parenthetical, but looking at existing examples it seems
that putting @var on a class constant will instead make doxygen
completely ignore it.

 [1]: See https://doc.wikimedia.org/mediawiki-core/master/php/classApiBase.html

Change-Id: Iccfa1dc9a7a79313ff9acf71934264c115b3fa76

8 years agoAdded Rakefile
Željko Filipin [Thu, 12 Nov 2015 13:18:39 +0000 (14:18 +0100)]
Added Rakefile

This is needed for our continuous integration.

Bug: T117993
Change-Id: I83d16759597a90ee9a082eb4029fedca7af10a30

8 years agoUpdate OOjs UI to v0.14.0
James D. Forrester [Wed, 25 Nov 2015 01:22:14 +0000 (17:22 -0800)]
Update OOjs UI to v0.14.0

Release notes:
 https://git.wikimedia.org/blob/oojs%2Fui.git/v0.14.0/History.md

Change-Id: Id642023abdae574e32620fc80043631d86bae006

8 years agoMerge "Rename wfBaseConvert.php maintenance script"
jenkins-bot [Tue, 24 Nov 2015 23:51:43 +0000 (23:51 +0000)]
Merge "Rename wfBaseConvert.php maintenance script"

8 years agoRemove MWException use from UIDGenerator
Aaron Schulz [Tue, 24 Nov 2015 23:42:59 +0000 (15:42 -0800)]
Remove MWException use from UIDGenerator

Change-Id: Ib0ad346c6c8c4f515b388f63840db4a03b99facb

8 years agoLast 2 wfBaseConvert to Wikimedia\base_convert
Reedy [Tue, 24 Nov 2015 23:40:00 +0000 (23:40 +0000)]
Last 2 wfBaseConvert to Wikimedia\base_convert

Change-Id: I0b6c1b87114925d17123e35cd5f98b9d05ff62b4

8 years agoRename wfBaseConvert.php maintenance script
Reedy [Tue, 24 Nov 2015 23:32:49 +0000 (23:32 +0000)]
Rename wfBaseConvert.php maintenance script

Change-Id: I3174ceb040e9029ad8049a3e49c119bfac4aa386

8 years agoMark wfBaseConvert() as deprecated.
Reedy [Tue, 24 Nov 2015 22:53:58 +0000 (22:53 +0000)]
Mark wfBaseConvert() as deprecated.

Change-Id: I7c258d0844665dea8f93cce3d8dcf617c961c5f9

8 years agoReplace wfBaseConvert with Wikimedia\base_convert
Reedy [Tue, 24 Nov 2015 22:51:42 +0000 (22:51 +0000)]
Replace wfBaseConvert with Wikimedia\base_convert

Change-Id: Iadab3d018c3559daf79be90edb23d131729bdb68

8 years agoMerge "Accessor to get EditPage parent revision ID"
jenkins-bot [Tue, 24 Nov 2015 22:23:35 +0000 (22:23 +0000)]
Merge "Accessor to get EditPage parent revision ID"

8 years agoAccessor to get EditPage parent revision ID
Adam Roses Wight [Sun, 5 Apr 2015 06:53:50 +0000 (23:53 -0700)]
Accessor to get EditPage parent revision ID

Take from either the request parameter, calculated value, or the actual
revision ID of the fetched page content.

This will be used in more places, once we replace time-based conflict
detection with revision-based detection.

Bug: T58849
Change-Id: I29dcb4694cd9fee4622663b4d9787e975cb415ec

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Tue, 24 Nov 2015 21:34:39 +0000 (22:34 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I3d00c03a39dfa25890d894b022a86bb6c7a626fc

8 years agoMerge "jquery.accessKeyLabel: Update Opera access keys"
jenkins-bot [Tue, 24 Nov 2015 21:21:18 +0000 (21:21 +0000)]
Merge "jquery.accessKeyLabel: Update Opera access keys"

8 years agojquery.accessKeyLabel: Update Opera access keys
Bartosz Dziewoński [Tue, 24 Nov 2015 20:55:07 +0000 (21:55 +0100)]
jquery.accessKeyLabel: Update Opera access keys

Bug: T119521
Change-Id: Ib2d121af55e890504dd0c643e520a12ab5745836

8 years agoMerge "Add unit tests for mw.format()"
jenkins-bot [Tue, 24 Nov 2015 20:48:18 +0000 (20:48 +0000)]
Merge "Add unit tests for mw.format()"

8 years agoAdd unit tests for mw.format()
Timo Tijhof [Tue, 24 Nov 2015 20:06:52 +0000 (20:06 +0000)]
Add unit tests for mw.format()

Follows-up ec285f44200f6574.

Change-Id: Ic3ff05c0f48bd6101361312af70ca2b2c52ef79a

8 years agoresourceloader: Optimise mw.loader.register()
Timo Tijhof [Fri, 20 Nov 2015 01:14:09 +0000 (01:14 +0000)]
resourceloader: Optimise mw.loader.register()

* Remove redundant 'len' variables. This is a dated micro-optimisation
  that is no longer useful and can actually have an adverse effect.

* Remove [.length] assignment. Use native push() instead.

* Remove JSLint-ism of "i += 1" instead of "i++".

* Remove redundant 'delete' operation for local 'unresolved'
  object. This falls naturally out of scope. Mutating this object
  to save memory probably wastes more cycles than it saves.

Change-Id: Ib3cb40d2fef696078bd64585db9498326f08b2d2

8 years agoMerge "Remove redundant escaping for namespace references in documentation"
jenkins-bot [Tue, 24 Nov 2015 20:07:50 +0000 (20:07 +0000)]
Merge "Remove redundant escaping for namespace references in documentation"

8 years agoMerge "Doxygen: Rewrite mwdoc-filter to fix bug with slashes in comments"
jenkins-bot [Tue, 24 Nov 2015 20:07:45 +0000 (20:07 +0000)]
Merge "Doxygen: Rewrite mwdoc-filter to fix bug with slashes in comments"

8 years agoMerge "StringUtils: Fixup Doxygen warnings"
jenkins-bot [Tue, 24 Nov 2015 19:57:19 +0000 (19:57 +0000)]
Merge "StringUtils: Fixup Doxygen warnings"

8 years agoMerge "Doxygen: Disable verbose output"
jenkins-bot [Tue, 24 Nov 2015 19:56:41 +0000 (19:56 +0000)]
Merge "Doxygen: Disable verbose output"

8 years agoresourceloader: Don't create redundant timers in addEmbeddedCSS()
Timo Tijhof [Thu, 19 Nov 2015 21:44:36 +0000 (21:44 +0000)]
resourceloader: Don't create redundant timers in addEmbeddedCSS()

There's is typically two ways one might implement an eventloop-based
timeout buffer in JavaScript.

Note that "tick" refers to an iteration of the eventloop. Each iteration starts
after all other sychronous code has finished in the current script execution.

1. Early-bird
   The first call to 'addBuffer' schedules a flush in the next tick.
   Any subsequent call (before the next tick) keeps adding to same buffer.
   As scheduled, in the next 'tick' all buffered items will be flushed.

   The next call to 'addBuffer' will a new cycle again.
   Buffered items are flushed within the next tick.

2. Idle delay
   Calls to 'addBuffer' always schedule a new flush. One cancels any existing
   flush that may've been scheduled. This effectively keeps pushing the flush
   to a future tick until a tick does not buffer new items.
   Buffered items may remain in buffer for a long time.

For the CSS buffer in ResourceLoader we want the first model. And while the
implementation already behaves like that, it was creating new timers in each
call regardless. This resulted in 10 buffered items creating 10 timers.
The first timer flushes the buffer. And the remaining 9 timers all try to
flush an empty buffer.

Change-Id: I49c64fedb0ad0362e91bb782fecf3cdda7dc61fc

8 years agoMerge "Implement HTMLComboboxField"
jenkins-bot [Tue, 24 Nov 2015 19:20:07 +0000 (19:20 +0000)]
Merge "Implement HTMLComboboxField"

8 years agoMerge "mw.widgets.CategoryCapsuleItemWidget: Explicitly stringify link 'title'"
jenkins-bot [Tue, 24 Nov 2015 19:17:28 +0000 (19:17 +0000)]
Merge "mw.widgets.CategoryCapsuleItemWidget: Explicitly stringify link 'title'"

8 years agomw.widgets.CategoryCapsuleItemWidget: Explicitly stringify link 'title'
Bartosz Dziewoński [Tue, 24 Nov 2015 17:58:37 +0000 (18:58 +0100)]
mw.widgets.CategoryCapsuleItemWidget: Explicitly stringify link 'title'

Follow-up to a9e699553e73868ea5bbc80d9b2481ef6cc26a2f. Explicit is
better than implicit.

Change-Id: Ied1c7204fac015c96a4638fd833dee394171ee02

8 years agoMerge "Add script to fix content model of JSON pages"
jenkins-bot [Tue, 24 Nov 2015 18:53:43 +0000 (18:53 +0000)]
Merge "Add script to fix content model of JSON pages"

8 years agoMerge "resourceloader: Remove redundant back-compat in mw.loader.addSource()"
jenkins-bot [Tue, 24 Nov 2015 18:47:48 +0000 (18:47 +0000)]
Merge "resourceloader: Remove redundant back-compat in mw.loader.addSource()"

8 years agoAdd script to fix content model of JSON pages
Kunal Mehta [Wed, 21 Oct 2015 05:44:33 +0000 (22:44 -0700)]
Add script to fix content model of JSON pages

MediaWiki:Foo.json and User:Foo/bar.json pages now have a default
content model of JSON, but existing pages using those names will be set
to defaults of wikitext.

The content models of those pages are now set to "json", unless it has
invalid syntax, in which case it will be set to "wikitext".

For convenience, the script is automatically run as part of update.php.

Bug: T108663
Change-Id: I1412937ccea8e65dba58580beec79cbf2286ae01

8 years agoMerge "Mark ApiQueryBase::getDirectionDescription as deprecated"
jenkins-bot [Tue, 24 Nov 2015 16:39:50 +0000 (16:39 +0000)]
Merge "Mark ApiQueryBase::getDirectionDescription as deprecated"