lhc/web/wiklou.git
7 years agoCleanup postEdit and match styles to mw.notification
Ed Sanders [Mon, 10 Apr 2017 12:59:19 +0000 (13:59 +0100)]
Cleanup postEdit and match styles to mw.notification

* Remove HTML template
* Add mw-notification class and dependency
* Fix variable scoping issues so firing two notifications
  doesn't cause one to become stuck

Bug: T58313
Change-Id: I9a702d23a8a9b5cc098cbb413213d73813bec097

7 years agoMerge "Expire the cache of a User object when a group membership is set to expire"
jenkins-bot [Thu, 27 Apr 2017 20:03:40 +0000 (20:03 +0000)]
Merge "Expire the cache of a User object when a group membership is set to expire"

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Thu, 27 Apr 2017 20:00:32 +0000 (22:00 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Ia2686ac474c045e91fd29daef68ec0925b73823e

7 years agoMerge "Release prior row locks beforehand in LinksUpdate::updateCategoryCounts"
jenkins-bot [Thu, 27 Apr 2017 19:21:39 +0000 (19:21 +0000)]
Merge "Release prior row locks beforehand in LinksUpdate::updateCategoryCounts"

7 years agoMerge "SpecialJavaScriptTest: Do not accidentally pass parameters to QUnit.start()"
jenkins-bot [Thu, 27 Apr 2017 19:20:01 +0000 (19:20 +0000)]
Merge "SpecialJavaScriptTest: Do not accidentally pass parameters to QUnit.start()"

7 years agoMerge "SpecialJavaScriptTest: Format long JavaScript code fragments"
jenkins-bot [Thu, 27 Apr 2017 19:19:58 +0000 (19:19 +0000)]
Merge "SpecialJavaScriptTest: Format long JavaScript code fragments"

7 years agoMerge "Prepare for 1.30 branch"
jenkins-bot [Thu, 27 Apr 2017 18:42:29 +0000 (18:42 +0000)]
Merge "Prepare for 1.30 branch"

7 years agoSpecialJavaScriptTest: Do not accidentally pass parameters to QUnit.start()
Bartosz Dziewoński [Thu, 27 Apr 2017 18:19:32 +0000 (20:19 +0200)]
SpecialJavaScriptTest: Do not accidentally pass parameters to QUnit.start()

If the mw.loader.using() call's promise is rejected, we end up
passing an Error object as the 'count' parameter to QUnit.start().
This seems to be harmless, but is very confusing when debugging.

Change-Id: I44caca5285dbced5a5876d9d7ff6236dbd3efc35

7 years agoSpecialJavaScriptTest: Format long JavaScript code fragments
Bartosz Dziewoński [Thu, 27 Apr 2017 18:05:25 +0000 (20:05 +0200)]
SpecialJavaScriptTest: Format long JavaScript code fragments

Change-Id: Iaa6369467e9fa846a8d5eb8f43cf0b523ef1a64e

7 years agoMerge "Block: Remove old IP addresses from default autoblock_whitelist message"
jenkins-bot [Thu, 27 Apr 2017 17:46:58 +0000 (17:46 +0000)]
Merge "Block: Remove old IP addresses from default autoblock_whitelist message"

7 years agoMerge "mw.widgets.DateInputWidget: Highlight widget and open calendar on focus"
jenkins-bot [Thu, 27 Apr 2017 17:45:13 +0000 (17:45 +0000)]
Merge "mw.widgets.DateInputWidget: Highlight widget and open calendar on focus"

7 years agoMerge "Correct the "Help", "Media" and talk namespace names for Dinka"
jenkins-bot [Thu, 27 Apr 2017 17:06:24 +0000 (17:06 +0000)]
Merge "Correct the "Help", "Media" and talk namespace names for Dinka"

7 years agoMerge "Do not add limit to ApiQueryPagePropNames when database type is mysql"
jenkins-bot [Thu, 27 Apr 2017 13:51:27 +0000 (13:51 +0000)]
Merge "Do not add limit to ApiQueryPagePropNames when database type is mysql"

7 years agoCorrect the "Help", "Media" and talk namespace names for Dinka
Amire80 [Tue, 25 Apr 2017 07:52:51 +0000 (10:52 +0300)]
Correct the "Help", "Media" and talk namespace names for Dinka

The corrections come from users Dinkawiki and Mawanmuortat,
who did most of the translation into this language.

No aliases are needed, because the file was only created recently,
and not yet used anywhere.

Change-Id: Ic1ddfaca403e05e5971c516d6e7a454311794f3c

7 years agoRelease prior row locks beforehand in LinksUpdate::updateCategoryCounts
Aaron Schulz [Thu, 27 Apr 2017 05:33:56 +0000 (22:33 -0700)]
Release prior row locks beforehand in LinksUpdate::updateCategoryCounts

Bug: T163801
Change-Id: I6a026ee9a249da5a8fd9ceb216416340a9188d3f

7 years agoMerge "Add a space between "Go to page" dropdown and button for multipage images"
jenkins-bot [Thu, 27 Apr 2017 02:04:55 +0000 (02:04 +0000)]
Merge "Add a space between "Go to page" dropdown and button for multipage images"

7 years agoMerge "Revert, Follow-up: -1 recent contributors"
jenkins-bot [Thu, 27 Apr 2017 01:59:36 +0000 (01:59 +0000)]
Merge "Revert, Follow-up: -1 recent contributors"

7 years agoRevert, Follow-up: -1 recent contributors
Eddie Greiner-Petter [Sat, 22 Apr 2017 19:23:11 +0000 (21:23 +0200)]
Revert, Follow-up: -1 recent contributors

This reverts commit b67f40e5b01af569794eba26da79497329590d36.

There was an issue that the web installer, when inserting initial
values into the db table site_stats, would not insert any value for
ss_active_users. That lead to some places, most notably
Special:CreateAccount, to show off -1 recent contributors.

The commit to revert solved this by setting a default value of 1 for
the ss_active_users field in the database schema. However, while the
default schema has been changed, there hasn't been any schema update
procedure implemented. Also, the default of 1 is inconsistent with
other defaults in that table.

Revert that schema change completely. Instead, make the web installer
insert 0 to the field ss_active_users (just like it does with all other
fields in that table).

Bug: T56888
Change-Id: I4298754c2238f6e5447a5df77a4ada722ba302b2

7 years agoMerge "mediawiki.toolbar: Emit deprecation warnings"
jenkins-bot [Thu, 27 Apr 2017 00:41:25 +0000 (00:41 +0000)]
Merge "mediawiki.toolbar: Emit deprecation warnings"

7 years agomediawiki.toolbar: Emit deprecation warnings
James D. Forrester [Mon, 20 Mar 2017 22:56:27 +0000 (15:56 -0700)]
mediawiki.toolbar: Emit deprecation warnings

Callers to the EditPageBeforeEditToolbar hook can now return false to
signal that the toolbar is over-written, in which case this old code
won't be called (so no deprecation warnings for users of WikiEditor,
CodeEditor, etc.).

Bug: T30856
Depends-On: I5e755ef5dffb843368563511044d3123f14dc4bc
Change-Id: I3bed70a20e4b94fe3d04a00925b8012312202574

7 years agoMerge "exception: Add newline at the end of a debugging line for CLI users"
jenkins-bot [Wed, 26 Apr 2017 21:35:33 +0000 (21:35 +0000)]
Merge "exception: Add newline at the end of a debugging line for CLI users"

7 years agoexception: Add newline at the end of a debugging line for CLI users
Florian Schmidt [Sat, 15 Apr 2017 23:02:58 +0000 (01:02 +0200)]
exception: Add newline at the end of a debugging line for CLI users

Bug: T162315
Change-Id: Ia2963fa298ab0e4782ef823e7f53322cd6a9c99b

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Wed, 26 Apr 2017 21:21:00 +0000 (23:21 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Ice5f1ec383e94de1b6e43c581a821e415edfe767

7 years agoMerge "Add percent and permille to special character list"
jenkins-bot [Wed, 26 Apr 2017 20:11:05 +0000 (20:11 +0000)]
Merge "Add percent and permille to special character list"

7 years agoExtend grammar rules for Ukraininan language
Eugene Gvozdetsky [Tue, 25 Apr 2017 10:10:47 +0000 (12:10 +0200)]
Extend grammar rules for Ukraininan language

Change-Id: I2a18acee6a1c4a7462953477da50d57239994f37

7 years agoAdd percent and permille to special character list
Ed Sanders [Wed, 26 Apr 2017 19:22:18 +0000 (20:22 +0100)]
Add percent and permille to special character list

Bug: T163894
Change-Id: I82a926412fb0f7c886e1e17ed4cf05cf2d4f00d9

7 years agoPrepare for 1.30 branch
James D. Forrester [Wed, 26 Apr 2017 18:47:40 +0000 (11:47 -0700)]
Prepare for 1.30 branch

Change-Id: If9842b19ec995d03f93f96bfad4d61ca96c37f3c

7 years agoMerge "SpecialMediaStatistics: Remove WMF-specific hack, no longer needed"
jenkins-bot [Wed, 26 Apr 2017 15:50:52 +0000 (15:50 +0000)]
Merge "SpecialMediaStatistics: Remove WMF-specific hack, no longer needed"

7 years agoSpecialMediaStatistics: Remove WMF-specific hack, no longer needed
Bartosz Dziewoński [Wed, 26 Apr 2017 15:39:01 +0000 (17:39 +0200)]
SpecialMediaStatistics: Remove WMF-specific hack, no longer needed

We deleted the broken row from the databases per T155769.
This reverts 6e02a95227c4ef194ff2299a823aaa51aa9a223c.

Bug: T74535
Bug: T155769
Change-Id: Iac0873eb7112502dd7fc6b34ca956d9a2dffcb44

7 years agoMerge "EditPage: Factor out getSaveButtonLabel method"
jenkins-bot [Wed, 26 Apr 2017 13:15:56 +0000 (13:15 +0000)]
Merge "EditPage: Factor out getSaveButtonLabel method"

7 years agoMerge "Interwiki: Don't override interwiki map order"
jenkins-bot [Wed, 26 Apr 2017 01:46:50 +0000 (01:46 +0000)]
Merge "Interwiki: Don't override interwiki map order"

7 years agoUpdate OOjs UI to v0.21.2
Volker E [Wed, 26 Apr 2017 01:28:38 +0000 (18:28 -0700)]
Update OOjs UI to v0.21.2

Release notes:
 https://phabricator.wikimedia.org/diffusion/GOJU/browse/master/History.md;v0.21.2

Change-Id: Id7cae80a4f3d84ea5d50003f2409537b307c0c58

7 years agoMerge "RCFilters UI: Create base classes for shared objects"
jenkins-bot [Tue, 25 Apr 2017 23:41:44 +0000 (23:41 +0000)]
Merge "RCFilters UI: Create base classes for shared objects"

7 years agoRCFilters UI: Create base classes for shared objects
Moriel Schottlender [Tue, 25 Apr 2017 18:26:20 +0000 (11:26 -0700)]
RCFilters UI: Create base classes for shared objects

Preparing for adding other types of items than filters (namespaces,
users, tags, etc) this commit creates base classes for the model
and relevant widgets and extends Filter* from them.

Bug: T159942
Bug: T163521
Change-Id: I61c88a1f14a3ca9d91aa831187eda156468a6591

7 years agoMerge "Special:Block: Fix FOUC of bold 'mw-block-hideuser'"
jenkins-bot [Tue, 25 Apr 2017 22:51:20 +0000 (22:51 +0000)]
Merge "Special:Block: Fix FOUC of bold 'mw-block-hideuser'"

7 years agoInterwiki: Don't override interwiki map order
Timo Tijhof [Tue, 25 Apr 2017 20:36:06 +0000 (13:36 -0700)]
Interwiki: Don't override interwiki map order

The ksort() here was causing the order to be enforced as
alphabetical instead of preserving the original order.

The order usually doesn't matter, except with regards to handling
of duplicates. Due to Parsoid normalising external links to interwiki
links, it has to do a reverse lookup. In doing so it has to decide
which one to prefer. It currently picks the first match from the
API request for meta=siteinfo&siprop=interwikimap, which didn't
match the defined order in the actual Interwiki map due to ksort()
being called in getAllPrefixes().

Sort in this function was originally introduced in 2010 with
commit 844e7c83e4 (2011; r92528; T21838), which is otherwise unrelated
and left no rationale.

The existing unit tests needed to be adjusted slightly as they
assumed alphabetical order. While it appeared they were also defined
in alphabetical order, this was merely the order of the variable
creation. The effective order is preserved within locals and globals,
but overall globals come before locals.

Also removed the duplicate test for Hash and CDB in InterwikiTest
that belongs in ClassicInterwikiLookupTest instead.

Bug: T145337
Change-Id: I7348748801cbdf16c6ceea5b0654fc174b79707e

7 years agoSpecial:Block: Fix FOUC of bold 'mw-block-hideuser'
Timo Tijhof [Tue, 25 Apr 2017 20:37:10 +0000 (13:37 -0700)]
Special:Block: Fix FOUC of bold 'mw-block-hideuser'

Loading Special:Block/<your own name> shows "Confirm block", but
this then becomes bold a second later. This is because the styles
are part of 'mediawiki.special.block' which also contains JavaScript
and is loaded with addModules().

Move the styles to mediawiki.special.css instead.

Change-Id: I1c47256227603a6cde36238fdd7e11205d9494ec

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Tue, 25 Apr 2017 20:08:37 +0000 (22:08 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I53453d3129920681a8eb8ece0c9c2cba400cab77

7 years agoAdd a space between "Go to page" dropdown and button for multipage images
Bartosz Dziewoński [Tue, 25 Apr 2017 14:41:51 +0000 (16:41 +0200)]
Add a space between "Go to page" dropdown and button for multipage images

Change-Id: I174da5597563be36cc6e67a485f8556b9bcd84f6

7 years agoExpire the cache of a User object when a group membership is set to expire
This, that and the other [Tue, 25 Apr 2017 03:55:26 +0000 (13:55 +1000)]
Expire the cache of a User object when a group membership is set to expire

To avoid user permissions persisting for up to 1 hour beyond their expiry
time.

Bug: T163691
Change-Id: I85b578e6b7816639c3d0101d66efb1efedb17af6

7 years agoMerge "Keep headers from jumping when expire interface is shown"
jenkins-bot [Tue, 25 Apr 2017 02:05:40 +0000 (02:05 +0000)]
Merge "Keep headers from jumping when expire interface is shown"

7 years agoMerge "Localisation updates from https://translatewiki.net."
L10n-bot [Mon, 24 Apr 2017 20:02:24 +0000 (20:02 +0000)]
Merge "Localisation updates from https://translatewiki.net."

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Mon, 24 Apr 2017 20:02:15 +0000 (22:02 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I4ccfc62901bfa044c19b63fa30b450af8e9aa0a5

7 years agoMerge "Remove usages of RequestContext::getStats()"
jenkins-bot [Mon, 24 Apr 2017 20:01:55 +0000 (20:01 +0000)]
Merge "Remove usages of RequestContext::getStats()"

7 years agoRemove usages of RequestContext::getStats()
Florian Schmidt [Mon, 17 Apr 2017 15:06:53 +0000 (17:06 +0200)]
Remove usages of RequestContext::getStats()

Bug: T156810
Change-Id: Ic07896a68389e20ce0a35a06049b8c51b6c3f699

7 years agoKeep headers from jumping when expire interface is shown
Kaldari [Mon, 24 Apr 2017 19:02:18 +0000 (12:02 -0700)]
Keep headers from jumping when expire interface is shown

Change-Id: If2cb7c8e2e30c5e40f32113353f571a1fba63d29

7 years agoAdd Dinka (din) to Names.php and languages/messages/
Amire80 [Mon, 24 Apr 2017 09:39:38 +0000 (12:39 +0300)]
Add Dinka (din) to Names.php and languages/messages/

Bug: T163600
Change-Id: I2bf03c97680c17cddf48d05adee88581640268ec

7 years agoMerge "New maintenance script to clean up rows with invalid DB keys"
jenkins-bot [Mon, 24 Apr 2017 15:19:29 +0000 (15:19 +0000)]
Merge "New maintenance script to clean up rows with invalid DB keys"

7 years agoDo not add limit to ApiQueryPagePropNames when database type is mysql
Amir Sarabadani [Mon, 24 Apr 2017 12:58:51 +0000 (17:28 +0430)]
Do not add limit to ApiQueryPagePropNames when database type is mysql

It's a known bug in some versions of mysql (including WMF dbs) that it
won't do a loose index scan when a limit is applied. Given that number
of possible types is still very low, this shouldn't be a problem.
More info: https://bugs.mysql.com/bug.php?id=61517

Bug: T115825
Change-Id: I4c3b885ac05b793088a92e054a38a36b9d07c0d4

7 years agoMerge "mw.widgets: Add SelectWithInputWidget and its PHP implementation"
jenkins-bot [Mon, 24 Apr 2017 08:33:13 +0000 (08:33 +0000)]
Merge "mw.widgets: Add SelectWithInputWidget and its PHP implementation"

7 years agomw.widgets: Add SelectWithInputWidget and its PHP implementation
Prateek Saxena [Wed, 22 Mar 2017 10:16:24 +0000 (15:46 +0530)]
mw.widgets: Add SelectWithInputWidget and its PHP implementation

Bug: T106999
Change-Id: Ic158bec3c463fba5099b05f41c9686f833e1c313

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sun, 23 Apr 2017 19:54:59 +0000 (21:54 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Iba16aa2179c535c6d48a3745cb3b861ebd39b067

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sat, 22 Apr 2017 19:58:16 +0000 (21:58 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I4a646e2126a03104fbb2a23eeec923cdcea5d4a8

7 years agomw.widgets.DateInputWidget: Highlight widget and open calendar on focus
Prateek Saxena [Thu, 9 Mar 2017 10:53:12 +0000 (16:23 +0530)]
mw.widgets.DateInputWidget: Highlight widget and open calendar on focus

Bug: T159987
Change-Id: I24327e1fe4b23de1b35833d3f23634094b5a2664

7 years agoMerge "Set a persistent connection ID for RedisConnectionPool"
jenkins-bot [Sat, 22 Apr 2017 04:37:05 +0000 (04:37 +0000)]
Merge "Set a persistent connection ID for RedisConnectionPool"

7 years agoMerge "Add benchmarkTidy.php, to benchmark tidy drivers"
jenkins-bot [Sat, 22 Apr 2017 02:32:34 +0000 (02:32 +0000)]
Merge "Add benchmarkTidy.php, to benchmark tidy drivers"

7 years agoMerge "Send 500 http status code, instead of 200, for DBConnectionErrors"
jenkins-bot [Sat, 22 Apr 2017 02:08:09 +0000 (02:08 +0000)]
Merge "Send 500 http status code, instead of 200, for DBConnectionErrors"

7 years agoSet a persistent connection ID for RedisConnectionPool
Aaron Schulz [Sat, 22 Apr 2017 00:17:07 +0000 (17:17 -0700)]
Set a persistent connection ID for RedisConnectionPool

This re-uses the options hash as the ID so that re-used connections
do not clobber each others settings.

Change-Id: I17e5993ecdab1770259803e06956b85b9ebb2ba6

7 years agoMerge "RCFilters UI: Fix FilterTagItemWidget styles"
jenkins-bot [Fri, 21 Apr 2017 23:17:49 +0000 (23:17 +0000)]
Merge "RCFilters UI: Fix FilterTagItemWidget styles"

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Fri, 21 Apr 2017 20:01:37 +0000 (22:01 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Ifec3cc97ff0bf69a31843968228c9bd9c1618068

7 years agoRCFilters UI: Fix FilterTagItemWidget styles
Moriel Schottlender [Fri, 21 Apr 2017 18:34:21 +0000 (11:34 -0700)]
RCFilters UI: Fix FilterTagItemWidget styles

The styles got a bit messed up when we switched to using
TagMultiselectWidget. Fixes:

* Switch to using the methods of flaggable element (which TagItemWidget
  already is using) instead of custom css classes
* Use flag:invalid for conflicts, so the styles are consistent with
  OOUI styling for invalid tags, but keep the label red color, so it
  is still evident when the tag is selected.
* Bonus: Actually apply filterTagMultiselectWidget base class, because
  it wasn't applied before (oops)

Bug: T163522
Change-Id: I1cc3bd743d8b930bee23386516ca123ee3c36983

7 years agoMerge "Rephrase enotif_lastdiff and enotif_lastvisited"
jenkins-bot [Fri, 21 Apr 2017 18:23:42 +0000 (18:23 +0000)]
Merge "Rephrase enotif_lastdiff and enotif_lastvisited"

7 years agoMerge "Set default to 1 recent contributor instead of -1"
jenkins-bot [Fri, 21 Apr 2017 18:15:59 +0000 (18:15 +0000)]
Merge "Set default to 1 recent contributor instead of -1"

7 years agoHTMLForm: add errors to html in ooui variants
Derk-Jan Hartman [Fri, 21 Apr 2017 12:50:53 +0000 (14:50 +0200)]
HTMLForm: add errors to html in ooui variants

HTMLForm when using OOUI mode was not adding errors to the resulting
HTML, if depending on message arrays, as previously used before
Status.

This exposed additional problems. Aligned the function a bit closer to
HTMLForm's getErrorsOrWarnings()

Bug: T158492
Change-Id: I8765a025dd441676e35a7c183c67b37036643c1e

7 years agoSend 500 http status code, instead of 200, for DBConnectionErrors
Florian Schmidt [Sun, 16 Apr 2017 19:26:13 +0000 (21:26 +0200)]
Send 500 http status code, instead of 200, for DBConnectionErrors

Bug: T160875
Change-Id: I4c909457938a19358dfc4b2aec216b1a148df46c

7 years agoAdd benchmarkTidy.php, to benchmark tidy drivers
Tim Starling [Thu, 23 Mar 2017 01:51:43 +0000 (12:51 +1100)]
Add benchmarkTidy.php, to benchmark tidy drivers

Plus representative input file

Change-Id: I254793fc55c57a98c07ae1e4c27e6005965c9a20

7 years agoMerge "Fix preference tab switching so it doesn't fight prevTab v url hash"
jenkins-bot [Fri, 21 Apr 2017 00:54:48 +0000 (00:54 +0000)]
Merge "Fix preference tab switching so it doesn't fight prevTab v url hash"

7 years agoMerge "RCFilters UI: Unify li bullets with and without highlights"
jenkins-bot [Fri, 21 Apr 2017 00:40:24 +0000 (00:40 +0000)]
Merge "RCFilters UI: Unify li bullets with and without highlights"

7 years agoMerge "RCFilters UI: Change text for edit authorship group"
jenkins-bot [Fri, 21 Apr 2017 00:36:23 +0000 (00:36 +0000)]
Merge "RCFilters UI: Change text for edit authorship group"

7 years agoFix preference tab switching so it doesn't fight prevTab v url hash
Moriel Schottlender [Fri, 21 Apr 2017 00:19:47 +0000 (17:19 -0700)]
Fix preference tab switching so it doesn't fight prevTab v url hash

There was a bug where, when loading the Preferences page, the tab
was initially set by the URL hash (correct behavior) but then later
the system asked for the 'previous tab' in session storage, and changed
it to that -- which overrode the URL hash placement. In most cases,
the previous tab and url hash seemed to have been correct because
the user would go to the Preferences section and expect whatever
was the most recent tab they saw to open - but in the case of
specifically hitting "Beta" link (or clicking a direct link with
a specific hash to one of the preferences tabs) the previous tab
and hash had a fight, where the url-hash was the loser.

This commit fixes that by deleting the 'previousTab' from session
when the hash is set. Also, as a bonus, made sure that when the
previousTab removes itself from session, it actually removes the
correct key (and not tries to remove the value, which it did up
until now, and would've resulted in the previousTab value never
actually being removed)

Bug: T162938
Change-Id: I95c809f41dec7d7120c73dffa4a107346d049f70

7 years agoMerge "Fix bogus variable use in RefreshLinksJob::run()"
jenkins-bot [Thu, 20 Apr 2017 22:38:14 +0000 (22:38 +0000)]
Merge "Fix bogus variable use in RefreshLinksJob::run()"

7 years agoMerge "Use makeKey() in BacklinkCache"
jenkins-bot [Thu, 20 Apr 2017 22:38:11 +0000 (22:38 +0000)]
Merge "Use makeKey() in BacklinkCache"

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Thu, 20 Apr 2017 20:16:29 +0000 (22:16 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Ia8218a33495bb93bad4f4970047dde834bb61f8d

7 years agoUse makeKey() in BacklinkCache
Aaron Schulz [Thu, 20 Apr 2017 19:26:23 +0000 (12:26 -0700)]
Use makeKey() in BacklinkCache

Change-Id: I23c000c8c2c77aa538fe258ea34eb764987eb52d

7 years agoMerge "Hold number of search results in a data attribute"
jenkins-bot [Thu, 20 Apr 2017 19:04:16 +0000 (19:04 +0000)]
Merge "Hold number of search results in a data attribute"

7 years agoFix bogus variable use in RefreshLinksJob::run()
Aaron Schulz [Thu, 20 Apr 2017 18:29:25 +0000 (11:29 -0700)]
Fix bogus variable use in RefreshLinksJob::run()

Also removed two unused loop variables.

Change-Id: I9a9e0a83bdaa13c031857bc20f977161cf85baff

7 years agoMerge "Switch to librarized version of TestingAccessWrapper"
jenkins-bot [Thu, 20 Apr 2017 17:28:08 +0000 (17:28 +0000)]
Merge "Switch to librarized version of TestingAccessWrapper"

7 years agoMerge "Fix EditPage button/input accessors on PageObject"
jenkins-bot [Thu, 20 Apr 2017 15:24:01 +0000 (15:24 +0000)]
Merge "Fix EditPage button/input accessors on PageObject"

7 years agoSwitch to librarized version of TestingAccessWrapper
Gergő Tisza [Wed, 19 Apr 2017 19:37:35 +0000 (19:37 +0000)]
Switch to librarized version of TestingAccessWrapper

Replaces \TestingAccessWrapper (defined in core) with
\Wikimedia\TestingAccessWrapper (defined in the composer package
wikimedia/testing-access-wrapper).

See https://gerrit.wikimedia.org/r/#/q/topic:librarize-testing-access-wrapper
for downstream patches.

The core version of the class is kept around for a while to avoid
circular dependency problems.

Bug: T163434
Change-Id: I52cc257e593da3d6c3b01a909e554a950225aec8

7 years agoFix EditPage button/input accessors on PageObject
WMDE-Fisch [Thu, 20 Apr 2017 09:27:05 +0000 (11:27 +0200)]
Fix EditPage button/input accessors on PageObject

The DOM was changed again in https://gerrit.wikimedia.org/r/#/c/348765/
and input elements where used for the buttons.

Bug: T163193
Change-Id: I910a31a30d5569aab69dc2e5f81b377b6d867f64

7 years agobenchmarks: Report more metrics (min/max/median)
Timo Tijhof [Wed, 19 Apr 2017 23:46:13 +0000 (16:46 -0700)]
benchmarks: Report more metrics (min/max/median)

Add minimum, maximum, median to the report in addition to the mean (average)
which was already there. Based on benchmarkTidy.php from I254793fc5.

Example output:

> Delete
>    times: 10
>    total:   7.47ms
>      min:   0.53ms
>   median:   0.74ms
>     mean:   0.75ms
>      max:   1.21ms
>
> Truncate
>    times: 10
>    total:  72.38ms
>      min:   1.37ms
>   median:   8.32ms
>     mean:   7.24ms
>      max:  15.73ms

Change-Id: Ifd3064a3621e07f55505490403189cb47022c6c7

7 years agobenchmarks: Add setup, bench naming, and custom count default
Timo Tijhof [Wed, 19 Apr 2017 23:22:50 +0000 (16:22 -0700)]
benchmarks: Add setup, bench naming, and custom count default

* bench(): Add support for setup function.
  Demonstrated by converting bench_delete_truncate.php to use Benchmarker.

* bench(): Allow benchmarks to be named. Default remains (fn + args).
  Useful for closures.

* Benchmarker: Support overriding the default count of 100.
  Demonstrated in bench_delete_truncate.php to run 10x instead of
  100x (previous: 1x).

Change-Id: Iac182eaf3053f5bf0e811cd23082f530629d8a4e

7 years agobenchmarks: Minor clean up
Timo Tijhof [Wed, 19 Apr 2017 23:06:27 +0000 (16:06 -0700)]
benchmarks: Minor clean up

Change-Id: I446ae1a9d9cdb6b26a6bb62367a432cea082f343

7 years agoFix bogus field reference in Category::getCountMessage() callback
Aaron Schulz [Thu, 20 Apr 2017 03:43:56 +0000 (20:43 -0700)]
Fix bogus field reference in Category::getCountMessage() callback

Follows-up 922e68f739f143. (T162121)

Bug: T162941
Change-Id: I40623203e97f7155c2af171a37b1128a59415315

7 years agoAdd different log-in tooltip for private wikis
This, that and the other [Thu, 20 Apr 2017 02:25:59 +0000 (12:25 +1000)]
Add different log-in tooltip for private wikis

Bug: T148006
Change-Id: I14e9a554c72222e6f67bc120941199b999740886

7 years agoMerge "Document which EtcdConfig parameters are optional"
jenkins-bot [Thu, 20 Apr 2017 01:05:32 +0000 (01:05 +0000)]
Merge "Document which EtcdConfig parameters are optional"

7 years agoMerge "Remove load array indexes from LoadBalancer errors"
jenkins-bot [Thu, 20 Apr 2017 00:13:34 +0000 (00:13 +0000)]
Merge "Remove load array indexes from LoadBalancer errors"

7 years agoMerge "UploadBase::getTitle can return null"
jenkins-bot [Thu, 20 Apr 2017 00:12:20 +0000 (00:12 +0000)]
Merge "UploadBase::getTitle can return null"

7 years agoMerge "Lower the amount of jobs pushed into redis at once"
jenkins-bot [Thu, 20 Apr 2017 00:10:59 +0000 (00:10 +0000)]
Merge "Lower the amount of jobs pushed into redis at once"

7 years agoDocument which EtcdConfig parameters are optional
Aaron Schulz [Wed, 19 Apr 2017 23:48:13 +0000 (16:48 -0700)]
Document which EtcdConfig parameters are optional

Change-Id: Ic6b56ed2f8789ae7920cdfc12f34b00db4a76c3a

7 years agoReadOnlyMode: Add a few doc blocks
Timo Tijhof [Wed, 19 Apr 2017 22:27:41 +0000 (15:27 -0700)]
ReadOnlyMode: Add a few doc blocks

Follows-up 820f46964f7968a.

Change-Id: I7866eb7c8bb9c45a24a3c567a7befe3505821873

7 years agoLower the amount of jobs pushed into redis at once
Aaron Schulz [Wed, 19 Apr 2017 22:38:32 +0000 (15:38 -0700)]
Lower the amount of jobs pushed into redis at once

This further limits how long the server can be tied up by push().

Change-Id: I02d242578dadc19912c9fccfdcf5e15c5eb78e9e

7 years agoMerge "A service for read-only mode"
jenkins-bot [Wed, 19 Apr 2017 22:23:28 +0000 (22:23 +0000)]
Merge "A service for read-only mode"

7 years agoRCFilters UI: Unify li bullets with and without highlights
Moriel Schottlender [Wed, 19 Apr 2017 21:47:43 +0000 (14:47 -0700)]
RCFilters UI: Unify li bullets with and without highlights

Make sure that the placement of the texts under the bullets is
the same whether the highlight is on or off. Otherwise, the list
is shifting a bit to the right to make room for highlight 'bullets'
when we press the highlight key.

Bonus: Make sure the highlight container is only appended to each
bullet once, even if the process is called for more than once on
the same content.

Bug: T163275
Bug: T163387
Change-Id: I4c2cf6176d5129dd2bc37d2f58ed84e85aca8560

7 years agoRCFilters UI: Change text for edit authorship group
Moriel Schottlender [Wed, 19 Apr 2017 21:39:24 +0000 (14:39 -0700)]
RCFilters UI: Change text for edit authorship group

Bug: T149385
Change-Id: I96831b2a650eb0232013762675fb4c5bd325b6a9

7 years agoRemove load array indexes from LoadBalancer errors
Aaron Schulz [Wed, 19 Apr 2017 21:30:25 +0000 (14:30 -0700)]
Remove load array indexes from LoadBalancer errors

This are not very useful and where not using SPI interpolation either.

Change-Id: Ia3a33da3a4593fbcba59b21f5b5028860752ce09

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Wed, 19 Apr 2017 20:22:15 +0000 (22:22 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I6e67503e539268e66f495a594f29231e3ee4b6dd

7 years agoMerge "media: Remove unused private function in SVGMetadataExtractor"
jenkins-bot [Wed, 19 Apr 2017 20:09:03 +0000 (20:09 +0000)]
Merge "media: Remove unused private function in SVGMetadataExtractor"

7 years agomedia: Remove unused private function in SVGMetadataExtractor
Eugene Gvozdetsky [Wed, 19 Apr 2017 10:11:20 +0000 (12:11 +0200)]
media: Remove unused private function in SVGMetadataExtractor

Change-Id: I3cd00bb4f460a141966ad01e155a97b8a087a8e8

7 years agoA service for read-only mode
Tim Starling [Mon, 10 Apr 2017 05:34:30 +0000 (15:34 +1000)]
A service for read-only mode

Introduce a service to represent wfReadOnly() and friends.

It's necessary to have two service instances, one for wfReadOnly() and
one for wfConfiguredReadOnlyReason(), to avoid a circular dependency,
since LoadBalancer needs the configured reason during construction, but
wfReadOnly() needs to query the currently active load balancer.

Not having a cache of the configuration makes it possible to dynamically
change the configuration. Ideally things would not change the
configuration, and I removed such instances in core, but to support
extensions, I added a test ensuring that the configuration can be changed.

Change-Id: I9bbee946c10742526d3423208efd68cb3cc5a7ee