Commit graph

3245 commits

Author SHA1 Message Date
Victor Vasiliev 5da98b67bf Add test coverage for more bizzare features of the filter parser
I am pretty sure all of the behavior documented in these tests is a bad
idea.  It is possible that we can fix it since some of those features
are probably unused, but for now those tests will serve as a
documentation of the current behavior.

Change-Id: Ia2a2f57a538d7aef2ac73fb2e47fe82dd5d5e09a
2016-08-21 18:45:22 -04:00
Translation updater bot 49b5afc7a2 Localisation updates from https://translatewiki.net.
Change-Id: I953d2c4f0450ee61a2e090df6b1ecc94cd94c9a7
2016-08-21 22:48:59 +02:00
Translation updater bot a57b263283 Localisation updates from https://translatewiki.net.
Change-Id: Ib88034603166d007c1a7848d0446a818dd2ea08b
2016-08-19 22:35:48 +02:00
Platonides bb277d437e Let abusefilter-modify users see history of hidden filters
d0439337 (I9e15326c) made abusefilter-view-private required
even for users with abusefilter-modify that can see and
change private filters.

Bug: T143365
Change-Id: I401effc5f1e429b5ec12c7f48dcc00ada74eafb6
2016-08-18 16:08:58 -07:00
Translation updater bot 66afef7840 Localisation updates from https://translatewiki.net.
Change-Id: Ieb5d56790712d27a52381678f273357212044e6f
2016-08-17 22:35:58 +02:00
Translation updater bot bf5769a436 Localisation updates from https://translatewiki.net.
Change-Id: Ia13bd3bed7c8ef4dd933d812bd201c514eca2a8e
2016-08-16 22:39:50 +02:00
jenkins-bot 007f47795c Merge "Update tests for AntiSpoof fixes" 2016-08-16 16:40:36 +00:00
Translation updater bot f2b6827b67 Localisation updates from https://translatewiki.net.
Change-Id: I33773bba5d86ea87de285fd6cf75d0e946d751e4
2016-08-15 22:56:55 +02:00
jenkins-bot 65d70aff29 Merge "Special:AbuseLog: Substitute username parameter in log message before parsing" 2016-08-15 09:13:14 +00:00
matejsuchanek f5e6c733dc Special:AbuseLog: Substitute username parameter in log message before parsing
The GENDER was not working because it was provided via Message::rawParams().

Change-Id: Ia52958b5529b0c16b6f658bb6d4afd4bb525e972
2016-08-15 08:59:47 +00:00
Translation updater bot 9ea2ad36bd Localisation updates from https://translatewiki.net.
Change-Id: Ie5d9ed3a12531120278ee485d7354289c73288e6
2016-08-14 22:24:41 +02:00
Kaldari acd28cb00f Update tests for AntiSpoof fixes
Bug: T29987
Depends-On: Iccb3e50073bbbc2b979cb62dd0e129afd1c2e55f
Change-Id: I8bef839b9b9ca5fced94ce6428e769133ede868f
2016-08-13 20:37:43 +00:00
Translation updater bot c807c696fd Localisation updates from https://translatewiki.net.
Change-Id: Ia948919a9349bd605efad330559e221f20472a03
2016-08-13 22:26:08 +02:00
Translation updater bot ccf0c73b88 Localisation updates from https://translatewiki.net.
Change-Id: Id470f69332eddaa48c194c8db8e4107fda8a0c1c
2016-08-12 23:08:21 +02:00
Amire80 4ea9026be4 Rephrase abusefilter-edit-consequences
This message said "Actions taken when matched".
This is a perfect tense, which is confusing in context,
because it is the heading of the list of actions
that _will_ be taken when matched and not _have_ been taken.
Changing this to "Actions to take when matched".

Change-Id: I2adc5a23b3e9e087dec4986747a3cd5263608f0a
2016-08-12 07:21:32 +00:00
Translation updater bot f3c3b3494b Localisation updates from https://translatewiki.net.
Change-Id: Idccc210d4c173be5234f758358c3777319d8a8db
2016-08-11 23:49:16 +02:00
jenkins-bot 6bd39475bb Merge "Only run filters once for direct uploads (without stash)" 2016-08-11 04:44:52 +00:00
jenkins-bot 67572c6071 Merge "Allow users with 'abusefilter-view-private' to view history/diff of private filters" 2016-08-11 01:43:41 +00:00
Glaisher 71b48cb28b Invalidate global abuse filter rules from cache when a previously global filter is edited
Bug: T142566
Change-Id: I3604b7eae21d5c50da4cbafe4abb15f4427eef15
2016-08-10 22:05:27 +05:00
Translation updater bot 12822f826e Localisation updates from https://translatewiki.net.
Change-Id: I77ff4c5dabf11227ef3ce7876aab461124353a56
2016-08-08 22:28:36 +02:00
Translation updater bot 4c8bff61a4 Localisation updates from https://translatewiki.net.
Change-Id: I01651c252be83ca2e522136d0f19e3ecbea31aab
2016-08-07 22:35:08 +02:00
Translation updater bot ca2c788d2c Localisation updates from https://translatewiki.net.
Change-Id: I3c55362fa1971d020e3053afcf6c4eed7421ccec
2016-08-04 23:24:31 +02:00
Kunal Mehta 722550e431 Remove 'UnitTestsList' hook
Extension unit tests are now autodiscovered.

Bug: T142120
Change-Id: I45dc300b24d27e2a36533600e1232ee56b76b2b8
2016-08-04 13:16:06 -07:00
Translation updater bot 84a0cf0ec1 Localisation updates from https://translatewiki.net.
Change-Id: I5ec88332eba9d2218314a4e7799ee13a822da620
2016-08-03 22:36:38 +02:00
Bartosz Dziewoński f2e05b105b Only run filters once for direct uploads (without stash)
Uses the new UploadStashFile hook.

Bug: T140522
Depends-On: I2f574b355cd33b2e9fa7ff8e1793503b257cce65
Change-Id: Ic7c2dbc54c6ad300d26172796ee21027a8c372ee
2016-08-03 16:30:18 +02:00
Translation updater bot 4f4d1d7079 Localisation updates from https://translatewiki.net.
Change-Id: I24ac016b84d39ae06fd626cb06942a71a20641e2
2016-08-02 22:36:37 +02:00
jenkins-bot 8ad3a44145 Merge "Remove mention of generateDiffBody()" 2016-08-02 00:19:28 +00:00
Timo Tijhof e02915161c Remove mention of generateDiffBody()
This method was removed from MediaWiki in c35d1ce2.

Change-Id: Ifefb029e22160023217aeab615ccc6542521e68e
2016-08-01 13:43:25 -07:00
Translation updater bot 3d6a8ffd79 Localisation updates from https://translatewiki.net.
Change-Id: I20d2a1927b04f7210c0d12f7763700d82677d8a1
2016-08-01 22:32:20 +02:00
Translation updater bot 8ff1f6e88e Localisation updates from https://translatewiki.net.
Change-Id: Ic53db31385b258f0cb36ded55bd8ed032566c831
2016-07-30 22:20:56 +02:00
Max Semenik 817b57a8fe Remove PHP 5.4 compatibility hacks
Change-Id: Id26a014478e5ec550bd81a8f660ddca7f6fd93f8
2016-07-28 15:35:51 -07:00
Bartosz Dziewoński a11a02d833 Make static function bufferTagsToSetByAction() really static
Follow-up to f3ac71de38.

Change-Id: Ie6865fe0c08ad0ce5e9a5a3b59c9b427228fb554
2016-07-27 22:22:39 +02:00
Translation updater bot 81e15d7273 Localisation updates from https://translatewiki.net.
Change-Id: I0428b2aa556856c42398d03b7f2c24df1147e11c
2016-07-26 22:48:24 +02:00
jenkins-bot 484bbe105d Merge "Generate user vars from User passed by hook instead of $wgUser in onArticleDelete" 2016-07-26 19:23:59 +00:00
Translation updater bot f855f3b37c Localisation updates from https://translatewiki.net.
Change-Id: I42c15f94f2883c7a1e031371cd9c8db0f96027ec
2016-07-25 22:21:57 +02:00
Glaisher d043933791 Allow users with 'abusefilter-view-private' to view history/diff of private filters
These pages are read only pages so it's better to let users with
'abusefilter-view-private' to view history and diff of private filters
as 'abusefilter-modify' is a read+write right.

Bug: T126129
Change-Id: I9e15326c8d681000ab13ef8a50fa0eed4c24dbe6
2016-07-25 10:19:06 +00:00
Translation updater bot 7dea68ce0a Localisation updates from https://translatewiki.net.
Change-Id: I0eb7295bbfb296538b47fa09efb281c55718126a
2016-07-24 22:21:21 +02:00
Glaisher 67a62093c7 Generate user vars from User passed by hook instead of $wgUser in onArticleDelete
$wgUser causes issues when it is not properly set when doing deletions in jobs and we want to
generate variables for the deletion performer anyway. WikiPage::doDeleteArticleReal already
ensures that $wgUser is only used when the performer is not set. Also updated docs.

Bug: T138571
Change-Id: If4895fe86acfd1dc2c439837df3830f9b2214336
2016-07-23 14:30:17 +05:00
jenkins-bot 9c01e7c0e4 Merge "Convert deferred update to using AutoCommitUpdate" 2016-07-22 23:39:55 +00:00
Translation updater bot b6bf0d19ba Localisation updates from https://translatewiki.net.
Change-Id: I8904f03cea8fead829145962fac790751453b7c1
2016-07-22 22:34:40 +02:00
Aaron Schulz a2baec187a Convert deferred update to using AutoCommitUpdate
Change-Id: Ife8164fc1bce00e53a89ccec6e445f721fbfa93f
2016-07-21 23:16:12 -07:00
Translation updater bot fc72b21168 Localisation updates from https://translatewiki.net.
Change-Id: I8274de00781f882b08c5abfdd47ced815f19960a
2016-07-21 22:52:11 +02:00
Translation updater bot 48740d3b2b Localisation updates from https://translatewiki.net.
Change-Id: I879c24694a6ca529b35725dddb2f073fdf697591
2016-07-20 22:33:18 +02:00
Brad Jorsch 8ee834c376 AFPUserVisibleException should log in English, not the user's language
The user's language should only be used when the exception is actually
displayed to the user.

This will also avoid "User::loadFromSession called before the end of
Setup.php" warnings when the syntax error is encountered during filter
execution for account autocreation, where we don't display it to the
user.

Bug: T124367
Change-Id: Ic17f56aecbe575ef15c6970c4298f889249e1904
2016-07-20 15:28:27 +00:00
Translation updater bot 106ce2235f Localisation updates from https://translatewiki.net.
Change-Id: I266f00c18733c563390ec0080b0ad9203ee02a89
2016-07-19 22:26:20 +02:00
Translation updater bot 0398c38962 Localisation updates from https://translatewiki.net.
Change-Id: Ifd3d42c751eff83a584f72173e68c0b66a311d33
2016-07-18 22:27:30 +02:00
jenkins-bot d56498efa1 Merge "Ignore _VIEWS in getStashKey()" 2016-07-18 19:10:24 +00:00
Translation updater bot 7191481caf Localisation updates from https://translatewiki.net.
Change-Id: Ice89546aa6ac55eb9f319c57ff40ae291569a990
2016-07-17 22:26:39 +02:00
jenkins-bot 3fe97e47bc Merge "Make getFilter() public for extension hooks" 2016-07-16 11:46:40 +00:00
Aaron Schulz d4cb5f2275 Make getFilter() public for extension hooks
Bug: T139657
Change-Id: Id1c196e8ead6cd280129e7e3aa6741edcf4fa551
2016-07-15 14:55:13 -07:00