Commit graph

4633 commits

Author SHA1 Message Date
jenkins-bot fea08f45b8 Merge "Avoid useless error message for regexfailure exception" 2018-10-14 13:47:37 +00:00
jenkins-bot 0109477607 Merge "Open the page for editing warning message in a new tab" 2018-10-14 13:38:33 +00:00
Matěj Suchánek a3cc3dff75 Remove some $wgUser usage
Bug: T159299
Change-Id: I1613e2bb0c551cbadc0c57351fc40bd9e21abf52
Depends-On: I35adef06dfc799cddeddfa6c5eed53b8b1bb7282
Depends-On: Id19a6d883ac6e0cc9c26c923486bca0e414ecaa7
2018-10-14 11:24:52 +02:00
jenkins-bot c2f5540928 Merge "Use fake timestamps for time-related tests" 2018-10-13 22:19:31 +00:00
Translation updater bot 62ba562cf1 Localisation updates from https://translatewiki.net.
Change-Id: I1edd45c34bf89e7ae756d6d2c81a06f046adceac
2018-10-13 10:19:01 +02:00
Daimona Eaytoy cbd57fe7a1 Simplify test parameters
Instead of having lots of huge arrays, use a fixed one and only
overwrite the needed parameters.

Change-Id: I3b2e763bd8835207dc5df1db43d3e1881e6961c3
2018-10-12 16:40:44 +02:00
Daimona Eaytoy f780704d14 Open the page for editing warning message in a new tab
Or in a new window, depending on user settings. In any case, not in the
current window without warning before leaving.

Change-Id: Ia64db1f9491d9cc55bee99321f0f14bd78785140
2018-10-12 10:40:05 +02:00
Translation updater bot c99328a6e6 Localisation updates from https://translatewiki.net.
Change-Id: If02c4105f7681166757c9485a87a2cbbd10940db
2018-10-11 22:37:03 +02:00
jenkins-bot 56fd27461a Merge "Allow selecting custom disallow message" 2018-10-11 18:32:48 +00:00
se4598 9d12e1b353 Allow selecting custom disallow message
You can now select a custom message to be displayed for disallowing a edit
the same way as for warn mode. This can be the same or a totally different
message.

This also solves the usecase, when a edit filter is set to warn AND disallow,
to be able to show the user a custom message, but the generic is shown
on the second try (disallow). Now it can be only set to disallow.

Bug: T27086
Change-Id: Ic1de03a6944c43a346fa317ee0a217551f0d284a
2018-10-11 10:35:01 +02:00
Translation updater bot 4cfc75b4a2 Localisation updates from https://translatewiki.net.
Change-Id: Ie0bcec0db146a5fe8fe181022c4ff7bc49f23cd5
2018-10-10 22:24:02 +02:00
Daimona Eaytoy 2ad63c95ef Use fake timestamps for time-related tests
With the hope to finally unbreak such tests, making them much more
stable and clean.

Bug: T206501
Change-Id: I275a088b9b21f47892b4e3c4cd11ef8680a9e6d9
2018-10-10 20:26:52 +02:00
jenkins-bot f9b0856e32 Merge "Simplify user_age test" 2018-10-10 00:18:07 +00:00
Translation updater bot 3ada124f9f Localisation updates from https://translatewiki.net.
Change-Id: Ie38e5acd230cec906e46898953a5d5c63c22233b
2018-10-09 22:12:42 +02:00
Daimona Eaytoy 70b60e5906 Simplify user_age test
This simplifies the test for user_age, although I'm not totally sure it
will be fixed. AFAICS, there's nothing wrong in there, but we'll see on
future phpunit executions.

Bug: T206501
Change-Id: Iee1a2a65d08c2cffc7a0d655be1eadb018d8bf37
2018-10-09 12:46:47 +02:00
Translation updater bot 82c4654afd Localisation updates from https://translatewiki.net.
Change-Id: Icec8b4f8cd31958fd1f58d05325d28297edc34ca
2018-10-08 23:19:22 +02:00
Daimona Eaytoy eafb4f56c7 Avoid useless error message for regexfailure exception
Users writing filters probably don't care about preg_match or whatever
happens in PHP. Also, it's not that useful to see "unspecified error".

Change-Id: I014742fa6f678126f55ac5ccff38e44b2c5a7d15
2018-10-08 19:19:01 +02:00
Translation updater bot 8d5c51d918 Localisation updates from https://translatewiki.net.
Change-Id: I328cae84216ca1d1e06945bc4dee9f54766978d7
2018-10-06 22:35:05 +02:00
Translation updater bot 80cd32d08a Localisation updates from https://translatewiki.net.
Change-Id: Ie8f3e961dbb80b496a37fd46003a979fbad8da44
2018-10-05 22:59:02 +02:00
Translation updater bot 531357ade3 Localisation updates from https://translatewiki.net.
Change-Id: I658819afb47c1ef94a3bda2a99d04a897209c17d
2018-10-04 22:23:56 +02:00
Translation updater bot b83ed58de4 Localisation updates from https://translatewiki.net.
Change-Id: Ifccf466a50faf9b12de5f4949766668b2c6727cd
2018-10-03 18:52:46 +02:00
Daimona Eaytoy 6d54b83f2c Simplify parser methods
Use a single function to check parameters amount, avoid duplication
between keywordIn and keywordContains, use if...elseif instead of
if-else when statements have a return inside, simplify some other logic,
add typehinting, and change method visibility according to use of such
methods.

Change-Id: I22225a5cbbb93679a0e78bf6e15866829167fbf4
2018-10-03 17:19:40 +02:00
Daimona Eaytoy e60dacbbea Fix code comments
Fixed some comments adding explanations, fixing syntax, and parameter types
for docblocks. Also fixed some whitespace mess, and added a missing use
statement.

Change-Id: I3547c90bdaa2cab5443e8bf0c63b217fe6ba663f
2018-10-03 16:45:03 +02:00
Daimona Eaytoy d9d5af3890 Unbreak short circuit for arrays
This problem have been making filters potentially fail silently since
2009. Also add tests for arrays to make sure that no problems arise
when short circuit is used.

Bug: T204841
Change-Id: Ie4e2e06498c1202ba73afcc5d164a72427abbca5
2018-10-03 16:44:10 +02:00
jenkins-bot 3efc69960c Merge "Fix database schema for PostgreSQL" 2018-10-01 15:43:29 +00:00
Umherirrender 45e6fa932d Fix caller name in AbuseFilterHooks::fetchAllTags
Seeing {closure} in the logs as caller is not helpful

Change-Id: Id3bf5c7fd810d48dc04a167692b336b3ccba2eb4
2018-09-30 14:08:06 +02:00
Umherirrender 4fdd1bbf20 Fix caller name in AFComputedVariable::getLastPageAuthors
Seeing {closure} in the logs as caller is not helpful

Change-Id: I23ee52609510f8efefba8c1ee466d491f468f494
2018-09-30 14:06:04 +02:00
Matěj Suchánek db50bef21e Fix database schema for PostgreSQL
Bug: T62639
Change-Id: I5ddb781a2971677410f4cb96e5fc5964e53c862a
2018-09-29 12:12:52 +02:00
Translation updater bot 237f5170c1 Localisation updates from https://translatewiki.net.
Change-Id: Ic6a3879e7fe507e0c29d3c1791e4120271c33014
2018-09-26 13:45:01 +02:00
Daimona Eaytoy 50d5137880 Remove useless array_filter
Not only it's useless, but also removes the namespace if it's 0, thus
causing the query to only add a WHERE on rc_title, but the index is on
rc_title AND rc_namespace, so the query has bad performance.

Bug: T204228
Change-Id: I33694cfeddbc4eaf39e3e840b207dba433188834
2018-09-24 14:34:53 +02:00
Translation updater bot db432e0c02 Localisation updates from https://translatewiki.net.
Change-Id: Id2f0238963331438cbcd79302b3a0d9f9f186a07
2018-09-24 09:17:39 +02:00
Translation updater bot be68b60614 Localisation updates from https://translatewiki.net.
Change-Id: I66e0abeaf5018ecfe44d54b7a7c5f95ac4906fbe
2018-09-23 10:26:28 +02:00
Translation updater bot 347d51bf61 Localisation updates from https://translatewiki.net.
Change-Id: I08b1770a7be62f4ced1962e4373eafebf0cf65cf
2018-09-22 10:02:58 +02:00
jenkins-bot 70eebbce11 Merge "Move all apihelp translatable messages to separate files" 2018-09-22 00:01:29 +00:00
Daimona Eaytoy 3ab1896dfb Don't send long patterns with GET
The testfilter parameter is useful, but don't use it for long patterns,
to avoid generating broken URLs.

Bug: T204128
Change-Id: If66d3e1704a9a8cc65a750153fc35ac27d24d8cf
2018-09-21 16:29:59 +02:00
Daimona Eaytoy 1634bd1b35 Move changed field styles to TD for history pager
This produces the following results:
*Fields are coloured with red even when empty, to make clear that the
field has been changed and emptied.
*The background color is applied to the whole cell, with no padding.
This is clearer to see, although I don't know if the visual effect is
acceptable (to me, it is).
The weight of CSS rule has to be increased too, since core classes are
loaded first.

Plus, improve a little bit the way changed fields are detected.

Bug: T204650
Change-Id: I1b107e47b3b8b2e23c6f135e0d6f26768c5f39b2
2018-09-21 16:17:36 +02:00
Translation updater bot 7574a291d1 Localisation updates from https://translatewiki.net.
Change-Id: I19f05fab02359140df9e519eef468d265c7bf2de
2018-09-21 10:34:43 +02:00
Jayprakash12345 8ad2203ce0 Move all apihelp translatable messages to separate files
Should be merged along with
Ib66f4614285411e5fd971dc0cb4291ea8113418c

Bug: T189982
Change-Id: Id9beb08ee34e6861543cf59d80abfac616bf9238
2018-09-21 08:21:38 +00:00
jenkins-bot eae59db542 Merge "Fix the block options on ViewEdit" 2018-09-20 11:25:00 +00:00
jenkins-bot d091865878 Merge "Remove unused parameter" 2018-09-20 10:48:12 +00:00
Translation updater bot f73843e721 Localisation updates from https://translatewiki.net.
Change-Id: If3840ab3ffe0e0143383194a33f288ed16091c31
2018-09-20 09:58:26 +02:00
Daimona Eaytoy 9144dbf4a1 Remove unused parameter
Nothing uses it, plus it wouldn't work anyway: AbuseFilterParser
constructor only uses $vars if it's instanceof
AbuseFilterVariableHolder.

Change-Id: Idbf53f6058148e9f0e73beb949e1c028a81663ce
2018-09-19 19:58:30 +02:00
Translation updater bot f7596ccd98 Localisation updates from https://translatewiki.net.
Change-Id: I6e14550f34023f29ddf759cafc8337f6f7eb6efe
2018-09-19 10:00:10 +02:00
Translation updater bot a3d15e039f Localisation updates from https://translatewiki.net.
Change-Id: I9f9a8cdbafde91cc9cbcf2cda7111055ce37d63f
2018-09-18 09:51:46 +02:00
Translation updater bot 91eb5efa90 Localisation updates from https://translatewiki.net.
Change-Id: I29593134ad5a2a573c12ac056c60f80d9f31f0fe
2018-09-17 10:16:41 +02:00
jenkins-bot a813140e44 Merge "Unbreak /examine for old log entries" 2018-09-16 12:00:34 +00:00
jenkins-bot 3902b35a0d Merge "Allow testing account autocreation" 2018-09-16 11:57:41 +00:00
Translation updater bot a88fe64d49 Localisation updates from https://translatewiki.net.
Change-Id: Id5d085d26d56c79551eb2869cb43ac0ddf70b7bd
2018-09-15 09:53:34 +02:00
Daimona Eaytoy fc867a1c5c Allow testing account autocreation
Bug: T204231
Change-Id: If566cfdeb4cdbb78833077da09aeef33754f88d3
2018-09-14 13:09:07 +02:00
Daimona Eaytoy 31729b044e Unbreak /examine for old log entries
For the moment, this is a simple workaround to get them back working.
Ideally we'd also need a maintenance script to update var dumps as I
wrote in the task, but it needs more thinking (see Phab).

Bug: T204236
Change-Id: Ia20a2eb495557f46f789467a96e654ec6cd3f355
2018-09-13 18:42:47 +02:00