lhc/web/wiklou.git
11 years agoMerge "QUnit: Re-enable config.requireExpects and add missing numbers."
jenkins-bot [Mon, 25 Mar 2013 14:59:12 +0000 (14:59 +0000)]
Merge "QUnit: Re-enable config.requireExpects and add missing numbers."

11 years agoMerge "Update plural rules for Hebrew"
jenkins-bot [Mon, 25 Mar 2013 14:04:06 +0000 (14:04 +0000)]
Merge "Update plural rules for Hebrew"

11 years agoMerge "TimeAdjustTest: Use dataProvider"
jenkins-bot [Mon, 25 Mar 2013 10:30:39 +0000 (10:30 +0000)]
Merge "TimeAdjustTest: Use dataProvider"

11 years ago(bug 46529) Add gender aliases for Yiddish
Amir E. Aharoni [Mon, 25 Mar 2013 09:39:50 +0000 (11:39 +0200)]
(bug 46529) Add gender aliases for Yiddish

Change-Id: I607016bddc6759998c36e73e44754663ae78be70

11 years agoMerge "Add mobile target to jquery.getAttrs"
jenkins-bot [Sun, 24 Mar 2013 15:13:22 +0000 (15:13 +0000)]
Merge "Add mobile target to jquery.getAttrs"

11 years agoAdd mobile target to jquery.getAttrs
Juliusz Gonera [Sun, 24 Mar 2013 02:18:37 +0000 (03:18 +0100)]
Add mobile target to jquery.getAttrs

mediawiki.tests.qunit.testrunner has a dependency on it, which we want
on mobile.

Change-Id: Iffa7166362fe568ce8ed95db427c432e111d65a1

11 years agoMove RELEASE-NOTES entry to the correct section
Alexandre Emsenhuber [Sun, 24 Mar 2013 07:30:21 +0000 (08:30 +0100)]
Move RELEASE-NOTES entry to the correct section

Follow-up I719d84c5 (d240930d); that change is in the API,
so the RELEASE-NOTES entry belongs to the API section.

Change-Id: I48581bb59b3ac593443ff092c3fb7a42ac8958e1

11 years agoMerge "release notes update due to Change-Id: Idab489fc017dcf226ea39f2f1766e06064e4e...
jenkins-bot [Sun, 24 Mar 2013 04:29:25 +0000 (04:29 +0000)]
Merge "release notes update due to Change-Id:  Idab489fc017dcf226ea39f2f1766e06064e4ec0a (bug 25325) fix hiding bot edits"

11 years agorelease notes update due to Change-Id:
kaligula [Sun, 24 Mar 2013 03:36:43 +0000 (04:36 +0100)]
release notes update due to Change-Id:
 Idab489fc017dcf226ea39f2f1766e06064e4ec0a
(bug 25325) fix hiding bot edits

Change-Id: Ib07d4923dd6ac44520e459f0e9886bd1f8e0a4b7

11 years agoMerge "(bug 25325) fix hiding bot edits"
jenkins-bot [Sun, 24 Mar 2013 01:07:34 +0000 (01:07 +0000)]
Merge "(bug 25325) fix hiding bot edits"

11 years ago(bug 25325) fix hiding bot edits
kaligula [Sun, 24 Mar 2013 00:32:58 +0000 (01:32 +0100)]
(bug 25325) fix hiding bot edits

I added support for 'wlshow' parameter, which allows user
to decide if to include or exclude bot/minor/anon/patrolled
edits from feed watchlist.

Plus: I bound the params checkup and params' descriptions with
ApiQueryWatchlist (Yurik's suggestions).

Change-Id: Idab489fc017dcf226ea39f2f1766e06064e4ec0a

11 years agoMerge "IcuCollation::$tailoringFirstLetters: letter removal rules for Finnish"
Brian Wolff [Sat, 23 Mar 2013 20:53:00 +0000 (20:53 +0000)]
Merge "IcuCollation::$tailoringFirstLetters: letter removal rules for Finnish"

11 years agoMerge "IcuCollation::$tailoringFirstLetters: 'sv', 'vi' verified"
Brian Wolff [Sat, 23 Mar 2013 20:32:04 +0000 (20:32 +0000)]
Merge "IcuCollation::$tailoringFirstLetters: 'sv', 'vi' verified"

11 years agoPass function name to insert() in replace() in Database class
umherirrender [Sat, 23 Mar 2013 11:18:40 +0000 (12:18 +0100)]
Pass function name to insert() in replace() in Database class

Change-Id: I891370aa5d623ac9971c719da7996a93db641a2c

11 years agoAdd to docs that input will be HTML escaped
Siebrand Mazeland [Sat, 23 Mar 2013 14:07:19 +0000 (15:07 +0100)]
Add to docs that input will be HTML escaped

Change-Id: Ie90a6bc29f54361ec74cbf54551266b94ce6061f

11 years agoTimeAdjustTest: Use dataProvider
umherirrender [Fri, 22 Mar 2013 14:23:28 +0000 (15:23 +0100)]
TimeAdjustTest: Use dataProvider

Also removes setting of wgContLang/wgLanguageCode, because test extends
MediaWiki*Lang*TestCase

Change-Id: I8a24fbe161c8f2ecae7591baf99845ff4434f983

11 years agoMerge "DefaultSettings: Remove some empty lines"
jenkins-bot [Sat, 23 Mar 2013 10:48:05 +0000 (10:48 +0000)]
Merge "DefaultSettings: Remove some empty lines"

11 years agoMerge "Add a full stop to the message "noemailcreate""
jenkins-bot [Sat, 23 Mar 2013 09:33:44 +0000 (09:33 +0000)]
Merge "Add a full stop to the message "noemailcreate""

11 years agoMerge "New paragraphs wrapping tests in the presence of comments & WS lines."
GWicke [Sat, 23 Mar 2013 00:25:50 +0000 (00:25 +0000)]
Merge "New paragraphs wrapping tests in the presence of comments & WS lines."

11 years agoAdd a full stop to the message "noemailcreate"
shirayuki [Sat, 23 Mar 2013 00:11:27 +0000 (09:11 +0900)]
Add a full stop to the message "noemailcreate"

Change-Id: I10c8ef9fbccfb06e331368a0a36046a646272975

11 years agoMerge "Remove (edit) from Special:Tags for non-editinterface users"
jenkins-bot [Fri, 22 Mar 2013 23:37:26 +0000 (23:37 +0000)]
Merge "Remove (edit) from Special:Tags for non-editinterface users"

11 years agoMerge "Installer: Check if /extensions is readable and a directory"
Demon [Fri, 22 Mar 2013 22:09:22 +0000 (22:09 +0000)]
Merge "Installer: Check if /extensions is readable and a directory"

11 years agoRevert "Misc follow-ups to I2fc3966e (a161c5e)"
Aaron Schulz [Fri, 22 Mar 2013 20:48:00 +0000 (20:48 +0000)]
Revert "Misc follow-ups to I2fc3966e (a161c5e)"

That apparently caused bug 46397.

This reverts commit 388b14a15de6c531d876796dde02605f046fcf53

Bug : 46397
Change-Id: Ideaa86f0d535873a08e27d6f98f6bd4255b8c594

11 years agoDefaultSettings: Remove some empty lines
umherirrender [Fri, 22 Mar 2013 19:50:19 +0000 (20:50 +0100)]
DefaultSettings: Remove some empty lines

Add a missing comment - text taken from
https://www.mediawiki.org/wiki/Manual:$wgProxyMemcExpiry

Change-Id: Ifccf920e1e6d1312d8adb39f83eef59f33cc148b

11 years agoMerge "Tests: Fix case of some methods"
jenkins-bot [Fri, 22 Mar 2013 19:37:33 +0000 (19:37 +0000)]
Merge "Tests: Fix case of some methods"

11 years agoMerge "ContentHandlerTest: Use dataProvider"
jenkins-bot [Fri, 22 Mar 2013 19:32:17 +0000 (19:32 +0000)]
Merge "ContentHandlerTest: Use dataProvider"

11 years agoMerge "Tests: Use more setMwGlobals"
jenkins-bot [Fri, 22 Mar 2013 19:15:03 +0000 (19:15 +0000)]
Merge "Tests: Use more setMwGlobals"

11 years agoNew paragraphs wrapping tests in the presence of comments & WS lines.
Subramanya Sastry [Fri, 22 Mar 2013 18:36:20 +0000 (13:36 -0500)]
New paragraphs wrapping tests in the presence of comments & WS lines.

Change-Id: I3654f28846cce321ea97f70389cabe11b2786082

11 years agoInstaller: Check if /extensions is readable and a directory
umherirrender [Fri, 22 Mar 2013 17:53:51 +0000 (18:53 +0100)]
Installer: Check if /extensions is readable and a directory

Also close the dirhandler and fix one return value

bug: 46447
Change-Id: I0abe540d66375e6833640bb234e62b6cc902beb0

11 years agoTests: Fix case of some methods
umherirrender [Fri, 22 Mar 2013 16:44:34 +0000 (17:44 +0100)]
Tests: Fix case of some methods

Change-Id: Iab247f805410f2e9157d325edd80880538a3e54c

11 years agoMerge "Add tests for case-(in)sensitive magic words"
Subramanya Sastry [Fri, 22 Mar 2013 14:20:34 +0000 (14:20 +0000)]
Merge "Add tests for case-(in)sensitive magic words"

11 years agoMerge "Remove <code></code> because it is not parsed"
jenkins-bot [Fri, 22 Mar 2013 14:17:04 +0000 (14:17 +0000)]
Merge "Remove <code></code> because it is not parsed"

11 years agoContentHandlerTest: Use dataProvider
umherirrender [Fri, 22 Mar 2013 14:16:35 +0000 (15:16 +0100)]
ContentHandlerTest: Use dataProvider

Changing a global 3 times in a test is bad, using dataProvider for two
tests and split another in 3, because there are different.

Using mwglobals to set the globals, than restoring is done
automatically.

Change-Id: Ie0f9ce0be39e457d18752e905d6deeb1803cb4c3

11 years agoMerge "Test to make sure numRows() calls don't show unrelated errors"
jenkins-bot [Fri, 22 Mar 2013 13:58:54 +0000 (13:58 +0000)]
Merge "Test to make sure numRows() calls don't show unrelated errors"

11 years agoTest to make sure numRows() calls don't show unrelated errors
Chad Horohoe [Mon, 26 Nov 2012 13:34:20 +0000 (08:34 -0500)]
Test to make sure numRows() calls don't show unrelated errors

Bug: 42430
Change-Id: Ie939785c1f75aa99bdf59e013d5ebf65e866289c

11 years agoUpdate plural rules for Hebrew
Amir E. Aharoni [Thu, 21 Mar 2013 09:37:25 +0000 (11:37 +0200)]
Update plural rules for Hebrew

A recent CLDR update changed the plural rules for Hebrew
and added a "many" form. That rule has a mistake, however -
it is not supposed to include the number 10. This is reported as
http://unicode.org/cldr/trac/ticket/5828

This commit updates the plural overrides for Hebrew and makes
them closer to the latest CLDR, but with a fix for that rule.

It also updates the tests to include support for the new rule
and to make sure that the right fallbacks are used when
less than four rules are supplied, because usually that is
the case. It is thus a partial revert of the changes introduced
in I3d72e4105f6244b0695116940e62a2ddef66eb66 .

Mingle-Task: 2715

Change-Id: I1315e6900ef7a89bf246e748b786f7fc31a629c6

11 years agoRemove <code></code> because it is not parsed
raymond [Fri, 22 Mar 2013 10:01:10 +0000 (11:01 +0100)]
Remove <code></code> because it is not parsed

This reverts a part of Iaa2c89d6
bug: 46142

Change-Id: I33bf2a3ee46156cecc52ebbab79433a56817e2e1

11 years agoMerge "Tests: Make phpunit providers "public static"."
jenkins-bot [Fri, 22 Mar 2013 09:09:26 +0000 (09:09 +0000)]
Merge "Tests: Make phpunit providers "public static"."

11 years agoMerge "MessageTest: Split test and use setMwGlobals"
jenkins-bot [Fri, 22 Mar 2013 08:41:42 +0000 (08:41 +0000)]
Merge "MessageTest: Split test and use setMwGlobals"

11 years agoA list of many words mediawiki uses as strings, comments, names.
Yuri Astrakhan [Fri, 22 Mar 2013 05:07:37 +0000 (01:07 -0400)]
A list of many words mediawiki uses as strings, comments, names.

This file can be attached to various IDEs to significantly reduce
the number of false positive spellchecking errors.

Change-Id: Ibfb0d89a1cbf58ea031e7873b5e6e01009f141bc

11 years agoTests: Make phpunit providers "public static".
Timo Tijhof [Fri, 22 Mar 2013 02:12:37 +0000 (03:12 +0100)]
Tests: Make phpunit providers "public static".

Follows-up I9d2b148e57 (including phpunit/languages this time).

Bug: 46434
Change-Id: I30e5efcd88c516121c454676bd7a18f9b7c8fca6

11 years agoMerge "(bug 23393) (bug 45803) Parser: Fix whitespace handling within headings"
Brion VIBBER [Thu, 21 Mar 2013 23:52:03 +0000 (23:52 +0000)]
Merge "(bug 23393) (bug 45803) Parser: Fix whitespace handling within headings"

11 years ago(bug 23393) (bug 45803) Parser: Fix whitespace handling within headings
MatmaRex [Wed, 6 Mar 2013 20:06:31 +0000 (21:06 +0100)]
(bug 23393) (bug 45803) Parser: Fix whitespace handling within headings

* HTML <hN> headings containing line breaks are now handled correctly
  (bug 23393).

* Whitespace within == Headline == syntax and within <hN> headings is
  now non-significant and not preserved in the HTML output (bug
  45803).

Change-Id: I0f2d81dd0b2f7742c5cdb6b7d2cc58a15d3f1029

11 years agoCall loadFromRow() as needed in Title::moveToInternal.
Aaron Schulz [Thu, 21 Mar 2013 23:06:45 +0000 (16:06 -0700)]
Call loadFromRow() as needed in Title::moveToInternal.

* Follows up 61c0064de538c3b1ea61470eadd88fab87d3513e,
  which was missing a load call to fully fix the bug.
  Calling loadFromRow() forced the page to load as
  non-existing (which it should be).
* The redirect title was triggering a load from a slave in
  updateRevisionOn() and wrongly updating the destination page
  to point to the redirect revision and leaving the redirect
  page with page_latest=0;

Bug : 46397
Change-Id: Id6abe062a0266a790716df8c592911fd89b83223

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Thu, 21 Mar 2013 22:30:13 +0000 (22:30 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I1ffbea309c530d5433a11d98a3844bda1a0d9584

11 years agoTests: Use more setMwGlobals
umherirrender [Thu, 21 Mar 2013 19:35:44 +0000 (20:35 +0100)]
Tests: Use more setMwGlobals

Change some tests to use setMwGlobals to have restoring of globals after
the test.
This also removes some save/restore code, which is not needed, due to
the automatically restoring on tearDown with setMwGlobals.

Change-Id: I8d2ac9f6cc14f0bd4ee8eb851c09f2e71babc6e0

11 years agoMessageTest: Split test and use setMwGlobals
umherirrender [Thu, 21 Mar 2013 19:05:39 +0000 (20:05 +0100)]
MessageTest: Split test and use setMwGlobals

Change-Id: I9d7f16ed519622d5ac947da8538449f520eb0eae

11 years agoMerge "API: Fix parameter validation in setnotificationtimestamp"
jenkins-bot [Thu, 21 Mar 2013 18:10:43 +0000 (18:10 +0000)]
Merge "API: Fix parameter validation in setnotificationtimestamp"

11 years agoMerge "Call loadPageData() as needed in Title::moveToInternal."
jenkins-bot [Thu, 21 Mar 2013 16:38:57 +0000 (16:38 +0000)]
Merge "Call loadPageData() as needed in Title::moveToInternal."

11 years agoCall loadPageData() as needed in Title::moveToInternal.
Aaron Schulz [Thu, 21 Mar 2013 07:03:59 +0000 (00:03 -0700)]
Call loadPageData() as needed in Title::moveToInternal.

* This avoids use of a slave for loading the page ID to do
  the updates using $newpage. That bug prevented page moves
  by using the old 0 ID and throwing an exception.

Bug: 46397
Change-Id: Iea3259dce6840e3f2959d98a20177acd60433b64

11 years agoAPI: Fix parameter validation in setnotificationtimestamp
Brad Jorsch [Fri, 15 Mar 2013 18:03:19 +0000 (14:03 -0400)]
API: Fix parameter validation in setnotificationtimestamp

This was broken in I7a3d7b6e, when the ApiPageSet parameters stopped
being returned by getAllowedParams() and so by extractRequestParams().
Although it would be broken differently if they had been.

Change-Id: I4b6ec21fd7b7c932856546df1ccad574d996db1f

11 years agoAdd SpecialSearchResultsPrepend/Append to release notes
Ryan Finnie [Thu, 21 Mar 2013 09:33:47 +0000 (02:33 -0700)]
Add SpecialSearchResultsPrepend/Append to release notes

Commit 1c3b2a1 added the SpecialSearchResultsPrepend and
SpecialSearchResultsAppend hooks, which were documented in
docs/hooks.txt, but were not added to the release notes.

Change-Id: I226349aa0199f5d72da0d1fab61e4facf92306b6

11 years ago[JobQueue] Added support for delayed jobs with JobQueueRedis.
Aaron Schulz [Tue, 12 Mar 2013 03:40:01 +0000 (20:40 -0700)]
[JobQueue] Added support for delayed jobs with JobQueueRedis.

* The queue can handle delaying jobs until a given timestamp is reached.
* Added Job::getReleaseTimestamp() to let jobs specifiy delay amounts.
* Added a "checkDelay" option and a supportsDelayedJobs() function to JobQueue.
  There are also getDelayedCount() and getAllDelayedJobs() functions.
* Simplified a bit of code in doBatchPush() and pushBlobs().
* Improved the logic in redisEval().

Change-Id: I40b3e3438e659f6844bdbdd5e9d3ccc6c4dc82b2

11 years agoMerge "Fix WDDX formatted output"
jenkins-bot [Thu, 21 Mar 2013 06:30:22 +0000 (06:30 +0000)]
Merge "Fix WDDX formatted output"

11 years agoMerge "Add comments for grep (includes/installer/)"
jenkins-bot [Thu, 21 Mar 2013 02:14:39 +0000 (02:14 +0000)]
Merge "Add comments for grep (includes/installer/)"

11 years agoFix wfWaitForSlaves() for foreign DBs
Catrope [Thu, 21 Mar 2013 00:43:44 +0000 (17:43 -0700)]
Fix wfWaitForSlaves() for foreign DBs

We thought we'd fixed it previously, but the LB now connects to the
foreign slaves and tries to select $wgDBname. Fixing this by having
doWait() open connections that don't select any DB name, by passing
the empty string as the DB name. This is an undocumented feature
in the DatabaseMysql constructor, apparently.

Change-Id: Icc5594143a3eaa31170a7fc8c93d429c1a7dd575

11 years agoIcuCollation::$tailoringFirstLetters: letter removal rules for Finnish
MatmaRex [Wed, 20 Mar 2013 23:12:00 +0000 (00:12 +0100)]
IcuCollation::$tailoringFirstLetters: letter removal rules for Finnish

Four non-ASCII letters - Ǥ, Ŋ, Ŧ, Ʒ - are sorted the same as their
unaccented base ASCII versions - G, N, T, Z - causing unexpected
output on category pages.

Bug: 46330
Change-Id: I976dedfdc651fcc96a2291934924aa40b27f4c2f

11 years agoAdd comments for grep (includes/installer/)
shirayuki [Mon, 18 Mar 2013 10:26:57 +0000 (19:26 +0900)]
Add comments for grep (includes/installer/)

Change-Id: Idb44b343267978ae214b2cfe9a05947b220629d7

11 years agoMerge "Fix wfWaitForSlaves() so the $wiki parameter actually works correctly"
Peter Gehres [Wed, 20 Mar 2013 21:44:04 +0000 (21:44 +0000)]
Merge "Fix wfWaitForSlaves() so the $wiki parameter actually works correctly"

11 years agoFix wfWaitForSlaves() so the $wiki parameter actually works correctly
Peter Gehres [Wed, 20 Mar 2013 21:21:16 +0000 (14:21 -0700)]
Fix wfWaitForSlaves() so the $wiki parameter actually works correctly

Change-Id: I1f3da5921f2d724e10c448700ea8b958ff159451

11 years agoMerge "Localisation updates from http://translatewiki.net."
Translation updater bot [Wed, 20 Mar 2013 21:07:33 +0000 (21:07 +0000)]
Merge "Localisation updates from translatewiki.net."

11 years agoMerge "MagicVariableTest.php: Use dataProvider"
jenkins-bot [Wed, 20 Mar 2013 20:45:39 +0000 (20:45 +0000)]
Merge "MagicVariableTest.php: Use dataProvider"

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Wed, 20 Mar 2013 20:26:19 +0000 (20:26 +0000)]
Localisation updates from translatewiki.net.

Change-Id: Id18fb2721534f365dbcab26c7531fca87f859b28

11 years agoMagicVariableTest.php: Use dataProvider
umherirrender [Wed, 20 Mar 2013 19:10:18 +0000 (20:10 +0100)]
MagicVariableTest.php: Use dataProvider

Setting a global 3 times in one test method looks weird

Change-Id: I97f6a932ee2d5c9a5e427cf0f40ced730b7e12ec

11 years agoSideBarTest.php: Use dataProvider/use setMwGlobals
umherirrender [Wed, 20 Mar 2013 18:46:46 +0000 (19:46 +0100)]
SideBarTest.php: Use dataProvider/use setMwGlobals

One test method should cover one thing, so splitting this up.
Removing save/restore of globals, done automatically with setMwGlobals

Change-Id: Ideefaf23723b224fc14aff9fdc448f1ee6ec9ea9

11 years agoMerge "Added a PoolCounterWorkViaCallback convenience class."
jenkins-bot [Wed, 20 Mar 2013 18:19:40 +0000 (18:19 +0000)]
Merge "Added a PoolCounterWorkViaCallback convenience class."

11 years agoMerge "Allow the retrieval of the plural rule type for a given number"
jenkins-bot [Wed, 20 Mar 2013 15:48:04 +0000 (15:48 +0000)]
Merge "Allow the retrieval of the plural rule type for a given number"

11 years agoMerge "$wgContLang global unneeded in braceSubstitution() since fc00763f0"
jenkins-bot [Wed, 20 Mar 2013 13:44:32 +0000 (13:44 +0000)]
Merge "$wgContLang global unneeded in braceSubstitution() since fc00763f0"

11 years agoMerge "A few minor doc group tweaks."
jenkins-bot [Wed, 20 Mar 2013 13:20:17 +0000 (13:20 +0000)]
Merge "A few minor doc group tweaks."

11 years ago$wgContLang global unneeded in braceSubstitution() since fc00763f0
Platonides [Wed, 20 Mar 2013 10:30:09 +0000 (11:30 +0100)]
$wgContLang global unneeded in braceSubstitution() since fc00763f0

Change-Id: I0fc7f1ca5989d4a7ca8b4a49fd1f5229f23f9be5

11 years agoAllow the retrieval of the plural rule type for a given number
Kaldari [Fri, 25 Jan 2013 01:10:37 +0000 (17:10 -0800)]
Allow the retrieval of the plural rule type for a given number

For example, find out which rule type should be applied for 5 items
in Arabic. The result would be 'few'.

This implementation should be non-disruptive and completely backwards
compatible (which is the main reason it isn't a lot simpler).

Change-Id: I3d72e4105f6244b0695116940e62a2ddef66eb66

11 years agoMerge "Remove custom plurals for Nso and Sl in favour of CLDR"
jenkins-bot [Wed, 20 Mar 2013 08:41:52 +0000 (08:41 +0000)]
Merge "Remove custom plurals for Nso and Sl in favour of CLDR"

11 years agoRemove custom plurals for Nso and Sl in favour of CLDR
Santhosh Thottingal [Mon, 18 Mar 2013 11:07:28 +0000 (16:37 +0530)]
Remove custom plurals for Nso and Sl in favour of CLDR

Nso - Northern Sotho
Sl - Slovenian

Plural rules were not changed. They are same in CLDR and MW

Change-Id: I0e0c84352de2de8f58af5a9147ba18b0fe1fb39a

11 years agoAdded a PoolCounterWorkViaCallback convenience class.
Aaron Schulz [Mon, 18 Mar 2013 23:16:51 +0000 (16:16 -0700)]
Added a PoolCounterWorkViaCallback convenience class.

Change-Id: I1cbb2cc8a43eea2d28f38cfd2d3a4908dc7d0da9

11 years agoMerge "Add test for table with empty line between table and row tag"
Subramanya Sastry [Wed, 20 Mar 2013 04:52:56 +0000 (04:52 +0000)]
Merge "Add test for table with empty line between table and row tag"

11 years agoMerge "Extend paragraph / line with block tag interaction tests"
Subramanya Sastry [Wed, 20 Mar 2013 04:48:40 +0000 (04:48 +0000)]
Merge "Extend paragraph / line with block tag interaction tests"

11 years ago[JobQueue] Factored "root job" de-duplication code into base class.
Aaron Schulz [Thu, 28 Feb 2013 22:21:28 +0000 (14:21 -0800)]
[JobQueue] Factored "root job" de-duplication code into base class.

* Moved the root job handling up to the base class and provided
  some default function implementations.
* Also bumped ROOTJOB_TTL from 14 to 28 days.

Change-Id: I70bc043bfc039c5d0b009e0b5d39fd2887f46093

11 years agoAdd parser method to call parser functions
Brad Jorsch [Mon, 4 Mar 2013 03:35:05 +0000 (22:35 -0500)]
Add parser method to call parser functions

There is currently no straightforward way for anything to call a parser
function and get the result. This abstracts out that portion of
braceSubstitution() to allow this.

The immediate motivation for this patch is to close bug 41769 against
Scribunto, see I0138836654b0e34c5c23daaedcdf5d4f9d1c7ab2.

Bug: 41769
Change-Id: I339b882010dedd714e7965e25ad650ed8b8cd48f

11 years ago[JobQueue] Optimized redis queue to use Lua scripts.
Aaron Schulz [Wed, 13 Mar 2013 21:26:28 +0000 (14:26 -0700)]
[JobQueue] Optimized redis queue to use Lua scripts.

* Cleaned up some data structures into hashes, which get better
  compression and play well with the KEYS parameter in Lua scripts.
  The claim list is now a sorted set with O(logN) removal in ack()
  and O(log(N)+M) searching in recycleAndDeleteStaleJobs().
* Made the class itself control object serialization, so that lua
  scripts have an easy time. Only the job data itself needs to be
  serialized, where as other things just get bloated.
* Used Lua scripts to get push(), pop() and ack() down to 1 RTT.
* Likewise rewrote recycleAndDeleteStaleJobs() to use a script.
* Fixed bug where claimed duplicate jobs removed the data on ack(),
  which meant that claimed duplicated jobs could no-op newer ones.
  De-duplication should only apply to unclaimed jobs like for the
  JobQueueDB class, so that unfinished jobs don't no-op new ones.
* Removed locking in recycleAndDeleteStaleJobs(), which would not do
  much since the exclusive set request would serialize on the lua
  script anyway. The lua script will finish quickly the next times
  if done more than once in a row due to sorted set usage.
  Also made recycleAndDeleteStaleJobs() run randomly to reduce the
  chance of a single calling tying up the server.
* Removed useless hDel() call in getJobFromUidInternal().
* Changed unit tests to handle the different supported orders better.
  Added tests for the 'timestamp' ordering.

Change-Id: Ib2d7aff18753195248ab856afd4a46e18b301db9

11 years agoAdd tests for case-(in)sensitive magic words
Mark Holmquist [Fri, 15 Mar 2013 16:27:35 +0000 (09:27 -0700)]
Add tests for case-(in)sensitive magic words

Parsoid needs these to make sure it doesn't regress along these lines, and for
some reason they aren't tested anywhere else.

Change-Id: Id8fd91b0d36d31f9bb209aa4088f1e28cadbd7ca

11 years agoAdd test for table with empty line between table and row tag
Gabriel Wicke [Tue, 19 Mar 2013 23:31:09 +0000 (16:31 -0700)]
Add test for table with empty line between table and row tag

Test case:

{|

|-
| foo
|}

Change-Id: I71c0be624aef3b9cf40b58cab8c7a448dda44033

11 years agoExtend paragraph / line with block tag interaction tests
Gabriel Wicke [Tue, 19 Mar 2013 21:24:25 +0000 (14:24 -0700)]
Extend paragraph / line with block tag interaction tests

Tests this case too:

<div>a</div>b

<div>b</div>d

<div>e</div>

Change-Id: Ic0cc36ad8f43c3147737d38b6d9acd1100062230

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Tue, 19 Mar 2013 21:18:38 +0000 (21:18 +0000)]
Localisation updates from translatewiki.net.

Change-Id: Ided02055632d04dc2223fbcdd308132ea3b1cd81

11 years agoRevert "Change login/createaccount forms to new appearance"
Matmarex [Tue, 19 Mar 2013 19:52:13 +0000 (19:52 +0000)]
Revert "Change login/createaccount forms to new appearance"

The code did not go through a proper review process, and - quite
simply - it is unacceptable by core standards (or by any standards, to
be honest).

* It "[u]ses JavaScript to munge the create account CAPTCHA", to quote
  the commit message
* It is littered with TODOs and FIXMEs, as well as messages from one
  coder to the other and commented-out code
* It modifies some HTTPS-related logic for no obvious reason (it's not
  documented or even mentioned *at all* in a otherwise front-end
  changeset)
* It happily disregards code conventions (trailing spaces, #-comments,
  CSS formatting)
* It includes different CSS font-family rules that the entire rest of
  software uses for display, creating design inconsistency
* It hardcodes links in the format "/wiki/XXX"
* It hardcodes English-language link hrefs

This reverts commit 92bb00d35688e72ebeea75ed55a6db981cfb71e5

Conflicts:

languages/messages/MessagesEn.php

Change-Id: I00d72fe157e697d5cf926e75bcea5db0bee153e5

11 years agoRemove (edit) from Special:Tags for non-editinterface users
umherirrender [Tue, 19 Mar 2013 20:06:17 +0000 (21:06 +0100)]
Remove (edit) from Special:Tags for non-editinterface users

bug: 46180
Change-Id: I5106428b78ebdeeda4afe6fd07fba4e1e264dd18

11 years agoMerge "Rebuild MessagesEn.php"
jenkins-bot [Tue, 19 Mar 2013 19:52:13 +0000 (19:52 +0000)]
Merge "Rebuild MessagesEn.php"

11 years agoMerge "Cleaned up PoolCounter docs, moved up some functions, and declared public...
jenkins-bot [Tue, 19 Mar 2013 19:31:27 +0000 (19:31 +0000)]
Merge "Cleaned up PoolCounter docs, moved up some functions, and declared public functions."

11 years agoRebuild MessagesEn.php
Alexandre Emsenhuber [Tue, 19 Mar 2013 19:15:49 +0000 (20:15 +0100)]
Rebuild MessagesEn.php

Change-Id: I8fd6fbb455f57415c217c66e828dd27d6f2bc293

11 years agoMerge "Change login/createaccount forms to new appearance"
jenkins-bot [Tue, 19 Mar 2013 18:33:42 +0000 (18:33 +0000)]
Merge "Change login/createaccount forms to new appearance"

11 years agoMerge "wfProfile fixes: 0543c7b0 added a wfProfileIn() that should have been wfProfi...
jenkins-bot [Tue, 19 Mar 2013 17:01:59 +0000 (17:01 +0000)]
Merge "wfProfile fixes:  0543c7b0 added a wfProfileIn() that should have been wfProfileOut()  Reorder Http::request() so that wfProfileOut() is at the same level as the above wfProfileIn() [checked by check-vars]"

11 years agowfProfile fixes:
Platonides [Tue, 19 Mar 2013 15:12:14 +0000 (16:12 +0100)]
wfProfile fixes:
 0543c7b0 added a wfProfileIn() that should have been wfProfileOut()
 Reorder Http::request() so that wfProfileOut() is at the same
level as the above wfProfileIn() [checked by check-vars]

Change-Id: Ia91445d792e524b9c570890397f1513af0d8cd73

11 years agoMoved some RedisConnectionPool docs to the factory function.
Aaron Schulz [Mon, 18 Mar 2013 16:57:23 +0000 (09:57 -0700)]
Moved some RedisConnectionPool docs to the factory function.

Change-Id: I4183b96e123882de604de1484456abcd10091fb2

11 years agoMerge "Check for rev_len not rev_sha1"
jenkins-bot [Tue, 19 Mar 2013 07:16:03 +0000 (07:16 +0000)]
Merge "Check for rev_len not rev_sha1"

11 years agoChange login/createaccount forms to new appearance
S Page [Tue, 5 Mar 2013 03:13:39 +0000 (19:13 -0800)]
Change login/createaccount forms to new appearance

If a global variable is set or if you add ?useAgora=1 to the query
string, Special:Userlogin loads a different login or create account
template (Userlogin-/UsercreateAgora.php) with an Agora look and
different messaging.  Otherwise the current form is unchanged so
that wikis can cut over to the new look when desired.

These new templates apply mw-ui-formlist and mw-ui-button styles defined
in a new 'mediawiki.ui' CSS module in core (copied from Extension:Agora).

In useAgora mode, Special:Userlogin also:
* Adds new modules with some additional CSS for new form features
  ("Join wiki", benefits of creating an account).
* Defines new "userlogin/usercreate-xx" messages, many are the same as
  existing messages but without ':' on the end.
* Uses a distinct title for each mode instead of generic "Log in /
  Create account".
* Uses JavaScript to munge the create account CAPTCHA.
* Outputs checkboxes using UserloginTemplateAgora::labelledCheck()
* Displays a benefits column of wiki edits/users/contributor numbers.

TODO:
- Restyle/reposition language selector
- Munge CAPTCHA in PHP not JavaScript, i18n of new CAPTCHA messages.
- Identify the subset of Agora appropriate for non-Vector skins and
  create mediawiki.ui.default.css from that.

Patch set 18: Agora styles now in core.

Bug: 44628
Change-Id: I859edab4fc4fa9fe35fdef15fc429ae19a95305d

11 years agoMerge "Add two table parser tests"
Subramanya Sastry [Mon, 18 Mar 2013 23:56:57 +0000 (23:56 +0000)]
Merge "Add two table parser tests"

11 years agoAdd mobile target to QUnit and its dependencies
Juliusz Gonera [Fri, 22 Feb 2013 23:13:30 +0000 (15:13 -0800)]
Add mobile target to QUnit and its dependencies

This allows us to run mobile JavaScript tests in the environment (skin)
they were written for.

Change-Id: I84e0512590de9ff2dbdf519d983a0c1c2d007194

11 years agoCleaned up PoolCounter docs, moved up some functions, and declared public functions.
Aaron Schulz [Mon, 18 Mar 2013 22:41:19 +0000 (15:41 -0700)]
Cleaned up PoolCounter docs, moved up some functions, and declared public functions.

Change-Id: I9b3a320a3ea12c3d7aea09236cd0ecbf37a19860

11 years agoAdd two table parser tests
Gabriel Wicke [Mon, 18 Mar 2013 22:26:00 +0000 (15:26 -0700)]
Add two table parser tests

One tests paragraph wrapping inside of table cells, the other mixed wikitext /
html syntax tables in Parsoid only.

Change-Id: I1e07e868d7f329ac1fa5d33b7fa07c7e701f41ba

11 years agoA few minor doc group tweaks.
Aaron Schulz [Mon, 18 Mar 2013 22:14:55 +0000 (15:14 -0700)]
A few minor doc group tweaks.

Change-Id: I18a8d733b3dbaa925a676c881225a63e90ff2f05

11 years agoAdded profiling to MWHttpRequest and Http.
Tyler Anthony Romeo [Mon, 18 Mar 2013 21:32:43 +0000 (17:32 -0400)]
Added profiling to MWHttpRequest and Http.

Added profile calls to various functions in
MWHttpRequest as well as to the wrapper
function Http::request.

Change-Id: I7f2819a075891dbc565a7524d56e7bf077ab089a