lhc/web/wiklou.git
7 years agoAdd support for Balinese
Sébastien Santoro [Thu, 9 Jun 2016 12:36:20 +0000 (12:36 +0000)]
Add support for Balinese

Language code: ban

Bug: T137411
Change-Id: Ief8ef036cc0abae2c1c060784784e3b5453edce6
Signed-off-by: Raimond Spekking <raimond.spekking@gmail.com>
7 years agoMerge "AuthManagerSpecialPage: Don't use fixed submit/info class for submit button...
jenkins-bot [Thu, 9 Jun 2016 11:58:52 +0000 (11:58 +0000)]
Merge "AuthManagerSpecialPage: Don't use fixed submit/info class for submit button check"

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Thu, 9 Jun 2016 11:06:34 +0000 (13:06 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Ic5724eb907b438b49782985441579ffcd8ebee8c

7 years agoInclude title/user in some edit stash log messages
Aaron Schulz [Mon, 6 Jun 2016 22:38:03 +0000 (15:38 -0700)]
Include title/user in some edit stash log messages

Change-Id: I49d61d9cfc5edacf415f6822cb50cc9007735a27

7 years agoMerge "ApiQuerySiteInfo: Avoid extra getConfig() calls"
jenkins-bot [Thu, 9 Jun 2016 03:08:25 +0000 (03:08 +0000)]
Merge "ApiQuerySiteInfo: Avoid extra getConfig() calls"

7 years agoMerge "ApiQuerySiteInfo: Add $wgInterwikiMagic value"
jenkins-bot [Thu, 9 Jun 2016 03:08:20 +0000 (03:08 +0000)]
Merge "ApiQuerySiteInfo: Add $wgInterwikiMagic value"

7 years agoMerge "Flag internal page retrieve/save cycles with EDIT_INTERNAL"
jenkins-bot [Wed, 8 Jun 2016 22:31:54 +0000 (22:31 +0000)]
Merge "Flag internal page retrieve/save cycles with EDIT_INTERNAL"

7 years agoApiQuerySiteInfo: Avoid extra getConfig() calls
Kunal Mehta [Wed, 8 Jun 2016 18:21:42 +0000 (11:21 -0700)]
ApiQuerySiteInfo: Avoid extra getConfig() calls

Change-Id: Idfd11691cf579107162a730ded17c5101cd72463

7 years agoMerge "Allow configuring distinct upload dialog comments for local/foreign uploads"
jenkins-bot [Wed, 8 Jun 2016 22:02:52 +0000 (22:02 +0000)]
Merge "Allow configuring distinct upload dialog comments for local/foreign uploads"

7 years agoApiQuerySiteInfo: Add $wgInterwikiMagic value
Kunal Mehta [Wed, 8 Jun 2016 18:21:04 +0000 (11:21 -0700)]
ApiQuerySiteInfo: Add $wgInterwikiMagic value

Bug: T131564
Change-Id: Ia7c1e944c0f65d8b1b940388aceb1f0f89005dc6

7 years agoMerge "mw.ForeignStructuredUpload: Fix confusing typo in a comment"
jenkins-bot [Wed, 8 Jun 2016 21:57:50 +0000 (21:57 +0000)]
Merge "mw.ForeignStructuredUpload: Fix confusing typo in a comment"

7 years agoMerge "mw.Upload.BookletLayout: Fail when unable to load config from foreign wiki"
jenkins-bot [Wed, 8 Jun 2016 21:57:46 +0000 (21:57 +0000)]
Merge "mw.Upload.BookletLayout: Fail when unable to load config from foreign wiki"

7 years agoMerge "Avoid getWithSetCallback() warnings on unversioned key migration"
Krinkle [Wed, 8 Jun 2016 21:56:09 +0000 (21:56 +0000)]
Merge "Avoid getWithSetCallback() warnings on unversioned key migration"

7 years agoMerge "Add new convenience User method for authentication data change"
jenkins-bot [Wed, 8 Jun 2016 21:36:27 +0000 (21:36 +0000)]
Merge "Add new convenience User method for authentication data change"

7 years agoMerge "Re-introduce "Templatize Special:Contributions lines""
jenkins-bot [Wed, 8 Jun 2016 21:23:14 +0000 (21:23 +0000)]
Merge "Re-introduce "Templatize Special:Contributions lines""

7 years agoAdd new convenience User method for authentication data change
Gergő Tisza [Wed, 8 Jun 2016 20:08:45 +0000 (20:08 +0000)]
Add new convenience User method for authentication data change

Also update createAndPromote.php to use it so it can display errors.

Note that there are two possible approaches. The other is to
do the update for all requests for which the test passed,
even if some tests fail. The approach of the patch seems
more manageable from the caller's point of view
(either the operation was a success, or it failed and
nothing happened).

Change-Id: I86abed4b80472cd888337444fac0cbcb870b1246

7 years agoMerge "Add a visual clear to Special:Search input box and profile-tabs"
jenkins-bot [Wed, 8 Jun 2016 20:52:15 +0000 (20:52 +0000)]
Merge "Add a visual clear to Special:Search input box and profile-tabs"

7 years agoRe-introduce "Templatize Special:Contributions lines"
amir [Mon, 6 Jun 2016 21:10:43 +0000 (21:10 +0000)]
Re-introduce "Templatize Special:Contributions lines"

The original change was 1bce6db10e99840cfbd10fa074c93d8d96d88412
It got reverted in I8f63e002e34a9d13e2597a27e3dd918a687d1e7c
Fixed issues raised

Bug: T122537
Change-Id: I047038d6164bd6e32909d25bb37002b43bfd3a92

7 years agoMerge "resourceloader: Load ResourceModuleSkinStyles config once per register() call"
jenkins-bot [Wed, 8 Jun 2016 20:50:25 +0000 (20:50 +0000)]
Merge "resourceloader: Load ResourceModuleSkinStyles config once per register() call"

7 years agoresourceloader: Load ResourceModuleSkinStyles config once per register() call
Ori Livneh [Wed, 8 Jun 2016 19:57:50 +0000 (12:57 -0700)]
resourceloader: Load ResourceModuleSkinStyles config once per register() call

Change-Id: I052503027f656fe15fca1069017a05ab589efaac

7 years agoAdd a visual clear to Special:Search input box and profile-tabs
Florian [Wed, 8 Jun 2016 20:32:09 +0000 (22:32 +0200)]
Add a visual clear to Special:Search input box and profile-tabs

Follow up: I698d9728c70cfee5693594f2f1e0513c942aa2cd

Bug: T137285
Change-Id: I4a41d549ae40965d0698234ea308d14f9b14edcb

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Wed, 8 Jun 2016 20:04:36 +0000 (22:04 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Ia7ecf877adc3a35e9c02e27115095435f9484d94

7 years agoAvoid getWithSetCallback() warnings on unversioned key migration
Aaron Schulz [Wed, 8 Jun 2016 17:25:25 +0000 (10:25 -0700)]
Avoid getWithSetCallback() warnings on unversioned key migration

If an unversioned key is present, this generated a warning
previously.

Bug: T137244
Change-Id: I92df9b9fe0436348b5b27e684d239238d57c9b5f

7 years agoAllow configuring distinct upload dialog comments for local/foreign uploads
Bartosz Dziewoński [Wed, 8 Jun 2016 17:01:41 +0000 (19:01 +0200)]
Allow configuring distinct upload dialog comments for local/foreign uploads

Change-Id: I192d6989af9613730a1e0b8ce077e651bc450d37

7 years agomw.ForeignStructuredUpload: Fix confusing typo in a comment
Bartosz Dziewoński [Wed, 8 Jun 2016 16:50:10 +0000 (18:50 +0200)]
mw.ForeignStructuredUpload: Fix confusing typo in a comment

Change-Id: I47694fa97bf82ca1532542d65ecae5826e1640b2

7 years agomw.Upload.BookletLayout: Fail when unable to load config from foreign wiki
Bartosz Dziewoński [Wed, 8 Jun 2016 15:26:40 +0000 (17:26 +0200)]
mw.Upload.BookletLayout: Fail when unable to load config from foreign wiki

Previously we just ignored the problem and used the config from the local
wiki. This could result in incorrectly formatted uploads (if the error was
transient and the upload succeeded), or more confusing error messages
appearing later (if the error wasn't transient).

Change-Id: Ica6e65abbb678a9942c2bba6370e3ba156085bb8

7 years agoLinksDeletionUpdate: Fix typos in column names
Glaisher [Wed, 8 Jun 2016 09:52:40 +0000 (14:52 +0500)]
LinksDeletionUpdate: Fix typos in column names

Bug: T137280
Change-Id: I78ee489f10e796d2b3fa39dcb4f65f0763860bf3

7 years agoFlag internal page retrieve/save cycles with EDIT_INTERNAL
Aaron Schulz [Mon, 6 Jun 2016 23:00:33 +0000 (16:00 -0700)]
Flag internal page retrieve/save cycles with EDIT_INTERNAL

This is used to avoid edit stash checks and stats noise.

Bug: T136678
Change-Id: I6158b8b218240ef3875f2d1d2e8ca3bc2f69f980

7 years agoMerge "Use callable type-hint in a few places"
jenkins-bot [Tue, 7 Jun 2016 23:51:40 +0000 (23:51 +0000)]
Merge "Use callable type-hint in a few places"

7 years agoMerge "Use LinkCache::getSelectFields() in OutputPage::addCategoryLinks()"
jenkins-bot [Tue, 7 Jun 2016 23:50:56 +0000 (23:50 +0000)]
Merge "Use LinkCache::getSelectFields() in OutputPage::addCategoryLinks()"

7 years agoUse callable type-hint in a few places
Kunal Mehta [Tue, 7 Jun 2016 23:39:06 +0000 (16:39 -0700)]
Use callable type-hint in a few places

Mostly places which immediately had a:
 if ( !is_callable( $callback ) ) {
  throw new Exception(...);
 }
check at the beginning of the function.

Change-Id: Ia78663b2231629010816bd1cda8814b996968d1d

7 years agoMerge "Avoid contention in updateLinksTimestamp()"
jenkins-bot [Tue, 7 Jun 2016 23:39:19 +0000 (23:39 +0000)]
Merge "Avoid contention in updateLinksTimestamp()"

7 years agoUse LinkCache::getSelectFields() in OutputPage::addCategoryLinks()
Kunal Mehta [Tue, 7 Jun 2016 23:37:27 +0000 (16:37 -0700)]
Use LinkCache::getSelectFields() in OutputPage::addCategoryLinks()

Change-Id: I71d95cbb6c22ae92586c883e7de5353d26c4838f

7 years agoMerge "Fix Message::newFromSpecifier for nested RawMessage"
jenkins-bot [Tue, 7 Jun 2016 22:47:17 +0000 (22:47 +0000)]
Merge "Fix Message::newFromSpecifier for nested RawMessage"

7 years agoFix Message::newFromSpecifier for nested RawMessage
Gergő Tisza [Tue, 7 Jun 2016 20:46:33 +0000 (20:46 +0000)]
Fix Message::newFromSpecifier for nested RawMessage

This can happen e.g. when something processes Status contents
and expects [$key, $param1, ...] and instead gets [$messageObject]

Change-Id: I346b35e08bd38ce231e16d0616438ea408b55bff

7 years agoMerge "Change invalid password reset form language"
jenkins-bot [Tue, 7 Jun 2016 22:28:41 +0000 (22:28 +0000)]
Merge "Change invalid password reset form language"

7 years agoAuthManagerSpecialPage: Don't use fixed submit/info class for submit button check
Florian [Tue, 7 Jun 2016 20:57:47 +0000 (22:57 +0200)]
AuthManagerSpecialPage: Don't use fixed submit/info class for submit button check

It's possible that an authentication extension implements its own HTMLForm classes
for a submit button or info field. To omit the default submit button of HTMLForm
in these cases, too, it's necessary to check if one of the provided HTMLForm field
classes inherit from HTMLSubmitField or HTMLInfoField (assuming, that subclasses
in extensions inherit from one of them).

Bug: T137236
Change-Id: Id0ec914088b527a9c7224d545b04986068138f93

7 years agoFix Status::getMessage for the multiple errors, $shortContext only case
Gergő Tisza [Tue, 7 Jun 2016 20:39:01 +0000 (20:39 +0000)]
Fix Status::getMessage for the multiple errors, $shortContext only case

Remove $msgCount++ which does not seem to have any non-harmful purpose.

Also try to explain what the hell the method does.

Change-Id: Ibdf40ff13a4a9d294a6bc6f778a14fb2633c2f70

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Tue, 7 Jun 2016 20:13:01 +0000 (22:13 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I4174fc3bca40d45f06dd93af10d009d23acae375

7 years agoMerge "Reject authentication data change when there are warnings"
jenkins-bot [Tue, 7 Jun 2016 17:32:30 +0000 (17:32 +0000)]
Merge "Reject authentication data change when there are warnings"

7 years agoReject authentication data change when there are warnings
Gergő Tisza [Tue, 7 Jun 2016 16:15:12 +0000 (16:15 +0000)]
Reject authentication data change when there are warnings

AuthManager uses a status which is OK but not good for authentication
data which is discouraged but still accepted for authentication.
Users should not be allowed to change credentials into such invalid state.
This change brings the web logic and the AuthPlugin fallback in sync with
the API which already used the stricter check.

Change-Id: I4ff54fcc901f6fe11f15ed60fc1a3d8753de9f6c

7 years agoi18n: Use https: scheme for HSTS external links
Emmanuel Gil Peyrot [Sat, 4 Jun 2016 04:53:22 +0000 (05:53 +0100)]
i18n: Use https: scheme for HSTS external links

When the local wiki is accessed in HTTP, clicking an external link
starting with // will (if this is the first visit) do an unencrypted
HTTP call to the target server before being redirected to the HTTPS
version, potentially allowing a man in the middle attack.

This commit changes the URI scheme to https: for every link with HSTS
enabled in the codebase, namely www.mediawiki.org, *.wikimedia.org,
*.wikipedia.org, translatewiki.net and bugs.php.net.

Change-Id: I002b502952f32fb49823e18b281252977ecca8cf

7 years agoMerge "Map dummy language codes in sites"
jenkins-bot [Tue, 7 Jun 2016 14:13:47 +0000 (14:13 +0000)]
Merge "Map dummy language codes in sites"

7 years agoMerge "resourceloader: Add support for variables in WikiModule"
jenkins-bot [Tue, 7 Jun 2016 14:06:09 +0000 (14:06 +0000)]
Merge "resourceloader: Add support for variables in WikiModule"

7 years agoMerge "Call ChangeAuthenticationDataAudit from the API"
jenkins-bot [Tue, 7 Jun 2016 14:02:16 +0000 (14:02 +0000)]
Merge "Call ChangeAuthenticationDataAudit from the API"

7 years agoCall ChangeAuthenticationDataAudit from the API
Gergő Tisza [Tue, 7 Jun 2016 13:47:12 +0000 (13:47 +0000)]
Call ChangeAuthenticationDataAudit from the API

Bug: T137193
Change-Id: I2f7a7da2eb9973ed8f946c52e9821ed962dcd7ba

7 years agoMap dummy language codes in sites
Adrian Heine [Tue, 7 Jun 2016 13:15:36 +0000 (15:15 +0200)]
Map dummy language codes in sites

The script that populates the sites table assumes that the
subdomain is the content language code. This is not true for
all wikis. This patch introduces a mapping to fix this issue
on the fly, based on $wgDummyLanguageCodes.

This is driven by the need to avoid "bad" language codes when
creating wikidata items from the client, when "linking" two
pages on different wikis. When we do this, we use the language
code from the sites table for the labels of the new item.
We would like to forbid "dummy" languages in labels and
descriptions, for consistency.

Change-Id: I6452761e14d9902bb069e32d0f499bc39e680453

7 years agoAvoid contention in updateLinksTimestamp()
Aaron Schulz [Tue, 7 Jun 2016 12:15:42 +0000 (05:15 -0700)]
Avoid contention in updateLinksTimestamp()

Since LinksUpdate::doUpdate() already flushes the transaction,
go ahead and flush before other DataUpdates might run (e.g.
from RefreshLinksJob). Also release the lock before running
the LinksUpdateComplete handlers, as the lock is just to keep
LinksUpdate instances from racing with each other.

Change-Id: Ied97fa36fbca0203123e9fc966d2e23bfd621c0e

7 years agoChange invalid password reset form language
Gergő Tisza [Tue, 7 Jun 2016 11:24:37 +0000 (11:24 +0000)]
Change invalid password reset form language

The old workflow was login -> go to a password change form (at which
point the user is fully logged on and can just abandon the form).
The AuthManager workflow is go through a string of login providers
(including the password reset), and get logged in at the very end
- so the user has to submit the form. The submit button text for not
updating the password was changed from Cancel to Skip to account for
that; this patch updates the messages which reference that text.

Bug: T136894
Change-Id: I38ac7883d2acfc73c5662dc2c382a395ef1b91c1

7 years agoMerge "jsduck: Update paths to OOjs UI files in eg-iframe.html"
jenkins-bot [Tue, 7 Jun 2016 09:00:38 +0000 (09:00 +0000)]
Merge "jsduck: Update paths to OOjs UI files in eg-iframe.html"

7 years agoMerge "Chinese Conversion Table Update 2016-3"
jenkins-bot [Tue, 7 Jun 2016 08:10:13 +0000 (08:10 +0000)]
Merge "Chinese Conversion Table Update 2016-3"

7 years agoRemove getOptions() checks from getStashKey() entirely
Aaron Schulz [Tue, 7 Jun 2016 00:27:37 +0000 (17:27 -0700)]
Remove getOptions() checks from getStashKey() entirely

It only avoided a tiny edge case of options lag, which is
not worth the complexity.

Change-Id: I94bc35fc89eb46436a23b10aee1b7d339859c7ea

7 years agoMerge "Make edit stash keys less preference sensitive"
jenkins-bot [Mon, 6 Jun 2016 22:13:17 +0000 (22:13 +0000)]
Merge "Make edit stash keys less preference sensitive"

7 years agoMerge "InfoAction: Don't pass non-dbkeys to LinkBatch"
jenkins-bot [Mon, 6 Jun 2016 22:09:12 +0000 (22:09 +0000)]
Merge "InfoAction: Don't pass non-dbkeys to LinkBatch"

7 years agoMake edit stash keys less preference sensitive
Aaron Schulz [Mon, 6 Jun 2016 21:34:14 +0000 (14:34 -0700)]
Make edit stash keys less preference sensitive

Only factor in the user ID/name/sig instead of anything that
might happen to touch the user row.

Bug: T136678
Change-Id: I004790a017c68cfcff6729f6fbfd0f79b6904c20

7 years agoInfoAction: Don't pass non-dbkeys to LinkBatch
Kunal Mehta [Mon, 6 Jun 2016 21:59:23 +0000 (14:59 -0700)]
InfoAction: Don't pass non-dbkeys to LinkBatch

Usernames are stored with spaces instead of underscores, so this was
causing exceptions later on when dbkeys were expected to be provided to
TitleValue.

Let Title take care of normalization from spaces format to underscores
in Title::makeTitle(), and pass that object onto LinkBatch instead.

Bug: T137147
Change-Id: Ia3606d30de61173e4d5526a9d7a77bd4b1710a05

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Mon, 6 Jun 2016 20:39:16 +0000 (22:39 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Ia8baf1ed8a5cd70ebf65955f95d47f3b73745e43

7 years agoMerge "Avoid rollback and bot flagged edits in edit stash stats"
Aaron Schulz [Mon, 6 Jun 2016 20:17:02 +0000 (20:17 +0000)]
Merge "Avoid rollback and bot flagged edits in edit stash stats"

7 years agojsduck: Update paths to OOjs UI files in eg-iframe.html
Bartosz Dziewoński [Mon, 6 Jun 2016 19:36:47 +0000 (21:36 +0200)]
jsduck: Update paths to OOjs UI files in eg-iframe.html

Follow-up to 1f49b66c6f89d56dee457196296a7869f0f7475d.

Bug: T136954
Change-Id: Idb29a69992fff96c51d18d34b36ad751f3b0469f

7 years agoMerge "Follow-up c81ab8ae5f: add forgotten dependency on mediawiki.language"
jenkins-bot [Mon, 6 Jun 2016 19:25:20 +0000 (19:25 +0000)]
Merge "Follow-up c81ab8ae5f: add forgotten dependency on mediawiki.language"

7 years agoAvoid rollback and bot flagged edits in edit stash stats
Aaron Schulz [Fri, 3 Jun 2016 04:34:05 +0000 (21:34 -0700)]
Avoid rollback and bot flagged edits in edit stash stats

This just skews the numbers with cases that could not use
the cache anyway.

Bug: T136678
Change-Id: Iaa90d4f6ee80e886f59bc43a1392e59fe2a8f900

7 years agoresourceloader: Add support for variables in WikiModule
Timo Tijhof [Mon, 6 Jun 2016 18:09:32 +0000 (19:09 +0100)]
resourceloader: Add support for variables in WikiModule

To be used for the 'site' module. This will make it easier to split up
'site' into 'site' and 'site.styles' (per T92459).

Change-Id: Iaac3e458d5107e4c10c2826bd64608d5c47e8b87

7 years agoMerge "Avoid exceptions for empty titles in addResultToCache() for sanity"
jenkins-bot [Mon, 6 Jun 2016 18:04:06 +0000 (18:04 +0000)]
Merge "Avoid exceptions for empty titles in addResultToCache() for sanity"

7 years agoFollow-up c81ab8ae5f: add forgotten dependency on mediawiki.language
Roan Kattouw [Mon, 6 Jun 2016 17:56:11 +0000 (19:56 +0200)]
Follow-up c81ab8ae5f: add forgotten dependency on mediawiki.language

Bug: T137002
Change-Id: If35416f4bd08f72f53dad26e80f8417ca2a6d7d9

7 years agoAvoid exceptions for empty titles in addResultToCache() for sanity
Aaron Schulz [Mon, 6 Jun 2016 06:04:20 +0000 (23:04 -0700)]
Avoid exceptions for empty titles in addResultToCache() for sanity

Bug: T137083
Change-Id: Ie8aabba30bc0d7a6910a58104ff08ea036ba962d

7 years agoMerge "Password change request should be optional on soft reset"
jenkins-bot [Mon, 6 Jun 2016 16:24:48 +0000 (16:24 +0000)]
Merge "Password change request should be optional on soft reset"

7 years agoPassword change request should be optional on soft reset
Gergő Tisza [Mon, 6 Jun 2016 14:43:03 +0000 (14:43 +0000)]
Password change request should be optional on soft reset

Non-optional fields are required by HTMLForm now so the skip button
would not work properly.

Change-Id: Iad937767f0f7cf6dce43f7882720d1ed730ee28d

7 years agoHTMLForm: Properly support 'flatlist' in OOUI mode
Bartosz Dziewoński [Mon, 6 Jun 2016 15:22:48 +0000 (17:22 +0200)]
HTMLForm: Properly support 'flatlist' in OOUI mode

Previously it worked mostly by chance for multiselect fields (until
2f33194497bd94d1cecb21dcb88e9bf3abf2ddaa broke it), and did not work
at all for radio fields.

Bug: T123935
Change-Id: I94396303bcf16110a505883bec2ce352d833fe2b

7 years agoMerge "Fix float of search input on Special:Search"
jenkins-bot [Mon, 6 Jun 2016 15:02:10 +0000 (15:02 +0000)]
Merge "Fix float of search input on Special:Search"

7 years agoMerge "Don't override action in UI and REDIRECT responses"
jenkins-bot [Mon, 6 Jun 2016 14:25:45 +0000 (14:25 +0000)]
Merge "Don't override action in UI and REDIRECT responses"

7 years agoMerge "Add column alias support in BatchRowIterator"
jenkins-bot [Mon, 6 Jun 2016 12:08:27 +0000 (12:08 +0000)]
Merge "Add column alias support in BatchRowIterator"

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sun, 5 Jun 2016 19:52:21 +0000 (21:52 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I961120816132dc1a46f62e25b7223006a727aa32

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sat, 4 Jun 2016 19:52:24 +0000 (21:52 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I66385ba8e6a50980cfc957fd13e58cd5a43ed438

7 years agorevisiondelete: Fix $oldBits/$newBits usage in setVisibility()
Aaron Schulz [Fri, 27 May 2016 21:58:10 +0000 (14:58 -0700)]
revisiondelete: Fix $oldBits/$newBits usage in setVisibility()

This addresses the FIXME comment around updateLog()

Change-Id: Iedb9df0b4cf65308a6b58bd9d9295d1850bc2c28

7 years agoMerge "Avoid DBPerformance warnings in Category::initialize()"
jenkins-bot [Fri, 3 Jun 2016 22:39:07 +0000 (22:39 +0000)]
Merge "Avoid DBPerformance warnings in Category::initialize()"

7 years agoAvoid DBPerformance warnings in Category::initialize()
Aaron Schulz [Fri, 3 Jun 2016 05:07:58 +0000 (22:07 -0700)]
Avoid DBPerformance warnings in Category::initialize()

Use DeferredUpdates and zero-out negative values in the meantime.

Bug: T92357
Change-Id: Ia1339395b70b042edba6dc1d570acb92c90a287b

7 years agologging: Simplify DeleteLogFormatter b/c check
Aaron Schulz [Fri, 27 May 2016 21:15:47 +0000 (14:15 -0700)]
logging: Simplify DeleteLogFormatter b/c check

Change-Id: Iab16663579d2eece4a94f80f7120b231aed0e572

7 years agoClean up setVisibility() log type logic
Aaron Schulz [Fri, 27 May 2016 20:58:34 +0000 (13:58 -0700)]
Clean up setVisibility() log type logic

The log type used should be based on whether any item
was (un)suppressed, not just the last log entry. Otherwise,
unsuppression could end up in the wrong log if the last
item in the list was not unsuppressed but others were.

Change-Id: I7b6af524cc45a1d83b2b719bfa00138531455e35

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Fri, 3 Jun 2016 20:47:23 +0000 (22:47 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Ib2318bbccf83f08e9f32c97b6fea0c6baa6d1cd7

7 years agoSync up with Parsoid parserTests.
Arlo Breault [Fri, 3 Jun 2016 17:59:52 +0000 (10:59 -0700)]
Sync up with Parsoid parserTests.

This now aligns with Parsoid commit 8fa3996c2656b66789e658c50150f45b19c69ae1

Change-Id: I7f839aaddddf6ac96b7d155989f20a2b386d5622

7 years agoDon't override action in UI and REDIRECT responses
Brad Jorsch [Fri, 3 Jun 2016 15:33:41 +0000 (11:33 -0400)]
Don't override action in UI and REDIRECT responses

In Ic8caf57eb, we changed things so the requests returned in a UI or
REDIRECT response would have the action forced to that appropriate for
the action being peformed. But ResetPasswordSecondaryAuthenticationProvider
has a use case where a mismatch is necessary: it's run during the login
action, but it needs a PasswordAuthenticationResponse for a change
action.

Bug: T136894
Change-Id: I9d109a22c5b2d2064f664f584100ecaab43199c5

7 years agoFix float of search input on Special:Search
Florian [Fri, 3 Jun 2016 15:12:44 +0000 (17:12 +0200)]
Fix float of search input on Special:Search

Follow up: Icc68a8e83fc7037b96a5efec2766ffdf453c5413

Bug: T136945
Change-Id: I698d9728c70cfee5693594f2f1e0513c942aa2cd

7 years agoAdd column alias support in BatchRowIterator
Stephane Bisson [Fri, 3 Jun 2016 13:05:10 +0000 (09:05 -0400)]
Add column alias support in BatchRowIterator

Used by Echo/maintenance/backfillReadBundles

Bug: T136368
Change-Id: Ia8f8aa718713798a81392b5e9751c5c18ab81720

7 years agoMerge "Show ParserOutput warning instead of on the actual page output for ignored...
jenkins-bot [Thu, 2 Jun 2016 21:23:04 +0000 (21:23 +0000)]
Merge "Show ParserOutput warning instead of on the actual page output for ignored display titles"

7 years agoHTMLForm: Don't add a type=reset to links
Florian [Thu, 2 Jun 2016 20:50:55 +0000 (22:50 +0200)]
HTMLForm: Don't add a type=reset to links

Follow up: Ieb80e2ff36751abc6f00e2a02926fe9800666a8b

Change-Id: If88c80a46cba9729a9503b82532584443d6d5ba4

7 years agoDon't lose namespace when searching via api
Erik Bernhardson [Thu, 2 Jun 2016 20:12:16 +0000 (13:12 -0700)]
Don't lose namespace when searching via api

A recent patch, I66be724d, introduced a regression that no longer
applied user selected namespaces to the search engine. Fix that up so we
give the correct responses to api rqeuests.

Change-Id: I8e5e180cb143ae3cddeb12f51bc7aae75b20fe58

7 years agoMerge "Localisation updates from https://translatewiki.net."
Translation updater bot [Thu, 2 Jun 2016 20:02:32 +0000 (20:02 +0000)]
Merge "Localisation updates from https://translatewiki.net."

7 years agoMerge "Improve HTMLForm (and Special:ChangeCredentials) cancel button"
jenkins-bot [Thu, 2 Jun 2016 20:00:37 +0000 (20:00 +0000)]
Merge "Improve HTMLForm (and Special:ChangeCredentials) cancel button"

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Thu, 2 Jun 2016 19:55:40 +0000 (21:55 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I1dc0bbb38277e8c24ace6b53e835d8d5020de50f

7 years agoImprove HTMLForm (and Special:ChangeCredentials) cancel button
Gergő Tisza [Thu, 2 Jun 2016 14:17:13 +0000 (14:17 +0000)]
Improve HTMLForm (and Special:ChangeCredentials) cancel button

Add two new HTMLForm methods:
* showCancel( [bool] ) to display a cancel button
* setCancelTarget( Title|string ) to set where it should take
  the user.

The cancel button is a simple link formatted as a button.
This is faster than a real button (skips an unnecessary
submit and redirect) and avoids some UX problems:
* when clicking on a real button, HTML5 or JS  validators
  might prevent submission, which does not make sense for cancel
* form field values might get saved by the brower, which again
  does not make sense for cancelling

Use the cancel button for Special:ChangeCredentials.

Bug: T136809
Change-Id: Ieb80e2ff36751abc6f00e2a02926fe9800666a8b

7 years agoAuthManager::setDefaultUserOptions and LoginForm::initUser shouldn't invalidate CA...
Brad Jorsch [Thu, 2 Jun 2016 19:26:14 +0000 (15:26 -0400)]
AuthManager::setDefaultUserOptions and LoginForm::initUser shouldn't invalidate CA tokens

We only want to set the local user_token when we create the local
account. We don't want to invalidate all existing CentralAuth sessions
for the user just because they happened to visit a new wiki and get
an account auto-created.

This might also fix T136853. It looks like what's going on there is that
two jobs are both in this code path calling CentralAuth::resetAuthToken()
at the same time, leading to a race and one fails the CAS check.

Bug: T136834
Change-Id: I61b8253584a11a5b02f7ccb9efa0679cd2a822c6

7 years agoMerge "Make LinksDeletionUpdate use query batching"
jenkins-bot [Thu, 2 Jun 2016 17:54:40 +0000 (17:54 +0000)]
Merge "Make LinksDeletionUpdate use query batching"

7 years agomediawiki.jqueryMsg: Add @since to parseDom
Niklas Laxström [Thu, 2 Jun 2016 05:57:35 +0000 (07:57 +0200)]
mediawiki.jqueryMsg: Add @since to parseDom

Since I keep looking it up from the history.

Change-Id: I541c1f9ca7df291226b9cc1c0d6bdbd71f7ce486

7 years agoRethink diff limits
Max Semenik [Wed, 27 Apr 2016 01:10:26 +0000 (18:10 -0700)]
Rethink diff limits

Now, instead of "if your changed paragraphs are larger than 10Kb, you're
screwed":
* Instead of relying on overall length, estimate complexity after splitting to words
  and taking any equal head and tail out of equation.
* Estimate based on words changed, which better reflects the actual complexity
  of generating a diff.
* New limit is determined scientifically, i.e. "above that number XDebug starts
  complaining about recursion limits reached in Vagrant".

Caveat: if new limits are hit, the consequences are more widespread as all adjacent
changed paragraphs are displayed without word level diffs, as opposed to only the
paragraph that's too long being affected. However, the new limit is much higher and
in wikitext you're supposed to put empty lines between paragraphs anyway, negating
this problem.

Bug: T128697
Change-Id: I4e91c7c40f5afdd116b847a859b8517522302489

7 years agoMerge "AuthManager: Ensure neededRequests have action and username set properly"
jenkins-bot [Wed, 1 Jun 2016 21:26:13 +0000 (21:26 +0000)]
Merge "AuthManager: Ensure neededRequests have action and username set properly"

7 years agoMerge "Fix Special:PrefixIndex paging links"
jenkins-bot [Wed, 1 Jun 2016 21:14:27 +0000 (21:14 +0000)]
Merge "Fix Special:PrefixIndex paging links"

7 years agoFix Special:PrefixIndex paging links
Aaron Schulz [Wed, 1 Jun 2016 20:59:35 +0000 (13:59 -0700)]
Fix Special:PrefixIndex paging links

Capture the last row instead of skipping it and then not
finding anything in the fetchObject() call.

Bug: T136738
Change-Id: Ibcfa6c18c54227fda75298a849717e6ef3418928

7 years agoMerge "Localisation updates from https://translatewiki.net."
Translation updater bot [Wed, 1 Jun 2016 20:43:13 +0000 (20:43 +0000)]
Merge "Localisation updates from https://translatewiki.net."

7 years agoMerge "Expose SearchEngine specific profiles"
jenkins-bot [Wed, 1 Jun 2016 20:36:03 +0000 (20:36 +0000)]
Merge "Expose SearchEngine specific profiles"

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Wed, 1 Jun 2016 20:34:22 +0000 (22:34 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I58c9f2c935838e27afd48890da19fda98d6c792e