Commit graph

79439 commits

Author SHA1 Message Date
jdlrobson
4e7021a231 Provide message/warning/error box abstraction
This will help us consolidate the various uses into one single
method which will help us drive standardisation of these defacto
widgets.

Hopefully, by being a method of the Html class, which has a very
low barrier for use will drive down the inconsistent display of
warning/error boxes across MediaWiki's products

Various usages of warningbox and errorbox have been ported over.
I've retained some more complicated usages which make use of the
parser (wrapWikiMsg) and any where id and class are medled with
- we'll probably want to consider whether we want to encourage
those going forward as they encourage adjusting the styling.

Bug: T166915
Change-Id: I2757e1f4ff2599e93a7257fc644cab69063896d2
2017-11-13 23:19:45 +00:00
jenkins-bot
7853da416d Merge "RCFilters: fix call to changesListModel.update()" 2017-11-13 21:49:59 +00:00
Translation updater bot
07e064725e Localisation updates from https://translatewiki.net.
Change-Id: I964eda712b69d542ca230f44ba125f0f29a328a2
2017-11-13 22:04:57 +01:00
jenkins-bot
ea89bd1cf6 Merge "Change disabled saved filter tooltip" 2017-11-13 13:42:11 +00:00
jenkins-bot
1d4bdfeb61 Merge "Use mw-parser-output for content styles, instead of mw-body-content" 2017-11-13 12:49:01 +00:00
jenkins-bot
1b13888ed6 Merge "Change the rfcurl from protocol relative to HTTPS" 2017-11-13 07:30:58 +00:00
Translation updater bot
2fdd6a2fb8 Localisation updates from https://translatewiki.net.
Change-Id: Ic11c64813ee04e8520771bfa156f8e51404273e6
2017-11-12 21:58:56 +01:00
MarcoAurelio
16b8429af7 Document language changes for Mirandese
Bug: T180052
Change-Id: I60d809145678a2cd523776ba8e981da21f6e3ef9
2017-11-12 11:36:06 +00:00
jenkins-bot
cc122862fa Merge "Move watcheditem classes to watcheditem directory" 2017-11-12 05:57:28 +00:00
jenkins-bot
bb6fbc1713 Merge "Remove htmlspecialchars for Html::hidden" 2017-11-11 23:22:42 +00:00
Translation updater bot
5ac19adf08 Localisation updates from https://translatewiki.net.
Change-Id: Ie6054daa2b17649b21f5d1b167d3ce517bc604cc
2017-11-11 21:55:12 +01:00
MarcoAurelio
f3b00b3594 Gendered NS_USER namespaces for Mirandese (mwl)
* Adds gendered NS_USER namespaces for when the user has chosen to
  reveal his or her gender via Special:Preferences.
* Changes the NS_USER namespace to use the gender-neutral
  "Outelizador(a)" in an identical fashion as the Portuguese projects
  do with "Usuário(a)".
* General fixes.

See community consensus in the linked Phabricator Task.

Bug: T180052
Change-Id: I9bac9e6a8cb5b6feee6490cf251342389237bd5c
2017-11-11 18:02:53 +00:00
James D. Forrester
4f8abeabf1 RELEASE-NOTES-1.30: Add upgraded, added libraries based on git history
Change-Id: I4d433f8f75cfe04638adbd60d94346f629cc2f18
2017-11-11 02:23:36 +00:00
Reedy
a6d396bba9 Suggest running composer (install|update) with --no-dev
Change-Id: I1a931b6ac2767aedfc4c71a0ddac460bd3322484
2017-11-11 01:37:10 +00:00
Translation updater bot
1d6097cd36 Localisation updates from https://translatewiki.net.
Change-Id: I244eb49276f46f4b722d381188b527d93295e9d3
2017-11-10 21:55:30 +01:00
jenkins-bot
125f9e1ab4 Merge "Convert @var Array => array" 2017-11-10 20:18:34 +00:00
Stephane Bisson
df30c7d65a RCFilters: fix call to changesListModel.update()
Followup to Ie2bc4fe4bd19103b513e4753e59f4adb295fbafa

3rd argument is
  {string} noResultsDetails Type of no result error
... not a boolean (isTimeout) like it used to.

Change-Id: I7766ed082eb2f4e43a89e3b5c0fb2e61bf5f1169
2017-11-10 14:22:58 -05:00
Daniel Friesen
f695f21d81 Specify an explicit text colour on some components that change the background colour
These components separate themselves from the default colouring of the content
area by specifying a dedicated – typically light grey – background colour.

However they leave text colour unspecified and as a result if the skin should be
white on black instead of black on white this results in these components becoming
white on white or white on light grey and becoming unreadable.

Fix this by explicitly specifying a text colour to use where the background colour is set.

Bug: T66732
Change-Id: I12584de40a18929b610d46dceaea73f06fdc6541
2017-11-10 19:37:30 +01:00
Reedy
ec7549abb8 Updated dev dependancy phpunit/phpunit from v4.8.35 to v4.8.36
Change-Id: Ib800b243541557b3aaab03c10a796dd564f6f3ef
2017-11-10 16:09:40 +00:00
Ed Sanders
cc1d2f631b Use mw-parser-output for content styles, instead of mw-body-content
Change-Id: I8bddeda294b8f52fd71754b63b5afb6d30ff2b7d
2017-11-10 15:49:16 +00:00
addshore
c97caafa2e Tests for Revision::decompressRevisionText
Bug: T180210
Change-Id: I21f6bb02757bcf59ce483e7d61685d372f134048
2017-11-10 14:11:59 +00:00
addshore
aab3e3be88 Run RevisionIntegrationTest for both ContentHandlerUseDB settings
core used to have a test case that ran various Revision tests
with and without ContentHandlerUseDB set, however it did not
run due to the class / file having a bad name.

This patch reintroduces the running on Revision tests for both
ContentHandlerUseDB settings.

The global has to be set in setup / before the page used for
testing is created, else this page will be created with the
wrong values in the DB for use in the tests.

Change-Id: Ied1023e22eeac413fa86ea6946aa31619fd66319
2017-11-10 14:11:17 +00:00
addshore
b6fe73db32 Make Revision::testIsUnpatrolled more reliable
Bug: T180210
Change-Id: Ib88c39527fafefdaafdb05c944716b5a1449cf1b
2017-11-10 13:58:01 +00:00
Aaron Schulz
e0ff77f130 Convert @var Array => array
Change-Id: Ie5c2d7b8e73cce74af982a5c54b0d487a7f6981d
2017-11-09 22:40:40 -08:00
jenkins-bot
1c421c155f Merge "Rewrite userOptions.php" 2017-11-10 06:24:34 +00:00
jenkins-bot
f489fe483d Merge "Setup: Include StartProfiler before others" 2017-11-10 04:23:41 +00:00
jenkins-bot
40e0c6560e Merge "Merge ProfilerFunctions into GlobalFunctions" 2017-11-10 04:23:38 +00:00
jenkins-bot
eb136047ff Merge "Sync up with Parsoid parserTests.txt" 2017-11-10 01:07:59 +00:00
Timo Tijhof
25d3185dde Setup: Include StartProfiler before others
Bug: T180183
Change-Id: Ibcf78d094cf4dcf09bc919a5f8168f45ae225ebc
2017-11-09 16:35:19 -08:00
Timo Tijhof
fbfc69f5da Merge ProfilerFunctions into GlobalFunctions
Even if people use these (deprecated) functions in the earliest hooks or in
LocalSettings.php, it will keep working because GlobalFunctions is loaded
between DefaultSettings.php and LocalSettings.php.

The only places affected would be files in core: AutoLoader.php, Defines.php,
and DefaultSettings.php, which don't use these functions.

Change-Id: If4c0e8cbe1ea918283df22d72f792a3806569216
2017-11-09 16:31:55 -08:00
Aaron Schulz
5547e66d28 Use the main stash for LBFactory "memStash" parameter
This store is used for ChronologyProtector positions.
It should be cross-DC since the sticky DC cookie may not work
for rapid cross-wiki farm activity, causing some request go to
the non-primary DC.

NOTE: this change should be deployed on all farm wikis at once

Change-Id: Ife126592aacace696e43912b9461164a9ea98bc1
2017-11-10 00:31:08 +00:00
Arlo Breault
9ac4ed4b4a Sync up with Parsoid parserTests.txt
This now aligns with Parsoid commit 1d6c39d8f6f5972e72974f8d64e7a0a5c2288bf2

Change-Id: I38d9d47c9cd74257b9bedc892baad90146885ef4
2017-11-09 19:30:38 -05:00
jenkins-bot
b5370206ff Merge "Add action/user tracking to html cache purge jobs" 2017-11-09 22:33:48 +00:00
Max Semenik
3deafe3503 PopulateRecentChangesSource: remove unused variable
Change-Id: I0c1fb623ad508d604c0e7760c2133920ec9a81f8
2017-11-09 22:21:22 +00:00
jenkins-bot
341b0bdb69 Merge "widgets.DateInputWidget: Enhance desktop UX cursor handling" 2017-11-09 21:40:07 +00:00
jenkins-bot
904c3a6202 Merge "widgets.DateInputWidget Align design with WikimediaUI" 2017-11-09 21:40:02 +00:00
Translation updater bot
f71799ca97 Localisation updates from https://translatewiki.net.
Change-Id: Ic3b7173db986c1984b910f00fd95c6fcb761a296
2017-11-09 22:38:25 +01:00
Volker E
9961d2f520 widgets.DateInputWidget: Enhance desktop UX cursor handling
Enhance desktop experience with better cursor handling.

Bug: T169034
Depends-on: I4e0ca6c472e2d6ddbe64eb783acf8c38c5beacc4
Change-Id: Ie4c847caf727051ed5bbcf9937863b007e62d3c7
2017-11-09 21:22:19 +00:00
jenkins-bot
1a07d2aa81 Merge "Escape single quotes in attributes" 2017-11-09 18:28:09 +00:00
addshore
0000ea39a0 Move watcheditem classes to watcheditem directory
Change-Id: If915c875380b4ecd74fad64df7833de87ea6d6f7
2017-11-09 16:16:48 +00:00
Fomafix
d7cef5989b Remove htmlspecialchars for Html::hidden
Html::hidden already makes an HTML escaping of the values.

This is a followup to ff2f868a9.

Change-Id: I6f63494038ffbdde0df34ad5566dfa03707dde46
2017-11-09 17:08:57 +01:00
addshore
9d3cf1c4fc Add tests for various simple Revision get and is methods
These tests dont cover all code paths for these methods
in some cases but it does ensure that tests actually call
them / test basical functionality.

Some of these methods are touched in
I4f24e7fbb683cb51f3fd8b250732bae9c7541ba2
hence adding some test coverage now.

Change-Id: I7eb67cb5876f89034238591c0a98f4ec6d890a40
2017-11-09 13:07:12 +00:00
addshore
858067fec3 Add tests for Revision::getTitle
This method is touched in I4f24e7fbb683cb51f3fd8b250732bae9c7541ba2
hence adding some test coverage now.

Change-Id: Ie39a294546d84413bfb716efb27fd2c0321b349b
2017-11-09 11:48:50 +00:00
addshore
763546fea5 Add tests for Revision::getParentLengths
This method name is quite missleading as it doesnt
get the parent lengths at all, it gets the lengths of
the rev ids that you ask for......

This method is touched in I4f24e7fbb683cb51f3fd8b250732bae9c7541ba2
hence adding some test coverage now.

Change-Id: Ic837bd60a34341860c4d2287a1b999f40d4f95f1
2017-11-09 10:43:37 +00:00
Volker E
87586544f1 widgets.DateInputWidget Align design with WikimediaUI
Aligning DateInputWidget with WikimediaUI theme widgets by:
- using “Red50” color `#d33` from color palette,
- using standard dialog `box-shadow` value,
- ensure handle appearance is similar to standard TextInputWidget,
- align variable name,
- introduce similar variables from WikimediaUI theme, and also
- removing unnecessary properties.
Adding a `max-height` to address vendor specific UI elements for
`type=date` in Chrome.

Bug: T180094
Change-Id: I4e0ca6c472e2d6ddbe64eb783acf8c38c5beacc4
2017-11-08 19:03:02 -08:00
Stephane Bisson
fdd862b6f0 RCFilters: some more highlight cleanup
Change-Id: I81eb3bf86f786c79a94e99d51602d904504f918f
2017-11-08 19:46:45 -05:00
jenkins-bot
9b83841b9b Merge "RCFilters: Don't reload the list if the change was highlights-only" 2017-11-09 00:35:02 +00:00
Max Semenik
47416c0a86 Escape single quotes in attributes
Replaces a long excuse in Html class not to call
Sanitizer::encodeAttribute() with a call to it.
In anything security related, excuses are a sign that you're doing
something wrong:)

Change-Id: Icf7f60d8cd6ea757d8f1999d638b82733001f68a
2017-11-08 15:17:47 -08:00
petarpetkovic
2a28aefa49 Change disabled saved filter tooltip
Bug: T179743
Change-Id: I2359bec7d89c6184dafbb5a1f90ea0f47cccd962
2017-11-09 00:10:04 +01:00
Moriel Schottlender
ad7af7c7e1 RCFilters: Don't reload the list if the change was highlights-only
Bug: T164131
Change-Id: I9952467d0acef84a6445d970977c1265a3ebff95
2017-11-08 13:07:55 -08:00