Commit graph

4412 commits

Author SHA1 Message Date
Dayllan Maza c07294cc9c Add runtime metrics to statsd
Metrics per edit:
    - Execution time of all filters
    - Number of filters executed
    - Number of conditions executed

Due to the current structure of abuse filter there was not
a clean way to include filter actions and abuselog creation
as part of the runtime metrics.

Bug: T161059
Change-Id: I6208b620453863133c6623aa419775f63c7d3eb1
2017-08-24 15:58:52 -04:00
Matěj Suchánek 174be6dc9c Restore specific submit message on Special:AbuseLog
This line was dropped in Ifad07bac45eadc4ed377967aa4ab3e3b9e14aa8b.

Bug: T173995
Change-Id: I84982620abbda38c86159b3aa7ed408c44d447ad
2017-08-24 09:46:27 +02:00
Translation updater bot 89125d613f Localisation updates from https://translatewiki.net.
Change-Id: I161531fc6c5d8555eb9d2de9d1ccfda57fc22f8c
2017-08-24 09:02:31 +02:00
Translation updater bot dfc032a911 Localisation updates from https://translatewiki.net.
Change-Id: I0ed547c7cd6d8a57aaea170df2aec8304fd3bdd1
2017-08-23 08:56:51 +02:00
Translation updater bot 3ea45518bc Localisation updates from https://translatewiki.net.
Change-Id: Ie9da4c0a6d62c9c630c7b467409cebcb7b3aff1a
2017-08-22 08:32:59 +02:00
Matěj Suchánek 1e5a5539b2 Remove unused message parameters
It should have been deleted in I02ba4ce31b6aca5b7324114093f8ece143abc295
but accidentally survived.

Change-Id: Icdbe8fb0154513d643905f7f8bd6391780cd44a7
2017-08-20 14:48:51 +02:00
Matěj Suchánek 748978fda5 Pass LinkRenderer instance to AbuseFilter::addNavigationLinks
Change-Id: I1de60955344d06e5b55f4d2cfdfa8f2d13df831a
2017-08-20 14:38:40 +02:00
Matěj Suchánek efaae31263 Improve queries for testing on recent changes
- Use rc_source with values that we know we support. In
  particular, this drops categorization changes.
- Filter on rc_log_type and rc_log_action (which itself
  may be shared across types).
- Use the same query on both Special:AbuseFilter/test
  and Special:AbuseFilter/examine.

Bug: T170574
Change-Id: I79b903b4424d3c15095a1e0491d35f6e005db0b8
2017-08-20 14:00:39 +02:00
jenkins-bot dea61f1992 Merge "Convert Special:AbuseFilter/import to OOjs " 2017-08-19 16:43:40 +00:00
jenkins-bot c027884966 Merge "Use json extension for .stylelintrc" 2017-08-19 07:07:55 +00:00
Umherirrender dbd7a04966 Use json extension for .stylelintrc
Bug: T173516
Change-Id: I3720b53efa634dcb5fbe327e8644e67806b4413b
2017-08-19 08:52:42 +02:00
Translation updater bot 03b14ca113 Localisation updates from https://translatewiki.net.
Change-Id: Iafb7ff62b7e4d9a491daf5f04604b38ee45f0b2f
2017-08-19 08:42:42 +02:00
Rendann 8ff80d0134 Convert Special:AbuseFilter/import to OOjs
Based on https://gerrit.wikimedia.org/r/#/c/370150/
Bug: T132284

Change-Id: Iab2a24926c6b547e34f516149ff94953fb0da634
2017-08-18 13:35:30 +00:00
Translation updater bot 948e3b0a0f Localisation updates from https://translatewiki.net.
Change-Id: I4bd05555ef2cc4669b0a862facf7f1b9f74fbbdb
2017-08-17 08:27:48 +02:00
Translation updater bot ca8cb65d95 Localisation updates from https://translatewiki.net.
Change-Id: I40a9c32ed6fc1091f23062df62e66722c7518b7b
2017-08-15 08:23:14 +02:00
jenkins-bot 3318bf1570 Merge "Remove manual implementation of AntiSpoof::equivString" 2017-08-14 23:11:45 +00:00
Dayllan Maza 22a7f6e912 Remove manual implementation of AntiSpoof::equivString
Cleaned ccnorm method to use AntiSpoof::normalizeString instead going
after AntiSpoof extension files and doing a manual implementation of it.
Also removed composer requirement for AntiSpoof extension.

Bug: T172766
Depends-On: I731733671b650b6bb2f480c41c4f6f2d2f5c62e8
Change-Id: Ib38ba0b06918e81e8af03032eef95e3942773bc1
2017-08-14 16:25:25 -04:00
jenkins-bot 391966dec4 Merge "Fix the order of conditions when choosing the correct method" 2017-08-14 20:04:42 +00:00
Rendann 51924f3a92 Convert Special:AbuseLog to OOjs
Bug: T132284
Change-Id: Ifad07bac45eadc4ed377967aa4ab3e3b9e14aa8b
2017-08-14 17:19:28 +02:00
Translation updater bot ac9d7f1c60 Localisation updates from https://translatewiki.net.
Change-Id: I530fd5897e5cf65cadaec301fa3b75181d270096
2017-08-14 08:50:01 +02:00
matejsuchanek 3b29498f21 Migrate abusefilter/modify log
Bug: T32553
Change-Id: I7e33d1064329124755c77ffe6efbd5d572f43cb9
2017-08-12 10:00:42 +02:00
Matěj Suchánek 79c25e5583 Improve documentation of methods
Change-Id: I231d6a3e095324ae1509fdf028bcc352148a0dbe
2017-08-11 23:26:29 +00:00
Translation updater bot 5af838107f Localisation updates from https://translatewiki.net.
Change-Id: I30457756f3849639813a5ea3b43722c7d2e2b0a6
2017-08-11 22:30:36 +02:00
Kunal Mehta 72427ec974 build: Updating mediawiki/mediawiki-codesniffer to 0.11.0
Change-Id: I26adebde9fcb2894804ab705402d05d9de745cb1
2017-08-10 22:57:33 -04:00
Translation updater bot 1aae096ae2 Localisation updates from https://translatewiki.net.
Change-Id: Id7135a338efb3cd1ffbfbe5c664d36e9fb3533d6
2017-08-10 22:49:56 +02:00
jenkins-bot 3e9efb90f7 Merge "Require MediaWiki 1.29" 2017-08-10 18:06:06 +00:00
NoRandom 389995916c Allow searching for visible-only/hidden-only/both on abuselog entries
Bug: T153065
Change-Id: I44ca86ff8564328ae932ccad9675298b686dc6ab
2017-08-10 11:46:57 +02:00
Matěj Suchánek 55c27a8f6b Require MediaWiki 1.29
After I544cdfa75c7472f2d98b2561bc6f6f9c2d2ad639 (dieWithError
and checkUserRightsAny), this is the oldest MediaWiki version
AbuseFilter can be run on.

AbortMove was removed from MediaWiki in 1.25, UploadVerifyFile
is only relevant for 1.27 and older.

(Replaces I1e962217c3b20d901a5742cf76339a3f488a6e97.)

Change-Id: Iec237b2887f72b115fdcef78d2d7a944ba82c784
2017-08-10 11:01:34 +02:00
Translation updater bot 22df88d94b Localisation updates from https://translatewiki.net.
Change-Id: I96b35bb58688b736fdf1c84773aa355bdab78a56
2017-08-09 22:18:25 +02:00
jenkins-bot 7b67f903e0 Merge "Completely disable Special:AbuseFilter/tools for non-maintaners" 2017-08-09 17:12:35 +00:00
Alex Monk 086dd0d741 Use prop instead of removeAttr for syntax check disabled status
Bug: T169385
Change-Id: Ia3f598a3ccd0c12ec0c35450ed12f0ddbd739962
2017-08-09 16:58:00 +00:00
L10n-bot 836c8b229e Merge "Localisation updates from https://translatewiki.net." 2017-08-08 20:36:28 +00:00
Translation updater bot f142a9599b Localisation updates from https://translatewiki.net.
Change-Id: If2c4fa718b4bd80c97997f59307f313ec7d7a27d
2017-08-08 22:36:18 +02:00
Umherirrender eaa1e9fb25 Improve some parameter docs
Change-Id: I03fa9b58c72bcd28985c5a3467b82d8b98f3a0fc
2017-08-08 15:05:06 +02:00
Matěj Suchánek 020517dbe2 Completely disable Special:AbuseFilter/tools for non-maintaners
As described in the task, anyone can view the page but do nothing
with it. It doesn't make sense, it should either work or be disabled.
I chose the latter.

Bug: T124096
Change-Id: I7271cd5a0d00d5fdba28ce3974c50ea5dfd0ad9b
2017-08-08 10:38:25 +02:00
Max Semenik b67cb42c09 Fix some deprecated function usage
Change-Id: I544cdfa75c7472f2d98b2561bc6f6f9c2d2ad639
2017-08-07 16:35:21 -07:00
Max Semenik de7389e19a Fix class and function name case
Change-Id: I55ed3b26ee457863372ec063b7c3ff27bc849b8b
2017-08-07 16:22:48 -07:00
Max Semenik 7e62f23242 Rm unused locals
Change-Id: Ieb77c089645b858290a15c5804de636c5a7b53cc
2017-08-07 16:19:45 -07:00
Max Semenik a6c87eca7a Get rid of deprecated manual profiling
Change-Id: Iefbfb4b9937ed265156fb1b644889fd9e2b29a2e
2017-08-07 16:14:31 -07:00
Max Semenik 2f250127b4 Normalize file layout
Aka move all code into includes/.

Change-Id: I21f7b80bb6df04abbed6bfccb94f92100dc8f071
2017-08-07 16:11:38 -07:00
Translation updater bot 2d05deec1f Localisation updates from https://translatewiki.net.
Change-Id: I2566e75086d903cb629b826afb4d6a137991bca4
2017-08-07 22:14:40 +02:00
Translation updater bot 9f7cde11b4 Localisation updates from https://translatewiki.net.
Change-Id: Ib0d8d637b1ddb22c8834898fc91ce9526288c777
2017-08-06 22:22:57 +02:00
Translation updater bot 7b0dcf08b9 Localisation updates from https://translatewiki.net.
Change-Id: I3c2ac0ba0e2834b8735e9e7033889c9778c2d3dc
2017-08-04 23:04:27 +02:00
Translation updater bot d1a4588f40 Localisation updates from https://translatewiki.net.
Change-Id: Idd4fa1bdf0ccb56a419dda129ed549113e5dfc2e
2017-08-03 22:39:21 +02:00
Translation updater bot 8bacd3dc71 Localisation updates from https://translatewiki.net.
Change-Id: Iea1ab2839bfab32d501f50c200969c2fe673f045
2017-08-02 23:25:10 +02:00
jenkins-bot d3d21473c3 Merge "Don't show old version warning when it's the current version" 2017-08-02 18:05:49 +00:00
Matěj Suchánek 0b4cfb81e8 Don't show old version warning when it's the current version
Bug: T86080
Change-Id: I901ab175e816a9011869436d98b9ab052943d2d0
2017-08-02 02:15:02 +00:00
Translation updater bot 15ec1fb6b9 Localisation updates from https://translatewiki.net.
Change-Id: Ib7fde953c9524eeececfec665648004d98a867a2
2017-07-31 22:34:00 +02:00
Antoine Musso 3329e01d5d Define npm peer dependency explicitly
npm 3 requires dependencies to be explicitly defined.

Bug: T172094
Change-Id: Ic640ccf0f577e47036d473892522ea758014fab4
2017-07-31 12:22:41 +02:00
Translation updater bot c0e54ee65d Localisation updates from https://translatewiki.net.
Change-Id: I6781d01bf82d697883ff3cf0d13b5d8b20b07208
2017-07-26 22:22:14 +02:00