Commit graph

5679 commits

Author SHA1 Message Date
Matěj Suchánek 02962b9665 Cleanup abuse log code and join it with revision
This is an intermediate step for better "diff" links
on abuse log. With this first change, only links
to existing revisions are shown.

Change-Id: Ib420d46fd34dc38d8c7fd3d511a905738e49db0b
2020-09-17 16:36:31 +02:00
jenkins-bot 12586812c2 Merge "Hide "User:" prefix from autopromote log entries" 2020-09-17 11:26:57 +00:00
jenkins-bot 6bf5e2ce6f Merge "Standardize the order of options in dropdown filters for search" 2020-09-17 11:26:55 +00:00
jenkins-bot db795bdc55 Merge "Update hook calling to use new HookContainer" 2020-09-17 10:29:54 +00:00
Matěj Suchánek cba29fe85b Hide "User:" prefix from autopromote log entries
Bug: T247173
Change-Id: I40aa888bc45d8274d03eb7ead7bedaf1d087fb1c
2020-09-17 12:12:00 +02:00
DannyS712 9c1868d55e Update hook calling to use new HookContainer
Bug: T254306
Change-Id: Ic5c82a367e34135bbc0f00ece5aeef4f2d92881b
2020-09-17 10:05:45 +00:00
Translation updater bot f3f40572eb Localisation updates from https://translatewiki.net.
Change-Id: I39d74d9dc5195f496ff85d0e5050034b10cd91b5
2020-09-17 08:31:37 +02:00
Huji Lee 43e471d056 Introduce searchFilters.php
A maintenance script that makes it easier for those with shell
access to search for all filters matching a regular expression
pattern on any of the wikis in a wiki farm.

Bug: T262052
Change-Id: Iea9e87a9055c0b1cedd06e8211fc99e3cef53c3a
2020-09-16 09:03:43 -04:00
jenkins-bot 92c3c8dbe1 Merge "Revert "Fix a test which will be broken by Hooks::run() migration"" 2020-09-16 08:10:07 +00:00
Daimona Eaytoy 5d2eaa052c Revert "Fix a test which will be broken by Hooks::run() migration"
This reverts commit be3fbdf347.

Reason for revert: The commit mentioned here was merged a few months ago, so this temporary workaround can now be reverted.

Change-Id: I1e8b4a23b700a2b566c087b8a3ea2229c95bcc3f
2020-09-16 07:06:06 +00:00
jenkins-bot 001d8b92fb Merge "Hardcode 'abusefilter-view' right when adding CU log entry" 2020-09-15 11:16:33 +00:00
jenkins-bot 91f4a1e5a8 Merge "AbuseFilter: Remove duplicate filter log link" 2020-09-15 01:44:59 +00:00
proc 3e5b9f18fd Hardcode 'abusefilter-view' right when adding CU log entry
Bug: T255506
Change-Id: I397e1160d0fee28873ff73404fefa8edd08652ac
2020-09-15 01:20:12 +00:00
Translation updater bot b5329ff07b Localisation updates from https://translatewiki.net.
Change-Id: I05ba96a8c85467e382312036e277e9702b48e8e5
2020-09-14 09:12:00 +02:00
DannyS712 1601bbf0f6 Reduce direct references to $wgUser
Bug: T246733
Change-Id: I2c919fcb01476e8299e15046789023b42cccc6ee
2020-09-13 22:49:46 +00:00
Translation updater bot d8ad49e211 Localisation updates from https://translatewiki.net.
Change-Id: I6b3d7f52fe23681bfb24bc2d3528aec33df5a1ac
2020-09-11 09:38:58 +02:00
Translation updater bot 0b01e50ab7 Localisation updates from https://translatewiki.net.
Change-Id: I9c234a87244d28e6791b3913a9202b2eebfa2070
2020-09-10 09:48:31 +02:00
libraryupgrader 98f808caff build: Updating bl to 4.0.3
* https://npmjs.com/advisories/1555

Change-Id: I936b83bfc7c45dd5c48f2cba9bd5b1c4141688b6
2020-09-09 18:15:30 +00:00
C. Scott Ananian 1bd6f2aa94 AbuseFilterViewEdit: only invoke Language::filterNum on a numeric string
Bug: T237467
Change-Id: I9dcbe91fa926dba1cfd24d9bf075ee1ebef36b9e
2020-09-09 01:38:20 -04:00
Translation updater bot 3577b81a9d Localisation updates from https://translatewiki.net.
Change-Id: Ifa47e3db891ae4bcec9d82a209e00fff270b0dfa
2020-09-08 10:23:07 +02:00
Translation updater bot 2d53fa9783 Localisation updates from https://translatewiki.net.
Change-Id: I8234f4821f68e9d5d4bf4fe11669ecc7d1adc54b
2020-09-06 20:54:31 +02:00
Umherirrender f932ba8328 Use LinkBatchFactory in Special:AbuseLog
Change-Id: I2ccf9cd36475a65e61ad0e80ec159f841849089f
2020-09-06 09:31:49 +00:00
Ammar Abdulhamid 679c777c33 AbuseFilter: Remove duplicate filter log link
For history action, the link would be already added by
HistoryPageToolLinks hook, so it should not be duplicated by this hook.

See images on https://phabricator.wikimedia.org/T261087#6430172

Change-Id: Ia8dd5be49d3ffb48f298ea287e0b2f98c3052015
2020-09-03 17:55:42 +01:00
libraryupgrader 324988568e build: Updating npm dependencies
* eslint-config-wikimedia: 0.16.2 → 0.17.0
* grunt: 1.2.1 → 1.3.0

Change-Id: If5037cda474db1da785bab0ac690bd002a8a1dae
2020-09-03 09:31:08 +00:00
Translation updater bot 08dd82a750 Localisation updates from https://translatewiki.net.
Change-Id: I206bb304960d6ac4a962d2d3f3d340a266bb78e9
2020-08-31 09:47:19 +02:00
jenkins-bot 03f1190bf9 Merge "SpecialAbuseLog: Add redirect=no to page link" 2020-08-31 06:34:01 +00:00
jenkins-bot 08f68c77c2 Merge "Use LogFormatter::getLinkRenderer in AbuseLogHitFormatter" 2020-08-29 00:23:40 +00:00
Umherirrender 64ef0fe00c Use LogFormatter::getLinkRenderer in AbuseLogHitFormatter
Available since 1.30

Change-Id: Ia5e0d5561692f78ac91feca5dddcb67d2809a9ba
2020-08-29 00:03:26 +00:00
DannyS712 f06a632c3d SpecialAbuseLog: Add redirect=no to page link
Bug: T247615
Change-Id: Ifa8f7b949336ae735fd0067dbc2dec15748be7cf
2020-08-28 23:19:54 +00:00
DannyS712 bf0ed6d631 Fix abusefilter-log-cannot-see-private-details
Should be privatedetails, not private-details

Change-Id: I58d8f0ce760e92739876cc783b8dd4258965cd1e
2020-08-28 21:29:37 +00:00
Translation updater bot ad9dad9d24 Localisation updates from https://translatewiki.net.
Change-Id: Icfe53f88a36fde5026f1707519efea6fbc577f7f
2020-08-27 09:51:05 +02:00
Translation updater bot 44d27e63bb Localisation updates from https://translatewiki.net.
Change-Id: Ib461ae4ed0550ce1ddef5bf60d84b74727c8ad93
2020-08-26 09:50:22 +02:00
jenkins-bot e5cefc7d18 Merge "Hard-deprecate a few methods in the AbuseFilter class" 2020-08-25 23:48:33 +00:00
Daimona Eaytoy f673a04026 Add updateVarDumps to update.php
This shouldn't happen before the script has been tested thoroughly on
WMF wikis with --dry-run.

Bug: T213006
Change-Id: I51425c85bd6932a5c60eb870b02195aae1c24117
2020-08-25 12:49:00 +00:00
Translation updater bot c278553f31 Localisation updates from https://translatewiki.net.
Change-Id: Ib40d2f15f355180104bedff28fe5ee6ca9139c2d
2020-08-25 09:45:28 +02:00
Translation updater bot 235ff48f6b Localisation updates from https://translatewiki.net.
Change-Id: Ie2d5eaa07010d6c58668e8a812af55e25a0dfc31
2020-08-24 11:56:39 +02:00
jenkins-bot 14be09701b Merge "Use $user param when filtering edits" 2020-08-20 07:10:52 +00:00
Daimona Eaytoy 28ea0e525a Use $user param when filtering edits
This can be different from the User set inside the $context object, as
seen e.g. in Wikibase jobs. Given that the hook provides a $user param,
it makes more sense to use that, rather than extracting it from the
ContextSource kitchen sink.

Bug: T258717
Change-Id: Ib5961068d3df6ae2bfc3f9c6a7b9e555d248b332
2020-08-19 14:24:57 +02:00
Daimona Eaytoy 5faea5ee58 Add BC hack for some 2009 AbuseLog entries causing a fatal error
Some AbuseLog entries from 2009 are missing the 'timestamp' parameter
used to compute the old wikitext of the page. This was only used for a
short amount of time before
https://phabricator.wikimedia.org/rEABFd1d27eede6536067c5180b2515ea937d71525d4d.

Nowadays, it's causing a fatal error when we try to migrate the affected
entries, see T246539#6388362.

Since we only have a Title available, we cannot rebuild what the old
wikitext would look like, so a placeholder text is used (this should
hopefully be clearer than showing an empty string).

Bug: T246539
Change-Id: I5230f2fdc84da121728a5a75da458f1a4ef1ecd3
2020-08-19 12:37:40 +02:00
Translation updater bot cb9ed4a957 Localisation updates from https://translatewiki.net.
Change-Id: I27e8bdae0f21fed7bdfdf985d8db5dac92c69b4f
2020-08-19 08:37:32 +02:00
Translation updater bot 3cfdfdca3b Localisation updates from https://translatewiki.net.
Change-Id: I3eb0ac37f56a7688237fd1e367442221179da323
2020-08-18 08:36:31 +02:00
Translation updater bot 8e317c7bff Localisation updates from https://translatewiki.net.
Change-Id: Ifa0f7c74c2d4d71e98cd2abd795f333cf49ce580
2020-08-17 08:40:40 +02:00
Translation updater bot 7fe2bcac6d Localisation updates from https://translatewiki.net.
Change-Id: If2eed0bbb56e47cb52631b88b3ccfb6c14c457ac
2020-08-14 08:36:49 +02:00
jenkins-bot e13347804a Merge "Remove calls to ParserOptions::setTidy()" 2020-08-13 10:19:15 +00:00
Translation updater bot 75fa981ec9 Localisation updates from https://translatewiki.net.
Change-Id: I6793d77e191c7e80facbdd78bcb6c0e0f48ba915
2020-08-13 08:38:02 +02:00
C. Scott Ananian a135c2f4da Remove calls to ParserOptions::setTidy()
ParserOptions::setTidy() was already a no-op in MW 1.35, and
AbuseFilter already requires MW >= 1.35 in extension.json.
ParserOptions::setTidy() was deprecated in MW 1.35 and will be removed
in a future release.

Bug: T198214
Change-Id: I269e829cf1f33e233bfcf7f95388e041180c2556
2020-08-12 23:39:36 -04:00
Translation updater bot 4d22f68989 Localisation updates from https://translatewiki.net.
Change-Id: Ia06627a9fb1f7ed37eab5973afea3d5724739661
2020-08-12 08:18:38 +02:00
Translation updater bot 8127e4cff7 Localisation updates from https://translatewiki.net.
Change-Id: Iddb2ceb46bfab7a36690fedc50fcc93c9725faec
2020-08-11 08:20:18 +02:00
Translation updater bot 77e0e4fe8a Localisation updates from https://translatewiki.net.
Change-Id: Idc48c79edd472dcc7cf1932b208bd9782a3eae76
2020-08-10 08:59:27 +02:00
Umherirrender e10b7e4208 Fix broken PHPDoc comments not starting with /**
Change-Id: Id9579ad6ca4dc75921e8fd4aaaccdffd530c2e35
2020-08-09 01:04:29 +02:00