Commit graph

31 commits

Author SHA1 Message Date
Bartosz Dziewoński 337cad30d9 Add $wgAbuseFilterProfile to enable filter profiling
Follow-up to b60829a60c.

I'll fix up message translations on Translatewiki when this is merged.

Bug: T132189
Change-Id: I1ecaedd7489b264ed621309b6fbfb63b9287a437
2016-04-08 16:53:45 +00:00
Bartosz Dziewoński 39261ff5cd Revert "Removed filter profiling using $wgMemc"
This reverts commit afb78deb84.

I'll guard this behind a global and fix up the localisation messages
in a separate commit. This is a straight revert.

Bug: T132189
Change-Id: Iff4aa6d7d543db8f47c5f81f3c206dafcd5373dc
2016-04-08 16:53:34 +00:00
Bartosz Dziewoński 6298c91bde Remove executable bit from files
find . -perm /111 -type f | grep -v .git | xargs chmod ago-x

Change-Id: I1e5994ba0a74eafdeff262017f90d4c0f09f3ab4
2016-04-08 14:00:52 +00:00
Bartosz Dziewoński 8858cdd42a Add more file_* variables for file metadata
* file_mime
  The MIME type of the file, e.g. 'image/png'.

* file_mediatype
  The media type of the file, one of 'UNKNOWN', 'BITMAP', 'DRAWING',
  'AUDIO', 'VIDEO', 'MULTIMEDIA', 'OFFICE', 'TEXT', 'EXECUTABLE', 'ARCHIVE'.

* file_width
  Width of the image in pixels, or 0 if it's inapplicable (e.g. for
  audio files).

* file_height
  Height of the image in pixels, or 0 if it's inapplicable (e.g. for
  audio files).

* file_bits_per_channel
  Bits per color channel of the image, or 0 if it's inapplicable (e.g.
  for audio files). The most common value is 8.

Bug: T131643
Change-Id: Id355515a18d3674393332c0f4094e34f9f522623
2016-04-04 23:40:03 +02:00
IoannisKydonis 5eb9a529e9 Clarify AbuseFilter system messages
Thread:
https://translatewiki.net/wiki/Thread:Support/About_MediaWiki:Apihelp-abusefilterunblockautopromote-example-1/ksh

Change-Id: Idc7609b6a7e0c38169694e76aba737f11350b9a6
2016-01-20 22:51:27 +02:00
Translation updater bot a4c4ab7c59 Localisation updates from https://translatewiki.net.
Change-Id: Ibea2d0f7e760c10c3af6e5e7fb673d36e4384ebc
2015-11-11 21:51:15 +01:00
Translation updater bot be13a6e4b3 Localisation updates from https://translatewiki.net.
Change-Id: I1dd865ec4dfe859c007e231f8336add6c5fab131
2015-09-01 21:42:49 +02:00
Legoktm fe8cdc35ca Revert "Add "Last hit" timestamp column to Special:AbuseFilter list view"
This reverts commit 77d161f65c.

Bug: T106798
Change-Id: I265ae108aecbacfcce808ad21e18be4e0eef750e
2015-07-24 10:11:57 +00:00
glaisher 77d161f65c Add "Last hit" timestamp column to Special:AbuseFilter list view
It'll show the timestamp at which the filter was last triggered.
If there is no hit or if the user does not have the proper permissions,
it'll be blank.

Bug: T93564
Change-Id: I435af5caf457c548fa0737ed226d7f8640ff25d8
2015-07-17 10:40:45 +00:00
Translation updater bot 8e5c4d7b9e Localisation updates from https://translatewiki.net.
Change-Id: If345f47016fe2ae8c23ff223c94256e42ee17d22
2015-05-19 22:18:12 +02:00
Aaron Schulz afb78deb84 Removed filter profiling using $wgMemc
* This is very slow as there can easily be hundreds of filters,
  each doing 6 memcached queries. Xenon flamegraphs show a lot
  of time spent in this method, slowing down editing.

Change-Id: I31e4502bbd45cc284db3cd89eb34ad365c59905b
2015-05-19 08:14:33 -07:00
Translation updater bot 482f8de785 Localisation updates from https://translatewiki.net.
Change-Id: I8446219905a9f5a3b1f63109022f1d3e0d0eda1e
2015-05-18 22:08:03 +02:00
Translation updater bot 5533ed8dba Localisation updates from https://translatewiki.net.
Change-Id: I0f9edad0629bf25ab7e858bdbeba577ef9ed781c
2015-03-23 21:44:24 +01:00
se4598 6d316690a9 add filter option for local rules only on central wiki
only affects filter list on central wiki. You can now select to see
local only, global ones or both filters.

Bug: T78495
Change-Id: Idb37aa4f5c3515e0295b74a43176edd2c62508f8
2015-02-17 09:00:44 +01:00
Kunal Mehta 68639158f8 Add file_size variable
To be able to filter on extremely large uploads

Change-Id: Id4c4c0f900ba6b91579211b8412ee194f09f6118
2015-01-07 20:56:53 -08:00
jenkins-bot c6fee7e920 Merge "Add i18n for API module help" 2014-11-10 22:09:27 +00:00
Translation updater bot 763ff4ea8f Localisation updates from https://translatewiki.net.
Change-Id: I13308e402158ea283682a6583fc27001aa58a3ae
2014-11-02 21:56:07 +01:00
Brad Jorsch 51e5a28f24 Add i18n for API module help
MediaWiki core change I04b1a384 added support for i18n of API module
help. This takes advantage of that while still maintaining backwards
compatibility with earlier versions of MediaWiki.

Once support for MediaWiki before 1.25 is dropped, the methods marked
deprecated in this patch may be removed.

Change-Id: I67395aff48185f3e09da31b51a08aa2541fe6a17
2014-10-29 16:37:37 -04:00
Translation updater bot 0bf22eeac5 Localisation updates from https://translatewiki.net.
Change-Id: I7316b8327f70ba8fb4ac106f514708979d8da582
2014-10-12 22:13:56 +02:00
jenkins-bot ff8dc48d2e Merge "Add new variable article_first_contributor" 2014-10-04 13:49:56 +00:00
Translation updater bot bfc1197418 Localisation updates from https://translatewiki.net.
Change-Id: I7faa642ba21199f889d2a34652ba07917df092a9
2014-08-23 21:48:52 +02:00
Translation updater bot a47c698bb3 Localisation updates from https://translatewiki.net.
Change-Id: I14d0b26674755e0901b4f24474a08128de306e02
2014-08-12 21:32:36 +02:00
Liangent a86019d2d3 Add new variable article_first_contributor
Bug: 67793
Change-Id: I725b7150de52bdc6518f73a6302f850e8d596824
2014-08-11 11:51:44 +00:00
helderwiki 20dabefe22 Improve error handling for HTTP requests
The API provides more details about HTTP errors, so show these to
the user instead of a generic "An unknown error occurred."

Bug: 68767
Change-Id: I3188b9729c815a07c65a7dbef4d40deebe29b87d
2014-08-02 11:56:32 +00:00
Kunal Mehta b40416c037 Add user_rights variable
Allows for more broad filters to check for a given right, rather
than having to check against multiple groups, which becomes useful
with global groups.

Bug: 60191
Change-Id: I95b5477d6d868d4b83bcd98e779e6d535aa755b3
2014-07-06 22:18:57 -07:00
huji edabcbc6aa Separate parameters for the filter ID and localized filter name in AbuseFilter
Bug: 67254
Change-Id: I0343971b8be6984820ddf861a76132c9dd064829
2014-06-28 15:23:43 -04:00
Translation updater bot f0325d3a92 Localisation updates from https://translatewiki.net.
Change-Id: Ic65df4dfff8fc91a55046a3c4ee8d9ddd806815a
2014-06-22 19:26:59 +00:00
Translation updater bot eacb4fe1c3 Localisation updates from https://translatewiki.net.
Change-Id: I8cb884cbb808e82d2cfb3c0c760161139f914b8b
2014-04-16 15:26:32 +00:00
Translation updater bot 3b0e94e864 Localisation updates from https://translatewiki.net.
Change-Id: I38116528f61bfbcbfa827f6289d8039d922cbeb1
2014-03-29 21:12:21 +00:00
Translation updater bot 5700f0246a Localisation updates from https://translatewiki.net.
Change-Id: Idde8f0de869a9f834e2a269594ad31ea592ce5ab
2014-03-28 19:23:03 +00:00
Siebrand Mazeland acb351e8af Migrate to JSON i18n with B/C
Change-Id: Ic20925f91570b742f30dc354a7e0e39d4d27edfd
2014-03-25 19:15:03 +01:00