lhc/web/wiklou.git
6 years agoAdd dropSequence to postgres
Paladox [Wed, 19 Oct 2016 10:26:58 +0000 (11:26 +0100)]
Add dropSequence to postgres

This is how to set it

[ 'dropSequence', 'logging', 'logging_log_id_seq' ]

for example

Change-Id: I567287703310eff2e9e3cde8f2423dbf5e990a4b

6 years agoMerge "Remove unused key in WANObjectCache::newEmpty()"
jenkins-bot [Fri, 9 Jun 2017 00:54:15 +0000 (00:54 +0000)]
Merge "Remove unused key in WANObjectCache::newEmpty()"

6 years agoMerge "ChangesList: Expose basic properties of lines as data attributes"
jenkins-bot [Thu, 8 Jun 2017 23:39:27 +0000 (23:39 +0000)]
Merge "ChangesList: Expose basic properties of lines as data attributes"

6 years agoMerge "Add skipping to nth page option/ability for dump importing process"
jenkins-bot [Thu, 8 Jun 2017 23:29:38 +0000 (23:29 +0000)]
Merge "Add skipping to nth page option/ability for dump importing process"

6 years agoChangesList: Expose basic properties of lines as data attributes
Gergő Tisza [Fri, 10 Feb 2017 05:31:32 +0000 (05:31 +0000)]
ChangesList: Expose basic properties of lines as data attributes

We have several types of change lists (old RC/watchlist/related
changes, enhanced RC/watchlist, history) with slightly different
HTML, each with their own idiosyncracies. JavaScript code trying
to identify lines by log ID / revision ID has to jump through all
kinds of hoops to work with that.

To simplify the lives of frontend / gadget maintainers and provide
something approaching an API for these pages, we now expose the basic
attributes of each change line (revision ID for edits, log type/action
and ID for log events) as data attributes.

The OldChangesListRecentChangesLine, EnhancedChangesListModifyLineData,
EnhancedChangesListModifyBlockLineData, PageHistoryLine,
ContributionsLineEnding and DeletedContributionsLineEnding hooks
are updated accordingly. New hooks (LogEventsListLineEnding and
NewPagesLineEnding) are added for the change list pages which did
not yet have them.

Change-Id: I6dd006d0b1b0fd35c0020f0f9eea9113eca30b35

6 years agoAdd skipping to nth page option/ability for dump importing process
Mehmet Mert Yıldıran [Fri, 26 May 2017 01:54:32 +0000 (04:54 +0300)]
Add skipping to nth page option/ability for dump importing process

Usage: php importDump.php --skip-to 271500 /path_to/dumpfile.xml.gz

When importing a database dump and the import process crashes
(for random reasons) after a certain number of pages, the
"--skip-to" parameter allows restarting the import process at
a certain page instead of starting the import from scratch.

Change-Id: Ib36063b69d6846fc197800bba44287493b0632c0

6 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Thu, 8 Jun 2017 19:53:39 +0000 (21:53 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I1c0504dc1347fd79bd0c24912bc9e42bb6b7e892

6 years agoMerge "EditPage: Fix 'id' attributes on buttons in non-OOUI mode"
jenkins-bot [Thu, 8 Jun 2017 17:30:10 +0000 (17:30 +0000)]
Merge "EditPage: Fix 'id' attributes on buttons in non-OOUI mode"

6 years agoEditPage: Fix 'id' attributes on buttons in non-OOUI mode
Bartosz Dziewoński [Thu, 8 Jun 2017 17:08:59 +0000 (19:08 +0200)]
EditPage: Fix 'id' attributes on buttons in non-OOUI mode

Follow-up to ce2290e4817d78bbb400f1fec28cf4747eab8e1d.
I really did not think that change through.

Bug: T167390
Change-Id: I6d683cafe02137800925507d5e00663756002296

6 years agoMerge "Document return string as JavaScript code"
jenkins-bot [Thu, 8 Jun 2017 17:07:08 +0000 (17:07 +0000)]
Merge "Document return string as JavaScript code"

6 years agoMerge "Do not disable password reset for blocks meant to force login"
jenkins-bot [Thu, 8 Jun 2017 15:57:44 +0000 (15:57 +0000)]
Merge "Do not disable password reset for blocks meant to force login"

6 years agoMerge "Fixing display issue with interwiki search sidebar"
jenkins-bot [Thu, 8 Jun 2017 14:27:36 +0000 (14:27 +0000)]
Merge "Fixing display issue with interwiki search sidebar"

6 years agoRemove unused key in WANObjectCache::newEmpty()
Aaron Schulz [Thu, 8 Jun 2017 14:27:14 +0000 (07:27 -0700)]
Remove unused key in WANObjectCache::newEmpty()

Change-Id: I5d11736b95fbba1debcf80f80cbdb4753caf15f7

6 years agoDocument return string as JavaScript code
Fomafix [Thu, 8 Jun 2017 13:11:13 +0000 (15:11 +0200)]
Document return string as JavaScript code

Change-Id: I47ce855cab444e139898f7269d63437b44825966

6 years agoMerge "Properly check that the port key is present"
jenkins-bot [Thu, 8 Jun 2017 10:15:54 +0000 (10:15 +0000)]
Merge "Properly check that the port key is present"

6 years agoDo not disable password reset for blocks meant to force login
Gergő Tisza [Mon, 1 May 2017 06:36:49 +0000 (08:36 +0200)]
Do not disable password reset for blocks meant to force login

Also remove resetpassword right (killed in I3ab5962d) from tests.

Bug: T161860
Change-Id: Ic7e7e9b4ff7fe94001578a895962ef732b690384

6 years agoMerge "Adding release note about counting page moves as edits"
Kaldari [Wed, 7 Jun 2017 23:03:54 +0000 (23:03 +0000)]
Merge "Adding release note about counting page moves as edits"

6 years agoMerge "Split off styles for PHP DateInputWidget to separate module"
jenkins-bot [Wed, 7 Jun 2017 20:53:19 +0000 (20:53 +0000)]
Merge "Split off styles for PHP DateInputWidget to separate module"

6 years agoAdding release note about counting page moves as edits
Kaldari [Wed, 7 Jun 2017 20:45:46 +0000 (13:45 -0700)]
Adding release note about counting page moves as edits

Bug: T163966
Change-Id: I084a1acb5af0b5226fb24c56434b36ecd0008eab

6 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Wed, 7 Jun 2017 19:58:09 +0000 (21:58 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Idda25d2f73ce81e48f6763a8f4a7d5d4a7fb0540

6 years agoSplit off styles for PHP DateInputWidget to separate module
Bartosz Dziewoński [Wed, 7 Jun 2017 19:49:42 +0000 (21:49 +0200)]
Split off styles for PHP DateInputWidget to separate module

This lets us load them with addModuleStyles() (without generating a warning).

Bug: T167343
Change-Id: I88f0716c6a5ac702cc07e8015cfe25d81538a536

6 years agoMerge "Improve test coverage in includes/password"
jenkins-bot [Wed, 7 Jun 2017 18:57:48 +0000 (18:57 +0000)]
Merge "Improve test coverage in includes/password"

6 years agoProperly check that the port key is present
David Causse [Wed, 7 Jun 2017 16:46:42 +0000 (18:46 +0200)]
Properly check that the port key is present

Bug: T167301
Change-Id: I009c3d8e5805ddd2b75640ba582a648663c72b47

6 years agoFixing display issue with interwiki search sidebar
Jan Drewniak [Wed, 7 Jun 2017 15:28:54 +0000 (17:28 +0200)]
Fixing display issue with interwiki search sidebar

Bug: T167301
Change-Id: I9a24eca4df79b8d9e1ae3c440be2124724148c20

6 years agoImprove test coverage in includes/password
Tim Starling [Tue, 6 Jun 2017 05:05:22 +0000 (15:05 +1000)]
Improve test coverage in includes/password

From 21% to 82%.

* Added missing @covers, broadened @covers where appropriate.
* Added tests for some code that lacked them.
* Added a parameter to control the use of hash_pbkdf2() so that the pure
  PHP fallback could be tested. In the non-fallback test, force the use
  of the extension, and mark it skipped if it is not installed.

Bug: T167003
Change-Id: I987e1a89ec343907f4ead7f6192b2d4deb58ac16

6 years agoMerge "Use AutoCommitUpdate instead of Database->onTransactionIdle"
jenkins-bot [Wed, 7 Jun 2017 03:20:49 +0000 (03:20 +0000)]
Merge "Use AutoCommitUpdate instead of Database->onTransactionIdle"

6 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Tue, 6 Jun 2017 19:54:43 +0000 (21:54 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Id393acd9be01ab3342d202931bc284e8437f5d9d

6 years agoMerge "Fix action=feedcontributions date filtering parameters"
jenkins-bot [Tue, 6 Jun 2017 15:32:55 +0000 (15:32 +0000)]
Merge "Fix action=feedcontributions date filtering parameters"

6 years agoMerge "Rename all files used in ResourceLoaderImageModule tests to fake names"
jenkins-bot [Tue, 6 Jun 2017 14:59:07 +0000 (14:59 +0000)]
Merge "Rename all files used in ResourceLoaderImageModule tests to fake names"

6 years agoMerge "Add appropriate OOjs UI icon pack dependencies for OOjs UI itself"
jenkins-bot [Tue, 6 Jun 2017 14:53:20 +0000 (14:53 +0000)]
Merge "Add appropriate OOjs UI icon pack dependencies for OOjs UI itself"

6 years agoFix action=feedcontributions date filtering parameters
Geoffrey Mon [Sun, 4 Jun 2017 01:12:21 +0000 (21:12 -0400)]
Fix action=feedcontributions date filtering parameters

* Convert year/month date filter parameters to use start/end so that
  ApiFeedContributions still works as expected after b668887
* Move SpecialContributions::processDateFilter (used to convert
  year/month parameters to start/end parameters) to ContribsPager
  since ApiFeedContributions also uses it now

Bug: T166859
Change-Id: I34fc8388a29e4cd36474934e6266127d0e3253cd

6 years agoRename all files used in ResourceLoaderImageModule tests to fake names
Bartosz Dziewoński [Tue, 6 Jun 2017 13:04:09 +0000 (15:04 +0200)]
Rename all files used in ResourceLoaderImageModule tests to fake names

Using names that match real OOjs UI icons is confusing when trying to
find usages of the real icons and when debugging the tests.

Bug: T166730
Change-Id: Ibb97c0347476efc95f1a50c97822d7dab19737f2

6 years agoUse AutoCommitUpdate instead of Database->onTransactionIdle
Seb35 [Thu, 1 Jun 2017 15:49:28 +0000 (17:49 +0200)]
Use AutoCommitUpdate instead of Database->onTransactionIdle

This is needed for deferred updates LinksDeletionUpdate and LinksUpdate, else
callbacks registered with onTransactionIdle prevent other transactions from
being executed, at least in this case.

Bug: T154425
Bug: T154438
Bug: T157679
Change-Id: Iecd396d584a62ac936cd963915339159467b44cd

6 years agoMerge "Restore the ability to set $wgResourceModuleSkinStyles for 'oojs-ui-core.styles'"
jenkins-bot [Tue, 6 Jun 2017 02:03:38 +0000 (02:03 +0000)]
Merge "Restore the ability to set $wgResourceModuleSkinStyles for 'oojs-ui-core.styles'"

6 years agoMerge "Try harder to avoid parser cache pollution"
jenkins-bot [Mon, 5 Jun 2017 23:46:23 +0000 (23:46 +0000)]
Merge "Try harder to avoid parser cache pollution"

6 years agoEditPage: Give edit summary field's 'tabindex' as a number
Bartosz Dziewoński [Mon, 5 Jun 2017 22:30:49 +0000 (00:30 +0200)]
EditPage: Give edit summary field's 'tabindex' as a number

There's a bug in OOjs UI that causes the string value to be ignored
after the input is infused (e.g. by the mediawiki.action.edit script).

Bug: T167070
Change-Id: Ibeefc8327b462552c67459aac2c75cca9b1f4739

6 years agoRestore the ability to set $wgResourceModuleSkinStyles for 'oojs-ui-core.styles'
Bartosz Dziewoński [Mon, 5 Jun 2017 17:32:23 +0000 (19:32 +0200)]
Restore the ability to set $wgResourceModuleSkinStyles for 'oojs-ui-core.styles'

In c8ad83310f425433791102e8a958397f2d701b65, 'oojs-ui-core.styles'
was changed to use ResourceLoaderOOUIFileModule instead of plain
ResourceLoaderFileModule. This had the unintended consequence that
ResourceLoader::isFileModule() no longer returned true for it, and
this $wgResourceModuleSkinStyles no longer worked, breaking styling
in Vector.

Additionally, the new ResourceLoaderOOUIFileModule did not respect
the skinScripts/skinStyles options passed in the module definition
(therefore also those from $wgResourceModuleSkinStyles). Merging
them turns out to be a major pain, but it can be done.

Bug: T167042
Change-Id: I7547bbe996467745c1f0b168b40f27eb95c6238d

6 years agoMerge "Enable $wgStructuredChangeFiltersEnableSaving by default"
jenkins-bot [Mon, 5 Jun 2017 21:12:34 +0000 (21:12 +0000)]
Merge "Enable $wgStructuredChangeFiltersEnableSaving by default"

6 years agoMerge "Revert "Localisation updates from https://translatewiki.net.""
L10n-bot [Mon, 5 Jun 2017 20:31:16 +0000 (20:31 +0000)]
Merge "Revert "Localisation updates from https://translatewiki.net.""

6 years agoRevert "Localisation updates from https://translatewiki.net."
Raimond Spekking [Mon, 5 Jun 2017 20:29:27 +0000 (20:29 +0000)]
Revert "Localisation updates from https://translatewiki.net."

Overwrites API messsages

This reverts commit 8d33520e697d8b409a93cf2df1cafea7b2de66f0.

Change-Id: Id4023a5038a25c368b4d58d7ab6ad3d3990ce04f

6 years agoMerge "phpcs: Allow linting tools to discover rules"
jenkins-bot [Mon, 5 Jun 2017 20:23:57 +0000 (20:23 +0000)]
Merge "phpcs: Allow linting tools to discover rules"

6 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Mon, 5 Jun 2017 20:18:40 +0000 (22:18 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I5bb64bf3a81ab9bc113f3f3a4be91971d8a9df4e

6 years agophpcs: Allow linting tools to discover rules
Baha [Mon, 5 Jun 2017 16:05:55 +0000 (12:05 -0400)]
phpcs: Allow linting tools to discover rules

Explicitly stating the current directory fixes the ambiguity
of finding the ruleset referred to in the file. This allows
syntax checkers like flycheck (for GNU Emacs) to work.

Change-Id: I6b046db29d11aff514d8f3623d049f5b6231a9d4

6 years agoMerge "Add CODE_OF_CONDUCT.md"
jenkins-bot [Mon, 5 Jun 2017 19:58:10 +0000 (19:58 +0000)]
Merge "Add CODE_OF_CONDUCT.md"

6 years agoAPI: Rewrite ApiComparePages
Brad Jorsch [Thu, 4 May 2017 22:28:23 +0000 (18:28 -0400)]
API: Rewrite ApiComparePages

Support diffing deleted revisions, user-supplied text, and additional
properties about the diffed revisions such as the user and edit summary.

Bug: T20189
Bug: T30047
Bug: T164529
Change-Id: I5565d717d9c2fd19da7cae02890a15e244cc238b

6 years agoMerge "RCFilters: Center the checkmark in the highlight menu"
jenkins-bot [Mon, 5 Jun 2017 19:07:34 +0000 (19:07 +0000)]
Merge "RCFilters: Center the checkmark in the highlight menu"

6 years agoRCFilters: Set up custom color for yellow+blue combination
Moriel Schottlender [Mon, 5 Jun 2017 13:53:23 +0000 (16:53 +0300)]
RCFilters: Set up custom color for yellow+blue combination

Bug: T161267
Change-Id: Iaff230e61027adeb38065f9e517c536a30d15da1

6 years agoRCFilters: Center the checkmark in the highlight menu
Moriel Schottlender [Mon, 5 Jun 2017 14:16:36 +0000 (17:16 +0300)]
RCFilters: Center the checkmark in the highlight menu

Bug: T166874
Change-Id: Ia1a8e992f8cd6a2c7c56c71a19ff40b407bec059

6 years agoTry harder to avoid parser cache pollution
Brad Jorsch [Fri, 12 May 2017 21:38:12 +0000 (17:38 -0400)]
Try harder to avoid parser cache pollution

* ParserOptions is reorganized so it knows all the options and their
  defaults, and can report whether the non-key options are at their
  defaults.
* Definition of the "canonical" ParserOptions (which is unfortunately
  different from the "default" ParserOptions) is moved from
  ContentHandler to ParserOptions.
* WikiPage uses this to throw an exception if it's asked to cache
  with options that aren't used in the cache key.
* ParserCache gets some temporary code to try to avoid a massive cache
  stampede on upgrade.

Bug: T110269
Change-Id: I7fb9ffca96e6bd04db44d2d5f2509ec96ad9371f
Depends-On: I4070a8f51927121f690469716625db4a1064dea5

6 years agoMerge "objectcache: add getMultiWithUnionSetCallback() method"
jenkins-bot [Mon, 5 Jun 2017 13:12:27 +0000 (13:12 +0000)]
Merge "objectcache: add getMultiWithUnionSetCallback() method"

6 years agoMerge "mw.Upload.Dialog: Update for deprecation of OOjs UI openWindow/closeWindow...
jenkins-bot [Mon, 5 Jun 2017 13:11:31 +0000 (13:11 +0000)]
Merge "mw.Upload.Dialog: Update for deprecation of OOjs UI openWindow/closeWindow promise"

6 years agoMerge "Resources.php: Alphabetical sort of mediawiki.special.*"
jenkins-bot [Sun, 4 Jun 2017 21:54:56 +0000 (21:54 +0000)]
Merge "Resources.php: Alphabetical sort of mediawiki.special.*"

6 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sun, 4 Jun 2017 20:32:50 +0000 (22:32 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I866f94ca519d38153c55d5aa24f7471c24dd1760

6 years agoResources.php: Alphabetical sort of mediawiki.special.*
Fomafix [Sun, 4 Jun 2017 19:37:10 +0000 (21:37 +0200)]
Resources.php: Alphabetical sort of mediawiki.special.*

Change-Id: Ic49128620b6b52e5a69803eefac6c982d740c1b7

6 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sat, 3 Jun 2017 19:53:46 +0000 (21:53 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Ia81ce775bec7d92a59e1ea67a07f751fe3addbeb

6 years agoAdd appropriate OOjs UI icon pack dependencies for OOjs UI itself
Bartosz Dziewoński [Sat, 3 Jun 2017 12:15:04 +0000 (14:15 +0200)]
Add appropriate OOjs UI icon pack dependencies for OOjs UI itself

Ridiculous? Why yes, yes it is. See T166948.

Bug: T166730
Bug: T166948
Change-Id: I6428ca0d44d8773486230445e466bd5de272e873

6 years agomw.Upload.Dialog: Update for deprecation of OOjs UI openWindow/closeWindow promise
Bartosz Dziewoński [Sat, 3 Jun 2017 08:29:27 +0000 (10:29 +0200)]
mw.Upload.Dialog: Update for deprecation of OOjs UI openWindow/closeWindow promise

Bug: T166729
Change-Id: Icda83841f0494ee2b34b434ba45e701c52f1b67f

6 years agoMerge "Avoid DB_MASTER queries in User::newSystemUser() when possible"
jenkins-bot [Sat, 3 Jun 2017 05:16:08 +0000 (05:16 +0000)]
Merge "Avoid DB_MASTER queries in User::newSystemUser() when possible"

6 years agoMerge "Avoid scoped lock errors in Category::refreshCounts() due to nesting"
jenkins-bot [Fri, 2 Jun 2017 23:28:02 +0000 (23:28 +0000)]
Merge "Avoid scoped lock errors in Category::refreshCounts() due to nesting"

6 years agoAdd tests for ParserOptions
Brad Jorsch [Fri, 2 Jun 2017 16:45:55 +0000 (12:45 -0400)]
Add tests for ParserOptions

Change-Id: I3e2d945d109bbb0ebc31d65d9f6faaa7482deefe

6 years agoMerge "Add missing return value to getPendingUpdates() docs"
jenkins-bot [Fri, 2 Jun 2017 19:58:12 +0000 (19:58 +0000)]
Merge "Add missing return value to getPendingUpdates() docs"

6 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Fri, 2 Jun 2017 19:53:44 +0000 (21:53 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I06568b78ef084ebccf2769a56587a1d0e370949f

6 years agoMerge "Process content headers when metadata is empty"
jenkins-bot [Fri, 2 Jun 2017 19:07:38 +0000 (19:07 +0000)]
Merge "Process content headers when metadata is empty"

6 years agoMerge "mw.action.history.diff: Remove higher than necessary specific selectors"
jenkins-bot [Fri, 2 Jun 2017 18:59:39 +0000 (18:59 +0000)]
Merge "mw.action.history.diff: Remove higher than necessary specific selectors"

6 years agoEnable $wgStructuredChangeFiltersEnableSaving by default
Roan Kattouw [Fri, 2 Jun 2017 18:33:54 +0000 (11:33 -0700)]
Enable $wgStructuredChangeFiltersEnableSaving by default

We'll probably get rid of the feature flag altogether in a few weeks,
for now let's just turn it on by default.

Bug: T164128
Change-Id: Ifa12c33a619e1fb3d9fff05ef1b98a9b537c5dea

6 years agoMerge "Make sure URI comparisons include highlight states"
jenkins-bot [Fri, 2 Jun 2017 17:24:53 +0000 (17:24 +0000)]
Merge "Make sure URI comparisons include highlight states"

6 years agoProcess content headers when metadata is empty
Gilles Dubuc [Tue, 30 May 2017 11:19:49 +0000 (13:19 +0200)]
Process content headers when metadata is empty

The new width/height override means that files without
any metadata can get content headers.

Bug: T150741
Change-Id: I92199a4aa9e0408572ebf7d8e4c04cd0196f0d0a

6 years agomw.action.history.diff: Remove higher than necessary specific selectors
Prateek Saxena [Tue, 5 Jul 2016 13:20:17 +0000 (18:50 +0530)]
mw.action.history.diff: Remove higher than necessary specific selectors

Change-Id: I59b464d3c0939ec4bc581c11c5c3456d64a56a5e

6 years agoMake sure URI comparisons include highlight states
Moriel Schottlender [Thu, 1 Jun 2017 15:36:53 +0000 (18:36 +0300)]
Make sure URI comparisons include highlight states

When we compare URI states to see whether it is different,
we have to also take into account highlight states and the
highlight toggle.

Change-Id: Ic6bdd8b7d27280b028f6a40879de0dbeb2850dbd

6 years agoAdd missing return value to getPendingUpdates() docs
Aaron Schulz [Thu, 1 Jun 2017 07:11:44 +0000 (00:11 -0700)]
Add missing return value to getPendingUpdates() docs

Change-Id: I917a2eb97e6e99ccc895245b84717ba40b0c88f6

6 years agoMerge "Add a byte counter to the edit page's summary field"
jenkins-bot [Fri, 2 Jun 2017 00:58:33 +0000 (00:58 +0000)]
Merge "Add a byte counter to the edit page's summary field"

6 years agoMerge "RCFilters UI: Use backwards-aligned anchorless popups now that they work"
jenkins-bot [Fri, 2 Jun 2017 00:47:34 +0000 (00:47 +0000)]
Merge "RCFilters UI: Use backwards-aligned anchorless popups now that they work"

6 years agoMerge "RCFilters UI: Rename "Quick links" to "Saved filter settings""
jenkins-bot [Fri, 2 Jun 2017 00:47:31 +0000 (00:47 +0000)]
Merge "RCFilters UI: Rename "Quick links" to "Saved filter settings""

6 years agoMerge "resources: Add appropriate OOjs UI icon pack dependencies"
jenkins-bot [Fri, 2 Jun 2017 00:32:35 +0000 (00:32 +0000)]
Merge "resources: Add appropriate OOjs UI icon pack dependencies"

6 years agoresources: Add appropriate OOjs UI icon pack dependencies
James D. Forrester [Thu, 1 Jun 2017 23:45:09 +0000 (16:45 -0700)]
resources: Add appropriate OOjs UI icon pack dependencies

resources/src/mediawiki/mediawiki.filewarning.js
* Add 'alerts' as it uses 'alert'

resources/src/mediawiki/page/gallery-slideshow.js:
* Add 'movement' as it uses 'previous' and 'next'

resources/src/mediawiki.special/mediawiki.special.apisandbox.js:
* Add 'content' as it uses 'info'
* Add 'interactions' as it uses 'add' and 'help'
* Add 'editing-advanced' as it uses 'code'

resources/src/mediawiki.widgets/mw.widgets.CalendarWidget.js:
* Add 'movement' as it uses 'collapse', 'previous', and 'next'

includes/widget/SearchInputWidget.php and
resources/src/mediawiki.widgets/mw.widgets.SearchInputWidget.js:
* Add 'interactions' as it uses 'search'

resources/src/mediawiki.widgets.datetime/CalendarWidget.js:
* Add 'movement' as it uses 'previous' and 'next'

Bug: T166730
Change-Id: I0618c681d06891621470ca1cb500dedfdf05f93b

6 years agoMerge "Better handling of jobs execution in post-connection shutdown"
jenkins-bot [Thu, 1 Jun 2017 23:51:11 +0000 (23:51 +0000)]
Merge "Better handling of jobs execution in post-connection shutdown"

6 years agoAdd styles specific for hlist inside warning/error/success boxes
jdlrobson [Thu, 1 Jun 2017 23:01:02 +0000 (16:01 -0700)]
Add styles specific for hlist inside warning/error/success boxes

hlists inside warningboxes should not have a left margin, nor
should they be crammed together.

Change-Id: I6895181135be92ff1943940f4c5688cad028783a

6 years agoRCFilters UI: Rename "Quick links" to "Saved filter settings"
Roan Kattouw [Thu, 1 Jun 2017 20:37:28 +0000 (13:37 -0700)]
RCFilters UI: Rename "Quick links" to "Saved filter settings"

Bug: T166822
Change-Id: I67cd9f1872545ca2855ba6e75e65c375b9a5a274

6 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Thu, 1 Jun 2017 20:21:24 +0000 (22:21 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I31b05b2abb0437e28a2feacff7b343099f620a57

6 years agoRCFilters: Depend on the 'content' icon pack, for the 'history' icon
James D. Forrester [Thu, 1 Jun 2017 19:26:15 +0000 (12:26 -0700)]
RCFilters: Depend on the 'content' icon pack, for the 'history' icon

Change-Id: I93dcc4b0f0861a94ac6aa02a40276355f080e1bc

6 years agoMerge "Change "...." (four dots) to "..." (three dots) in the only two messages that...
jenkins-bot [Thu, 1 Jun 2017 18:40:37 +0000 (18:40 +0000)]
Merge "Change "...." (four dots) to "..." (three dots) in the only two messages that use it"

6 years agoChange "...." (four dots) to "..." (three dots) in the only two messages that use it
Roan Kattouw [Thu, 1 Jun 2017 00:34:06 +0000 (17:34 -0700)]
Change "...." (four dots) to "..." (three dots) in the only two messages that use it

Bug: T166377
Change-Id: Ia47d7aa27bcaf1ede08d762b243d7fe605f8b43d

6 years agoMerge "EditPage: Restore the old 'id' attributes in OOUI mode"
jenkins-bot [Thu, 1 Jun 2017 17:38:09 +0000 (17:38 +0000)]
Merge "EditPage: Restore the old 'id' attributes in OOUI mode"

6 years agoMerge "Refactor registration of OOjs UI resource modules"
jenkins-bot [Thu, 1 Jun 2017 17:37:28 +0000 (17:37 +0000)]
Merge "Refactor registration of OOjs UI resource modules"

6 years agoAdd a byte counter to the edit page's summary field
James D. Forrester [Sat, 20 May 2017 11:13:02 +0000 (13:13 +0200)]
Add a byte counter to the edit page's summary field

Blocked on T165866 as otherwise the rendering is broken.

Bug: T165856
Change-Id: I84213e6c134f55597340e77876f69063a37ed0a5

6 years agoEditPage: Restore the old 'id' attributes in OOUI mode
Bartosz Dziewoński [Sat, 20 May 2017 10:23:18 +0000 (12:23 +0200)]
EditPage: Restore the old 'id' attributes in OOUI mode

For compatibility with old scripts and extensions, we want the legacy
'id' on the `<input>` elements. There is really no good justification
for breaking all of them when we can easily support it.

The actual `<input>` elements have their ids back: 'wpSummary',
'wpSave', 'wpPreview', 'wpDiff', 'wpMinoredit', 'wpWatchthis'.

The widgets (wrapped `<div>`s) now use ids with 'Widget' appended.

Bug: T165854
Change-Id: I4d23f57fd0cda4b8539ffb17a2a19ecd822e077a

6 years agoMerge "mediawiki.special/mediawiki.special.apisandbox: Use 'trash' icon which still...
jenkins-bot [Thu, 1 Jun 2017 15:43:10 +0000 (15:43 +0000)]
Merge "mediawiki.special/mediawiki.special.apisandbox: Use 'trash' icon which still exists"

6 years agoMerge "mediawiki.widgets.datetime/DateTimeInputWidget: Use 'trash' icon which still...
jenkins-bot [Thu, 1 Jun 2017 15:43:06 +0000 (15:43 +0000)]
Merge "mediawiki.widgets.datetime/DateTimeInputWidget: Use 'trash' icon which still exists"

6 years agomediawiki.special/mediawiki.special.apisandbox: Use 'trash' icon which still exists
James D. Forrester [Wed, 31 May 2017 23:44:24 +0000 (16:44 -0700)]
mediawiki.special/mediawiki.special.apisandbox: Use 'trash' icon which still exists

Bug: T166730
Change-Id: I38c526d2660aae8c221f74ce2927c2e338c01be1

6 years agomediawiki.widgets.datetime/DateTimeInputWidget: Use 'trash' icon which still exists
James D. Forrester [Wed, 31 May 2017 23:42:20 +0000 (16:42 -0700)]
mediawiki.widgets.datetime/DateTimeInputWidget: Use 'trash' icon which still exists

Bug: T166730
Change-Id: I30a833ee93d49bb9480f5cfed332a9aa8e306713

6 years agoRefactor registration of OOjs UI resource modules
Bartosz Dziewoński [Fri, 17 Mar 2017 01:32:59 +0000 (02:32 +0100)]
Refactor registration of OOjs UI resource modules

includes/resourceloader/ResourceLoaderOOUIModule.php
* New trait centralizing some logic for dealing with OOjs UI themes,
  previously duplicated in OutputPage, ResourcesOOUI.php and
  ResourceLoaderOOUIImageModule.
* Follow-up change I74362f0fc215b26f1f104ce7bdbbac1e106736ad uses this
  as a base to allow skins/extensions to define new OOjs UI themes.

resources/Resources.php
resources/ResourcesOOUI.php
includes/resourceloader/ResourceLoader.php
* OOjs UI resource module definitions are moved back to their rightly
  place in Resources.php. They are again (almost) normal and static.
* Theme-specific logic is now handled by the module code, definitions
  only specify 'themeScripts'/'themeStyles'/'themeImages'.
* ResourcesOOUI.php is deleted and no longer loaded by ResourceLoader.

includes/resourceloader/ResourceLoaderOOUIFileModule.php
includes/resourceloader/ResourceLoaderOOUIImageModule.php
* Glue code previously existing in ResourcesOOUI.php now lives here.
* Use the ResourceLoaderOOUIModule trait to avoid code duplication.

Change-Id: I39cc2a735d9625c87bf4ede6f5fb0ec441d47dcc

6 years agoOutputPage: Do not try to load non-existent 'oojs-ui.styles.icons' module
Bartosz Dziewoński [Thu, 1 Jun 2017 15:00:18 +0000 (17:00 +0200)]
OutputPage: Do not try to load non-existent 'oojs-ui.styles.icons' module

Follow-up to 0f2795d5bacda8d573dc1478fb2ea9d8f2ac4432.

Change-Id: I461fb179a494e00a14116361700020da577db494

6 years agoBetter handling of jobs execution in post-connection shutdown
Seb35 [Mon, 29 May 2017 22:58:56 +0000 (00:58 +0200)]
Better handling of jobs execution in post-connection shutdown

In the postprocessing, some jobs can be executed but given the deferred
updates were already "closed", any new DeferredUpdate were directly called
(as explained by Krinkle on T165714), and the transactions opened by
classical jobs are badly mixed with transactions (directly) executed by
DeferredUpdates jobs, issuing a DBError, avoiding the job, which stays
in a 'claimed' status even if failed.

Quite similarly, some DeferredUpdates callables use JobQueueGroup::lazyPush
so it is needed to really push the generated jobs.

This change removes the run-immediately-deferred-updates behaviour even
in the post-connection shutdown, and given there is a call to
DeferredUpdates::doUpdates in JobRunner::execute it is not necessary to
add another one and hence execution of Web jobs is more similar to execution
of CLI jobs. In the same spirit to reconcile Web jobs and CLI jobs, the
call to JobQueueGroup::pushLazyJobs is done in JobRunner::execute.

Bug: T165714
Bug: T100085
Change-Id: I721e7167eca5b0b6227234fe516005243ab22388

6 years agoMerge "Apply $wgShellLocale in Setup.php"
jenkins-bot [Thu, 1 Jun 2017 05:21:30 +0000 (05:21 +0000)]
Merge "Apply $wgShellLocale in Setup.php"

6 years agoAvoid scoped lock errors in Category::refreshCounts() due to nesting
Aaron Schulz [Thu, 1 Jun 2017 05:18:12 +0000 (22:18 -0700)]
Avoid scoped lock errors in Category::refreshCounts() due to nesting

Bug: T166757
Change-Id: Ie59523a8b3315f063c914cd25d7b53c11e03fbcd

6 years agoApply $wgShellLocale in Setup.php
Brad Jorsch [Tue, 9 May 2017 16:12:41 +0000 (12:12 -0400)]
Apply $wgShellLocale in Setup.php

While most of MediaWiki ignores the shell's/C library's locale setting,
there are some things other than shell execs that use it (e.g. the
luasandbox PHP extension).

To provide a consistent environment, set the locale in Setup.php instead
of letting it be changed mid-request depending on whether something else
happened to have called certain functions.

Bug: T107128
Change-Id: I02943803d26d5b1b3ac00ef9216f69cdfa149585

6 years agoMerge "Follow-up 7668836236: oojs-ui.styles.icons is now gone"
jenkins-bot [Thu, 1 Jun 2017 01:01:36 +0000 (01:01 +0000)]
Merge "Follow-up 7668836236: oojs-ui.styles.icons is now gone"

6 years agoFollow-up 7668836236: oojs-ui.styles.icons is now gone
James D. Forrester [Thu, 1 Jun 2017 00:47:09 +0000 (17:47 -0700)]
Follow-up 7668836236: oojs-ui.styles.icons is now gone

Change-Id: If7fcde0cebe74998a31ca1e88f1d8d90ee1b1b80

6 years agoMerge "RCFilters UI: Make monobook override of the 'checkmark' more specific"
jenkins-bot [Thu, 1 Jun 2017 00:34:06 +0000 (00:34 +0000)]
Merge "RCFilters UI: Make monobook override of the 'checkmark' more specific"

6 years agoMWExceptionRenderer::useOutputPage: Don't bother if we have no Title context
Alex Monk [Tue, 27 Sep 2016 00:26:05 +0000 (01:26 +0100)]
MWExceptionRenderer::useOutputPage: Don't bother if we have no Title context

Change-Id: Ieb6d682a9f2fb4def4c01908ccd035fcce2e1895