lhc/web/wiklou.git
6 years agoEditPage: Extract some edit conflict code into EditConflictHelper
Kunal Mehta [Fri, 22 Sep 2017 11:48:27 +0000 (04:48 -0700)]
EditPage: Extract some edit conflict code into EditConflictHelper

Extensions with custom content models (e.g. ProofreadPage) will extend
EditPage to provide a customized editing experience. However when
another extension like TwoColConflict wants to change just how edit
conflicts look, this causes problems since only one class can take the
place of EditPage.

So instead, split most of the frontend code for edit conflicts into
TextConflictHelper, and call it from edit page. Extensions can override
with the instance created by calling
EditPage::setEditConflictHelperFactory().

And to make that split possible also move EditPage::addNewLineAtEnd()
and ::buildTextboxAttribs() into a separate TextboxBuilder class that
both EditPage and TextConflictHelper can use.

Bug: T176393
Change-Id: Ie415edd84329c02d5762477f8a171fced85b01a2

6 years agoMerge "Remove unused mediawiki.ui 'checked' icons"
jenkins-bot [Wed, 25 Oct 2017 22:03:09 +0000 (22:03 +0000)]
Merge "Remove unused mediawiki.ui 'checked' icons"

6 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Wed, 25 Oct 2017 19:54:46 +0000 (21:54 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Ic741440ded2718acbe29973af639442eb722d0ff

6 years agoMerge "HistoryPager: Add missing $tagFilter property"
jenkins-bot [Wed, 25 Oct 2017 17:09:16 +0000 (17:09 +0000)]
Merge "HistoryPager: Add missing $tagFilter property"

6 years agoHistoryPager: Add missing $tagFilter property
addshore [Wed, 25 Oct 2017 09:04:25 +0000 (10:04 +0100)]
HistoryPager: Add missing $tagFilter property

Change-Id: Iec2d944d5583eb13fa9383c0a6a183b550f60aab

6 years agoArticle: Drop partial purge code and constants, deprecated in 1.29
James D. Forrester [Wed, 25 Oct 2017 15:42:38 +0000 (08:42 -0700)]
Article: Drop partial purge code and constants, deprecated in 1.29

Change-Id: I4f20d823e6c9206121212b8a73ecc28f91e68b45

6 years agoMerge "Rename some cache keys with odd virtual hierarchies"
jenkins-bot [Wed, 25 Oct 2017 15:28:10 +0000 (15:28 +0000)]
Merge "Rename some cache keys with odd virtual hierarchies"

6 years agoMerge "Make runJobs.php treat --json value as case insensitive"
jenkins-bot [Wed, 25 Oct 2017 15:28:07 +0000 (15:28 +0000)]
Merge "Make runJobs.php treat --json value as case insensitive"

6 years agoMerge "API: Include setupSkinUserCss in prop=modules for useskin mode"
jenkins-bot [Wed, 25 Oct 2017 15:24:03 +0000 (15:24 +0000)]
Merge "API: Include setupSkinUserCss in prop=modules for useskin mode"

6 years agoMerge "API: Add tests for useskin parameter of ApiParse"
jenkins-bot [Wed, 25 Oct 2017 15:24:00 +0000 (15:24 +0000)]
Merge "API: Add tests for useskin parameter of ApiParse"

6 years agoRemove unused mediawiki.ui 'checked' icons
Volker E [Wed, 25 Oct 2017 07:59:22 +0000 (00:59 -0700)]
Remove unused mediawiki.ui 'checked' icons

Removing unused mediawiki.ui 'checked' image, which was in use before
the switch to the unified checkbox with blue and white appearance.

Change-Id: I4ba88583a2ed59b44a1f7bbffe823468af8e3874

6 years agoMake runJobs.php treat --json value as case insensitive
Aaron Schulz [Tue, 24 Oct 2017 22:42:30 +0000 (15:42 -0700)]
Make runJobs.php treat --json value as case insensitive

The docs mentioned "JSON", which did not actually work.

Change-Id: Ie9802551d05f7d80d1db0fd316e36f4b35bbc521

6 years agoRename some cache keys with odd virtual hierarchies
Aaron Schulz [Wed, 25 Oct 2017 01:42:31 +0000 (18:42 -0700)]
Rename some cache keys with odd virtual hierarchies

This makes automatic statsd metrics more useful.

Change-Id: I07d87dcb8ce9b42cc2f1c84ac4c06d177d463b1d

6 years agoAPI: Include setupSkinUserCss in prop=modules for useskin mode
Timo Tijhof [Wed, 25 Oct 2017 01:16:01 +0000 (02:16 +0100)]
API: Include setupSkinUserCss in prop=modules for useskin mode

Follows-up 90c95fc7f290f, which included result of Skin::getDefaultModules
in the prop=modules list. All hardcoded modules in OutputPage and Parser
were also subsequently moved into Skin::getDefaultModules.

However, a number of modules cannot be moved there because fundamentally
Skin::getDefaultModules can only load modules via OutputPage::addModules().

For style modules, addModuleStyles() must be used.

Fortunately, there is already a centralised place for that, namely
Skin::setupSkinUserCss(). Include that in the ApiParse return as well.
That should resolve the last bit of inconsistency between ApiParse
and OutputPage when it comes to the module queue.

Bug: T140664
Change-Id: I35e2e3bbdccdd1aa2a259b8e624daa80c609ba8c

6 years agoAPI: Add tests for useskin parameter of ApiParse
Timo Tijhof [Wed, 25 Oct 2017 01:07:59 +0000 (02:07 +0100)]
API: Add tests for useskin parameter of ApiParse

Change-Id: If3dff7be5ccb6791f95d37c06998fcbadf1f469f

6 years agoMerge "Setup: Merge PreConfigSetup into Setup.php"
jenkins-bot [Wed, 25 Oct 2017 00:57:06 +0000 (00:57 +0000)]
Merge "Setup: Merge PreConfigSetup into Setup.php"

6 years agoMerge "Add action/user tracking to link refresh jobs"
jenkins-bot [Wed, 25 Oct 2017 00:03:23 +0000 (00:03 +0000)]
Merge "Add action/user tracking to link refresh jobs"

6 years agoSetup: Merge PreConfigSetup into Setup.php
Timo Tijhof [Tue, 19 Sep 2017 19:24:19 +0000 (20:24 +0100)]
Setup: Merge PreConfigSetup into Setup.php

Follows-up 41ea7e2fefff65.

The following previously happened between PreConfigSetup and Setup
and must now happen either before it, after it, or moved inside it.

* WebStart: Detect missing composer.
  This must be after Autoloader/Vendor but before the first call to
  wfDebugLog (or other loggers) so that we can output a more descriptive
  error instead of a generic "Unknown class" fatal error.
  Moving it to before Setup is too early, and after is too late.
  Move it to within Setup.php and make it work in CLI mode.

* WebStart: Install header callback
  Moving it to before Setup is too early, and after is too late.
  Move it to within Setup.php (no-op in CLI mode).

* WebStart/Maintenance: Load LocalSetings.
  Must be between PreConfigSetup and Setup.
  Move to Setup.php to maintain execution order.
  Utilise MW_CONFIG_File for custom handling in Maintenance.php.

* WebStart: Initialise output buffering
  Utilise (new) MW_SETUP_CALLBACK hook.

* WebStart: Display NoLocalSettings.php
  Utilise MW_CONFIG_CALLBACK hook.

* Maintenance: Setting $wgLocalisationCacheConf, calling Maintenance::finalSetup.
  Utilise (new) MW_SETUP_CALLBACK hook.

Change-Id: I633a6ff235b4275391c48034c0525d2fbfa3fecd

6 years agoMerge "Removed Toki Pona localization files"
jenkins-bot [Tue, 24 Oct 2017 21:57:13 +0000 (21:57 +0000)]
Merge "Removed Toki Pona localization files"

6 years agoRemoved Toki Pona localization files
zoranzoki21 [Sat, 21 Oct 2017 09:48:51 +0000 (11:48 +0200)]
Removed Toki Pona localization files

Bug: T132899
Bug: T178730
Change-Id: I4c61b3ef42cdc24fee74587965240ca08242867e

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

Change-Id: Ic5c7a0f485ea4efe772c791965d5c43c98780940

6 years agoMerge "Add support for SVGs to $wgLogoHD with PNG fallback"
jenkins-bot [Tue, 24 Oct 2017 19:06:45 +0000 (19:06 +0000)]
Merge "Add support for SVGs to $wgLogoHD with PNG fallback"

6 years agoMerge "Follow-up 2454f51b274: Upgrade qunit from 1.x to 2.x too"
jenkins-bot [Tue, 24 Oct 2017 18:24:21 +0000 (18:24 +0000)]
Merge "Follow-up 2454f51b274: Upgrade qunit from 1.x to 2.x too"

6 years agoMerge "Remove unused table pager icons"
jenkins-bot [Tue, 24 Oct 2017 18:04:33 +0000 (18:04 +0000)]
Merge "Remove unused table pager icons"

6 years agoMerge "registration: Only allow one extension to set a specific config setting"
jenkins-bot [Tue, 24 Oct 2017 17:52:23 +0000 (17:52 +0000)]
Merge "registration: Only allow one extension to set a specific config setting"

6 years agoAdd support for SVGs to $wgLogoHD with PNG fallback
Paladox [Mon, 22 May 2017 18:12:26 +0000 (19:12 +0100)]
Add support for SVGs to $wgLogoHD with PNG fallback

SVGs could already be used through $wgLogo. However, if a PNG fallback
is desired for older browsers, using SVGs was previously not possible.

This commit adds support for using an SVG image in $wgLogoHD and,
using $wgLogo as the fallback image.

Usage example:

> $wgLogo = '/path/to/png';
> $wgLogoHD = [
>     'svg' => 'path/to/svg',
> ];

Note: When the 'svg' key is set in $wgLogoHD, any '1.5x' and '2x' keys will
no longer be used because SVGs can render optimally on any screen sizes.

@Reedy, @Krinkle and @Brion VIBBER helped me alot with this.

Bug: T86229
Change-Id: I6197d96ce9110f4711ef2c4b198445bc5c6ae110

6 years agoRemove unused table pager icons
Volker E [Tue, 24 Oct 2017 17:34:39 +0000 (10:34 -0700)]
Remove unused table pager icons

Removing unused table pager icons, which have not been in use since
Ia750131aae52

Change-Id: Ia9a8cf12c2efcc7760f3ca028aff6c7e82253ccb

6 years agoapi.js: Add an else to avoid unnecessary checks
Fomafix [Tue, 24 Oct 2017 09:23:46 +0000 (11:23 +0200)]
api.js: Add an else to avoid unnecessary checks

If the first if matches then the second if can never match.

Change-Id: I96d59b57cac414c9ee7008e2f284a7a4e3348f3f

6 years agoMerge "RCFilters: Display specific error if query times out"
jenkins-bot [Tue, 24 Oct 2017 08:41:10 +0000 (08:41 +0000)]
Merge "RCFilters: Display specific error if query times out"

6 years agoMerge "objectcache: Always use interim values on WAN cache tombstones"
jenkins-bot [Tue, 24 Oct 2017 00:42:46 +0000 (00:42 +0000)]
Merge "objectcache: Always use interim values on WAN cache tombstones"

6 years agoobjectcache: Always use interim values on WAN cache tombstones
Aaron Schulz [Thu, 19 Oct 2017 04:03:26 +0000 (21:03 -0700)]
objectcache: Always use interim values on WAN cache tombstones

This stores values for very short times while the main
value is a tombstone in case of particularly high traffic.

Also make mutex keys expire immediately on unlock.

Change-Id: I4ec5cf7f8b49239fdd2518e5d955534877a0f7ee

6 years agoobjectcache: Add more hotTTR comments to WANObjectCache
Aaron Schulz [Mon, 23 Oct 2017 22:37:05 +0000 (15:37 -0700)]
objectcache: Add more hotTTR comments to WANObjectCache

Change-Id: I123e5231206350ee51098fcb6528da126d1a86ce

6 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Mon, 23 Oct 2017 20:24:20 +0000 (22:24 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I6b0ec9e393e8f8af256a7dd7f833312d6acb5504

6 years agoAdd action/user tracking to link refresh jobs
Aaron Schulz [Thu, 19 Oct 2017 20:10:14 +0000 (13:10 -0700)]
Add action/user tracking to link refresh jobs

Change-Id: Ie7261eacddb869988b005ba2f17968df88c7003e

6 years agoMerge "resources: Deprecate the 'jquery.badge' module"
jenkins-bot [Mon, 23 Oct 2017 17:43:26 +0000 (17:43 +0000)]
Merge "resources: Deprecate the 'jquery.badge' module"

6 years agoAdd missing @throws documentation to Language::factory
Thiemo Mättig [Mon, 23 Oct 2017 09:33:38 +0000 (11:33 +0200)]
Add missing @throws documentation to Language::factory

Change-Id: Id5ff9d438864e2d39a10441c43aba4188191f623

6 years agoLocalFile: Fix copy-paste error
Brad Jorsch [Mon, 23 Oct 2017 16:20:50 +0000 (12:20 -0400)]
LocalFile: Fix copy-paste error

No idea how that got through.

Change-Id: Ic7eebe624434005ff962f19eaa85cdf40e131284

6 years agoMerge "SpecialEmailUser: Don't increment pingLimiter() just for opening the page"
jenkins-bot [Mon, 23 Oct 2017 13:54:06 +0000 (13:54 +0000)]
Merge "SpecialEmailUser: Don't increment pingLimiter() just for opening the page"

6 years agoSpecialEmailUser: Don't increment pingLimiter() just for opening the page
Kunal Mehta [Fri, 6 Oct 2017 07:36:07 +0000 (00:36 -0700)]
SpecialEmailUser: Don't increment pingLimiter() just for opening the page

When checking whether the user can even send am email, don't increment
the rate limits since they haven't sent an email yet. Only increment it
once we're fairly sure that the email will actually get sent.

Bug: T177575
Change-Id: I3f832accd6259c040438ebee4c94847faa108ea6

6 years agoMerge "RCFilters: Truncate saved query menu item"
jenkins-bot [Mon, 23 Oct 2017 11:53:25 +0000 (11:53 +0000)]
Merge "RCFilters: Truncate saved query menu item"

6 years agoMerge "Fix changes list misaligned arrow"
jenkins-bot [Mon, 23 Oct 2017 11:24:37 +0000 (11:24 +0000)]
Merge "Fix changes list misaligned arrow"

6 years agoRCFilters: Display specific error if query times out
Matthew Flaschen [Mon, 18 Sep 2017 11:42:07 +0000 (07:42 -0400)]
RCFilters: Display specific error if query times out

This catches DBQueryTimeoutError, logs it, returns HTTP 500,
and displays an error message.

Live update just ignores it (effectively treating it the same as
a live update check that happens to have no updates).

Bug: T175776
Change-Id: If4d880e9e6a56989895956798fc6918a43841065

6 years agoMerge "Remove @codingStandardsIgnore from long lines"
jenkins-bot [Mon, 23 Oct 2017 02:07:48 +0000 (02:07 +0000)]
Merge "Remove @codingStandardsIgnore from long lines"

6 years agoMerge "Remove @codingStandardsIgnore after upstream fix"
jenkins-bot [Mon, 23 Oct 2017 02:06:31 +0000 (02:06 +0000)]
Merge "Remove @codingStandardsIgnore after upstream fix"

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

Change-Id: I639918d677a9ca7cfe9115fa0223c1abbf1884c8

6 years agoRemove @codingStandardsIgnore from long lines
Umherirrender [Sun, 22 Oct 2017 14:44:04 +0000 (16:44 +0200)]
Remove @codingStandardsIgnore from long lines

Breaks some line where the ignore is not needed.

The sniff was changed upstream to be okay
with long unbreakable lines in comments

Change-Id: I2bbe2be7cedd4d3c0ce8dc3e62d0e268bc171876

6 years agoRemove @codingStandardsIgnore after upstream fix
Umherirrender [Sun, 22 Oct 2017 14:25:00 +0000 (16:25 +0200)]
Remove @codingStandardsIgnore after upstream fix

Issue #1604 was fixed -
https://github.com/squizlabs/PHP_CodeSniffer/issues/1604

Change-Id: Id81cb820e42123007ae8696422bebf588e274437

6 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sat, 21 Oct 2017 22:09:46 +0000 (00:09 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I8e1401909269c4d0375ad61c77cc29993f02a2ce

6 years agoMerge "Use LogFormatter::getLinkRenderer in LogFormatter extensions"
jenkins-bot [Sat, 21 Oct 2017 17:13:44 +0000 (17:13 +0000)]
Merge "Use LogFormatter::getLinkRenderer in LogFormatter extensions"

6 years agobuild: Updating mediawiki/mediawiki-codesniffer to 14.1.0
Paladox [Sat, 21 Oct 2017 02:18:40 +0000 (02:18 +0000)]
build: Updating mediawiki/mediawiki-codesniffer to 14.1.0

And moved phpcs.xml to .phpcs.xml (T177256).

Change-Id: Idaa1fe006a528c25ce34abd0a857c657c26e8b0f

6 years agoMerge "Switch DifferenceEngine to the new shell framework"
jenkins-bot [Sat, 21 Oct 2017 00:23:47 +0000 (00:23 +0000)]
Merge "Switch DifferenceEngine to the new shell framework"

6 years agoMerge "Check minimum database server version when running update.php"
jenkins-bot [Fri, 20 Oct 2017 23:57:51 +0000 (23:57 +0000)]
Merge "Check minimum database server version when running update.php"

6 years agoresources: Deprecate the 'jquery.badge' module
James D. Forrester [Fri, 20 Oct 2017 23:31:18 +0000 (16:31 -0700)]
resources: Deprecate the 'jquery.badge' module

Only used in the PageTriage extension, which can provide it itself:

https://github.com/search?utf8=%E2%9C%93&q=%22jquery.badge%22+%40wikimedia+-repo%3Awikimedia%2Fjquery.badge+-repo%3Awikimedia%2Fmediawiki-debian&type=Code

Bug: T178450
Change-Id: Ibe4ff6a1f39fc554dcf4fc20cc214521d854f1ec

6 years agoSwitch DifferenceEngine to the new shell framework
Max Semenik [Tue, 17 Oct 2017 06:53:50 +0000 (23:53 -0700)]
Switch DifferenceEngine to the new shell framework

Change-Id: Iad8718e5f54ed829efded8efbb0f3496c119e6ad

6 years agoMerge "Hard deprecate Title::escapeFragmentForURL()"
jenkins-bot [Fri, 20 Oct 2017 22:12:56 +0000 (22:12 +0000)]
Merge "Hard deprecate Title::escapeFragmentForURL()"

6 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Fri, 20 Oct 2017 19:57:30 +0000 (21:57 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I40093d586318b7bceddbe982bb0c71dfeb76dc79

6 years agoMerge "objectcache: Split off some code in WANObjectCache::getWithSetCallback"
jenkins-bot [Fri, 20 Oct 2017 17:18:39 +0000 (17:18 +0000)]
Merge "objectcache: Split off some code in WANObjectCache::getWithSetCallback"

6 years agoobjectcache: Split off some code in WANObjectCache::getWithSetCallback
Aaron Schulz [Thu, 19 Oct 2017 04:00:29 +0000 (21:00 -0700)]
objectcache: Split off some code in WANObjectCache::getWithSetCallback

This makes it a bit easier to follow

Change-Id: I67968814ab046473eb8eca4086a8600c77417b82

6 years agoMerge "Set getDeduplicationInfo() for HTMLCacheUpdateJob"
jenkins-bot [Fri, 20 Oct 2017 05:56:19 +0000 (05:56 +0000)]
Merge "Set getDeduplicationInfo() for HTMLCacheUpdateJob"

6 years agoSet getDeduplicationInfo() for HTMLCacheUpdateJob
Aaron Schulz [Thu, 19 Oct 2017 19:39:56 +0000 (12:39 -0700)]
Set getDeduplicationInfo() for HTMLCacheUpdateJob

This allows de-duplication of single page jobs for the
same page due to edits to different templates. This is
the same logic that RefreshLinksJob already has.

Also fix a bug in that method in RefreshLinksJob.

Change-Id: I2f79031c945eb3d195f9dbda949077bbc3e67918

6 years agoMerge "objectcache: Mention colons in BagOStuff key generation"
jenkins-bot [Fri, 20 Oct 2017 03:32:02 +0000 (03:32 +0000)]
Merge "objectcache: Mention colons in BagOStuff key generation"

6 years agoobjectcache: Mention colons in BagOStuff key generation
Aaron Schulz [Wed, 18 Oct 2017 21:25:23 +0000 (14:25 -0700)]
objectcache: Mention colons in BagOStuff key generation

Change-Id: I76967245c32aac4eea8d6672e4fc1fac5e5f3d07

6 years agoMerge "Shell\Command: Move code that builds final shell command into separate method"
jenkins-bot [Fri, 20 Oct 2017 03:08:54 +0000 (03:08 +0000)]
Merge "Shell\Command: Move code that builds final shell command into separate method"

6 years agoShell\Command: Move code that builds final shell command into separate method
Kunal Mehta [Wed, 18 Oct 2017 04:49:46 +0000 (21:49 -0700)]
Shell\Command: Move code that builds final shell command into separate method

Change-Id: I6aae209fd0b20057b5f7f7129db92c184ec945f8

6 years agoMerge "RCFilters: Actually toggle the collapsed class for toplinks"
jenkins-bot [Thu, 19 Oct 2017 23:11:58 +0000 (23:11 +0000)]
Merge "RCFilters: Actually toggle the collapsed class for toplinks"

6 years agoRCFilters: Actually toggle the collapsed class for toplinks
Moriel Schottlender [Thu, 19 Oct 2017 18:58:16 +0000 (11:58 -0700)]
RCFilters: Actually toggle the collapsed class for toplinks

Bug: T178396
Change-Id: I2206816540342012296669f8dd24ab44762f4788

6 years agoFix changes list misaligned arrow
petarpetkovic [Thu, 19 Oct 2017 20:54:45 +0000 (22:54 +0200)]
Fix changes list misaligned arrow

- Revert td alignment from middle to top.
- Add top padding to fix misalignment.

Bug: T178595
Change-Id: I1211b7afe1c29b0a33c051c07921eed7eb9704e3

6 years agoRCFilters: Truncate saved query menu item
Moriel Schottlender [Thu, 19 Oct 2017 19:08:27 +0000 (12:08 -0700)]
RCFilters: Truncate saved query menu item

Bug: T178610
Change-Id: I787237beb2f08a01bd9c6885c75401bacfcc6f9b

6 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Thu, 19 Oct 2017 20:02:48 +0000 (22:02 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: If6a368d96b689c022f5a0f4b835628ddef0a2b41

6 years agoMerge "RCFilters: refactor highlight state"
jenkins-bot [Thu, 19 Oct 2017 19:39:04 +0000 (19:39 +0000)]
Merge "RCFilters: refactor highlight state"

6 years agoRCFilters: refactor highlight state
Stephane Bisson [Thu, 5 Oct 2017 20:10:42 +0000 (16:10 -0400)]
RCFilters: refactor highlight state

* Consider highlight to be enabled when applying
  parameters that contain highlight colors.

* Don't store 'highlight=0|1' in the URL or
  saved query.

Bug: T177009
Change-Id: I8f3a1c609cef89bc08077776d453ced6f2d0f5e2

6 years agoMerge "resourceloader: Introduce metric for backend response timing"
jenkins-bot [Thu, 19 Oct 2017 17:17:12 +0000 (17:17 +0000)]
Merge "resourceloader: Introduce metric for backend response timing"

6 years agoMerge "jquery.badge: Align with Echo notifications style and WikimediaUI palette"
jenkins-bot [Wed, 18 Oct 2017 23:19:31 +0000 (23:19 +0000)]
Merge "jquery.badge: Align with Echo notifications style and WikimediaUI palette"

6 years agoMerge "Make $wgExperimentalHtmlIds fall back on modern HTML5 mode"
jenkins-bot [Wed, 18 Oct 2017 22:06:06 +0000 (22:06 +0000)]
Merge "Make $wgExperimentalHtmlIds fall back on modern HTML5 mode"

6 years agomediawiki.ui: Remove remainder `text-shadow`
Volker E [Wed, 18 Oct 2017 20:45:11 +0000 (13:45 -0700)]
mediawiki.ui: Remove remainder `text-shadow`

The `text-shadow` property on primary buttons was probably introduced
for a fake 3D effect and also because the colors were lighter in
order to set the white text apart. None of this is true with our
WikimediaUI color palette any more so let's remove this remainder.

Change-Id: I25e5ce7e6fafc19d8b925b6918c98dd61b423d64

6 years agoMerge "RCFilters: rephrase newcomers description"
jenkins-bot [Wed, 18 Oct 2017 20:04:58 +0000 (20:04 +0000)]
Merge "RCFilters: rephrase newcomers description"

6 years agoMerge "RCFilters: define consistent interface in ChangesListFilterGroup"
jenkins-bot [Wed, 18 Oct 2017 20:04:55 +0000 (20:04 +0000)]
Merge "RCFilters: define consistent interface in ChangesListFilterGroup"

6 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Wed, 18 Oct 2017 19:55:10 +0000 (21:55 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Ic1284de8147baa9a8436621bc2e3d1de4037a920

6 years agoRCFilters: define consistent interface in ChangesListFilterGroup
Stephane Bisson [Wed, 18 Oct 2017 10:28:43 +0000 (06:28 -0400)]
RCFilters: define consistent interface in ChangesListFilterGroup

Get rid of isPerGroupRequestParameter and define a consistent
interface that all filter groups can implement.

Change-Id: Ib904bcdc697c65722a0041ac611d1e00c577389f

6 years agoMerge "jQuery: Remove jQuery 1 legacy option"
jenkins-bot [Wed, 18 Oct 2017 19:32:35 +0000 (19:32 +0000)]
Merge "jQuery: Remove jQuery 1 legacy option"

6 years agoMerge "Revision tests, make test for constructFromRowArray a unit test"
jenkins-bot [Wed, 18 Oct 2017 18:06:45 +0000 (18:06 +0000)]
Merge "Revision tests, make test for constructFromRowArray a unit test"

6 years agoMerge "RevisionIntegrationTest more newFromArchiveRow tests"
jenkins-bot [Wed, 18 Oct 2017 18:06:42 +0000 (18:06 +0000)]
Merge "RevisionIntegrationTest more newFromArchiveRow tests"

6 years agoMerge "RevisionUnitTest::testConstructFromArray @covers tags"
jenkins-bot [Wed, 18 Oct 2017 18:06:38 +0000 (18:06 +0000)]
Merge "RevisionUnitTest::testConstructFromArray @covers tags"

6 years agoMerge "Update the translation for MessagesKo.php"
jenkins-bot [Wed, 18 Oct 2017 17:14:02 +0000 (17:14 +0000)]
Merge "Update the translation for MessagesKo.php"

6 years agoRCFilters: fix stylelint error
Stephane Bisson [Wed, 18 Oct 2017 15:15:57 +0000 (11:15 -0400)]
RCFilters: fix stylelint error

Not sure how this got merged but it's reported as an error
locally.

Change-Id: I7cd1a9442ea07cf6e4595ff4a3611a0b682a4e6e

6 years agoMerge "Fix missingcommenttext message to be more useful in different page layouts"
jenkins-bot [Wed, 18 Oct 2017 14:24:26 +0000 (14:24 +0000)]
Merge "Fix missingcommenttext message to be more useful in different page layouts"

6 years agoFix missingcommenttext message to be more useful in different page layouts
Deskana [Wed, 18 Oct 2017 14:11:58 +0000 (15:11 +0100)]
Fix missingcommenttext message to be more useful in different page layouts

This missingcommenttext message makes reference to a specific page layout,
which it shouldn't given the UI can be skinned in a variety of different
ways. This patch removes the specific reference to "below", which wasn't
particularly helpful anyway.

Bug: T158262
Change-Id: Ieb81db162bee6010e85b17355059e18ad447751e

6 years agoRCFilters: rephrase newcomers description
Stephane Bisson [Wed, 18 Oct 2017 12:27:29 +0000 (08:27 -0400)]
RCFilters: rephrase newcomers description

Bug: T178334
Change-Id: I76a805acae4b7c6efa3707fa6c203e72c2e29ea2

6 years agoReplace deprecated edit review params
petarpetkovic [Tue, 17 Oct 2017 13:22:46 +0000 (15:22 +0200)]
Replace deprecated edit review params

- Replace old options 'hideanons' or 'hideliu' with structured UI equivalent.
- Update tests to take this new behavior into account.

Bug: T176172
Change-Id: I6ad050f7864bf51db05c3db957ac3533358cd3ac

6 years agoMerge "Database: Support parenthesized JOINs"
jenkins-bot [Wed, 18 Oct 2017 08:30:02 +0000 (08:30 +0000)]
Merge "Database: Support parenthesized JOINs"

6 years agoMerge "Replace more uses of "SELECT *""
jenkins-bot [Wed, 18 Oct 2017 06:34:46 +0000 (06:34 +0000)]
Merge "Replace more uses of "SELECT *""

6 years agoHard deprecate Title::escapeFragmentForURL()
Max Semenik [Wed, 18 Oct 2017 06:29:15 +0000 (23:29 -0700)]
Hard deprecate Title::escapeFragmentForURL()

No usages in core and only one outside of core, being
fixed in If1191817ee2db84d8fd3b91aa13e6257faf10a41.

Change-Id: I91ca289e989a4dc32de083b9cc002c9c9d75a3e1

6 years agojquery.badge: Align with Echo notifications style and WikimediaUI palette
Volker E [Wed, 18 Oct 2017 05:10:15 +0000 (22:10 -0700)]
jquery.badge: Align with Echo notifications style and WikimediaUI palette

Aligning badge style to Echo notifications, ensuring WCAG level AA conformance
and also to WikimediaUI color palette.

Bug: T152025
Change-Id: I279a607f3c1b13ea6e21e59df0c6d21e525f587e

6 years agoIntroduce Shell\CommandFactory
Max Semenik [Sat, 7 Oct 2017 02:26:52 +0000 (19:26 -0700)]
Introduce Shell\CommandFactory

Bug: T177038
Change-Id: Id875e68ea1fa72b44a463f977ab52270fe1e7088

6 years agoDon't trigger PHP errors for unused Shell\Command
Max Semenik [Wed, 18 Oct 2017 01:54:17 +0000 (18:54 -0700)]
Don't trigger PHP errors for unused Shell\Command

Change-Id: Id29da4f21a44ccb18d8a2ae11348d69ca3233aa5

6 years agoCommand: Avoid using wfDebug()
Kunal Mehta [Wed, 18 Oct 2017 01:22:42 +0000 (18:22 -0700)]
Command: Avoid using wfDebug()

Change-Id: I92ea55d7a5b6a71a6f6b944f377215c08ea3b096

6 years agoUpdate OOjs UI to v0.24.0
Volker E [Wed, 18 Oct 2017 00:13:34 +0000 (17:13 -0700)]
Update OOjs UI to v0.24.0

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

Depends-on: Iad57bf4f6306086cb775629f2d9f2fcf2dbcf5fd
Change-Id: Idf2bed0a1719f8a30bcc66211cbeedd2bb31ec4b

6 years agoMerge "Add a few schemas to SQLite tests"
jenkins-bot [Tue, 17 Oct 2017 22:37:31 +0000 (22:37 +0000)]
Merge "Add a few schemas to SQLite tests"

6 years agoRevision tests, make test for constructFromRowArray a unit test
addshore [Tue, 17 Oct 2017 12:09:08 +0000 (13:09 +0100)]
Revision tests, make test for constructFromRowArray a unit test

Change-Id: I52aa62a442011b612966bb294015730a05702cd3

6 years agoRevisionIntegrationTest more newFromArchiveRow tests
addshore [Tue, 17 Oct 2017 11:35:28 +0000 (12:35 +0100)]
RevisionIntegrationTest more newFromArchiveRow tests

There were a couple of code paths that were not tested before
for different combinations of selected fields, these are now
covered.

Change-Id: Ifd438e5c97a5f32a1744c58bd4cf0303ddb32cfc