Commit graph

77111 commits

Author SHA1 Message Date
jenkins-bot
8ddf721b6f Merge "Remove "@author Bryan Davis" and "Brad Jorsch" annotations" 2017-06-27 06:02:23 +00:00
jenkins-bot
cd5397fb0e Merge "RCFilters: Add 'single_option' group type" 2017-06-27 00:29:48 +00:00
Moriel Schottlender
5ed72ed54c RCFilters: Add 'single_option' group type
Group type that only allows a single option to be selected
from its range of items.

Bonus: Add the ability to have a view that is hidden from
the menus

Bug: T162784
Bug: T162786
Change-Id: Ide93491a49c1405926ac171c7924a469e94c0e0a
2017-06-27 00:16:46 +00:00
jenkins-bot
16a9c7076f Merge "Replace some usages of Linker::link with LinkRenderer" 2017-06-26 22:56:45 +00:00
jenkins-bot
c830f9653b Merge "RCFilters: Invert the muted state of inverted namespace options" 2017-06-26 22:46:47 +00:00
Moriel Schottlender
4962ccf430 RCFilters: Invert the muted state of inverted namespace options
Since the inversion happened, the background of selected items was
overridden by "muted" background, so we had to change a few more
details to get things to work properly:
- Override selected color even if the item is muted (previously,
  'selected' cannot be muted by definition, but this patch changes
  that and hence needs to make sure selected color overrides the
  muted color state)
- Set correct muted state on the namespace items to be reversed.
- The highlight/select/mute background issue exposed a secondary
  issue when switching views by clicking the 'tag' item, whereby
  the change of view itself causes the input to empty, and triggers
  the updateItemVisibility in MenuSelectWidget, which then selects
  the first item. This shouldn't happen when the user is actively
  selecting an item from the tags, so a method of recognizing that
  the user is actively selecting an item was added.

Change-Id: Idf5c2232216ad6a38b29bbc103bbca66f56533b7
2017-06-26 15:03:01 -07:00
Bryan Davis
aaf1e17088 Remove "@author Bryan Davis" and "Brad Jorsch" annotations
Undo traces of a practice we carried over from past projects and
existing examples that is neither universal nor actively encouraged in
the MediaWiki codebase.

Bug: T139301
Change-Id: I5c9c89b72a45a44aa4264a5e57b003c1a86cdf6e
Co-Authored-By: Brad Jorsch <bjorsch@wikimedia.org>
2017-06-26 15:25:46 -06:00
jenkins-bot
5134784294 Merge "mw.filewarning: Increase the area of the warning button" 2017-06-26 20:25:38 +00:00
jenkins-bot
7ece93cc81 Merge "mediawiki.Title: Remove needless $.type() and minor clean up" 2017-06-26 20:21:18 +00:00
Translation updater bot
7697f1f120 Localisation updates from https://translatewiki.net.
Change-Id: I457987aceec9e936608988e63a88686d1e98675d
2017-06-26 21:56:04 +02:00
Bartosz Dziewoński
a12d8aeb22 mw.filewarning: Increase the area of the warning button
So that the user can move the mouse cursor to the popup
without the popup disappearing.

Bug: T157544
Change-Id: Ide9db6f6fd092caeea1bacfc97ec79f9acc3793e
2017-06-26 18:26:34 +02:00
jenkins-bot
3f849d695f Merge "Parser: Emit deprecation warnings for ParserLimitReport hook" 2017-06-26 15:05:22 +00:00
jenkins-bot
aae0c8d425 Merge "Perform input validation for file $page at some strategic locations" 2017-06-26 06:55:16 +00:00
Prateek Saxena
2e600acf4a docs: Use oojs-ui-wikimediaui, instead of -mediawiki
Change-Id: Iac6a526c928fe384f5f7df5af6b0156146bf2f33
2017-06-26 09:23:30 +05:30
Translation updater bot
9ae366604c Localisation updates from https://translatewiki.net.
Change-Id: I3311079076af3f9bad7b06c4ac0a532a2ecd75ba
2017-06-25 22:08:15 +02:00
jenkins-bot
15a57aaa1d Merge "Update weblinks in comments to msdn.microsoft.com" 2017-06-25 10:35:55 +00:00
jenkins-bot
f4d222850d Merge "Rename canTalk methods" 2017-06-25 10:25:55 +00:00
jenkins-bot
325e344774 Merge "Parser: Ensure function and tag hook callbacks are callable upon registration" 2017-06-25 10:24:58 +00:00
jenkins-bot
999351249b Merge "FileDeleteForm: Create log entry even if the page didn't exist" 2017-06-25 10:15:42 +00:00
daniel
f8ac44cca5 Rename canTalk methods
This renames Title::canTalk to Title::canHaveTalkPage
and MWNamespace::canTalk to MWNamespace::hasTalkNamespace.

Bug: T165149
Change-Id: I342a273a497b31282388b13bf76dadfb1122dcbb
2017-06-25 10:15:30 +00:00
daniel
5d528f39d8 Parser: Ensure function and tag hook callbacks are callable upon registration
This is to safeguard against issues like T167238, where the callback was invalid,
but was only noticed when the magic word was used in an article.

In general, type checks should be applied when things get
registered for later use. Fail early, stay sane.

Change-Id: Ifb7005ee214829c98cec534261c0db7d13f50f35
2017-06-25 10:11:12 +00:00
jenkins-bot
015a4ef4db Merge "API: Allow deleting files without corresponding pages" 2017-06-25 10:08:32 +00:00
Umherirrender
e273e3d292 Remove newline at end from english messages
Newline get lost on translation, but it seems there are not needed.

Change-Id: I51cfc598052d4d9b457c2d7a4f25178d580d8ee3
2017-06-25 01:40:22 +02:00
Translation updater bot
352a55a509 Localisation updates from https://translatewiki.net.
Change-Id: I18ef4dcda34a029f16c6a85c3474eeef6a71502b
2017-06-24 22:11:00 +02:00
Kunal Mehta
613ae1c3f2 Parser: Emit deprecation warnings for ParserLimitReport hook
Change-Id: I351f0867132acf8d5cc9ee51b575744445b28b77
2017-06-23 17:37:31 -07:00
Timo Tijhof
3b8aa08d17 mediawiki.Title: Remove needless $.type() and minor clean up
* Use typeof instead of $.type() for primitives.
* Remove needless type check before instanceof.
* Use early-return pattern.

Change-Id: Ibfdbc3912961fd017cefb7115951f07b92f6d435
2017-06-24 01:24:00 +01:00
jenkins-bot
d8653d2758 Merge "API: Fix capitalization of SpecialRecentChanges* classes" 2017-06-23 21:35:47 +00:00
Translation updater bot
788b6f88f4 Localisation updates from https://translatewiki.net.
Change-Id: Id56fbcea3887cfa2a0ba2a3bdc83a180c20bdc92
2017-06-23 21:55:33 +02:00
Kunal Mehta
6f9da77151 API: Fix capitalization of SpecialRecentChanges* classes
And use the magic ::class instead of plain strings.

Noticed by logging added for T166759.

Change-Id: I7694c272c255b5b1f7455e55e70ecc240a4ba61c
2017-06-23 12:23:55 -07:00
Kunal Mehta
d23f73c920 SpecialContributions: Fix capitalization of DateInputWidget class
The namespace was improperly capitalized, move it to a "use" statement
while we're at it so it's only included once.

Noticed by the logging added for T166759.

Change-Id: I3fe6533a0f06dcbc37017361679dad9e77808830
2017-06-23 12:13:02 -07:00
jenkins-bot
8f9d52dafe Merge "RCFilters: Unify reading filters by views and adjust unit tests" 2017-06-23 18:39:02 +00:00
jenkins-bot
f1c48a9d21 Merge "RCFilters: Change the input icon on interaction" 2017-06-23 18:35:45 +00:00
Moriel Schottlender
08703ee29f RCFilters: Unify reading filters by views and adjust unit tests
- Have the initialization method read filters by views and treat
  all filters, regardless of their views, the exact same, including
  evaluating their subsets and conflicts.
- Clean up unit test file and make pass with the new initialization.

Change-Id: I200720ffde8ad8ff7a63d0cd82615d358e74949a
2017-06-23 11:17:37 -07:00
jenkins-bot
acc60f3449 Merge "Set $wgGalleryOptions in Setup.php" 2017-06-23 15:05:29 +00:00
jenkins-bot
18843ac056 Merge "Use $.noop instead of function () {}" 2017-06-23 11:42:26 +00:00
Matthias Mullie
8ea782202d Set $wgGalleryOptions in Setup.php
Defaults will be added to the config array at a later point,
without overriding any that have already been set.
This'll make it less prone to errors in case $wgGalleryOptions
is incomplete.

Bug: T168479
Change-Id: I5f127e5ac8c8a1583301dd7aed2ae8e434987950
2017-06-23 13:33:23 +02:00
jenkins-bot
434de9e8ff Merge "resourceloader: Backport jquery-migrate.js patch for exceptionHook" 2017-06-23 11:32:13 +00:00
Fomafix
4626e7ddb1 Use $.noop instead of function () {}
$.noop (https://api.jquery.com/jQuery.noop/) already provides an empty
function.

Change-Id: I7f1ca20a894d0469cb7bcb72c81722070e040956
2017-06-23 08:53:53 +02:00
jenkins-bot
f470fd3982 Merge "RCFilters: Reposition TagItemWidget to be center on the widget" 2017-06-23 00:24:13 +00:00
jenkins-bot
886b625f1f Merge "RCFilters: Have the model accept multiple views" 2017-06-23 00:18:15 +00:00
jenkins-bot
9def51e9d6 Merge "RCFilters: Correct unbalanced margins in active filters display" 2017-06-23 00:12:02 +00:00
jenkins-bot
10416149ea Merge "RCFilters: Remove view triggers before checking emptiness of string" 2017-06-23 00:11:19 +00:00
jenkins-bot
19ca7f2fdb Merge "RCFilters: Change to the new views redesign" 2017-06-23 00:06:46 +00:00
Moriel Schottlender
a267e4ef04 RCFilters: Change to the new views redesign
- Allow for multiple footers for the menu, each configured
  for its own view (or multiple views)
- Move the switch view buttons to the right of the input
- Add a 'back' button on the menu header when we're in
  advanced filters view, moving back to default view

Bug: T167384
Change-Id: I9fd0243f88f92ddacb4c912ff974f7d325f32f5d
2017-06-22 23:50:59 +00:00
Timo Tijhof
a77525e56a resourceloader: Backport jquery-migrate.js patch for exceptionHook
jQuery Migrate has to monkey-patch jQuery.Deferred, but in doing so
it also effectively disables exceptionHook, which means exceptions
are no longer logged to the console.

<https://github.com/jquery/jquery-migrate/pull/262>

Bug: T168086
Change-Id: Id46abcc7fb5e65954532b114636bf0f1f000a551
2017-06-22 23:49:56 +01:00
jenkins-bot
7b89e51826 Merge "RCFilters: Actually recognize a saved query default and delete when removed" 2017-06-22 22:48:14 +00:00
jenkins-bot
f0f0365941 Merge "Fix the tableExists method of MysqlBase" 2017-06-22 21:24:17 +00:00
mainframe98
b1c34a25df Fix the tableExists method of MysqlBase
The table name generated by Database::tableName() does not work in
MysqlBase's tableExist method, as the syntax of SHOW TABLES does not
function like other foreign db queries. It instead should use FROM
$database rather than the database name in front of the table name.

Bug: T168207
Change-Id: I7806090eaa647959fd34de8bc606eeb952161529
2017-06-22 21:12:47 +00:00
Translation updater bot
bb6b2e5edc Localisation updates from https://translatewiki.net.
Change-Id: Ie2c6873b323f3668546ee1467865fdb342900a77
2017-06-22 22:02:22 +02:00
Moriel Schottlender
11d7c69377 RCFilters: Have the model accept multiple views
Organize the way we create and process multiple views, to stop
hard-coding namespaces and tags.

Change-Id: Ib28c166052781b23a3b35c1b7b0af7d26f102e3f
2017-06-22 11:31:57 -07:00