Edit filter configuration

Differences between versions

ItemVersion from 18:03, 28 August 2019 by GalobtterVersion from 00:28, 20 September 2023 by 0xDeadbeef
Basic information
Notes:
Testing per [[Special:PermaLink/886107806#File_name_changes]]; can warn about needing to upload files/not breaking file names, or maybe disallow. -G 2019-03-04
Testing per [[Special:PermaLink/886107806#File_name_changes]]; can warn about needing to upload files/not breaking file names, or maybe disallow. -G 2019-03-04


Check old_wikitext for {{BrokenImage}} just in case of FPs on pages already having missing files;  
Check old_wikitext for {{BrokenImage}} just in case of FPs on pages already having missing files;  
(
(
   missing_filename := get_matches( 'class="new" title="File:(.*?)"', new_html )[1];
   missing_filename := get_matches( 'class="new" title="File:(.*?)"', new_html )[1];
   missing_filename := str_replace( missing_filename, "&", "&" );
   missing_filename := str_replace( missing_filename, "&", "&" );
   missing_filename := str_replace( missing_filename, """, '"' );
   missing_filename := str_replace( missing_filename, """, '"' );
   (
   (
     added_lines rlike missing_filename &
     added_lines rlike missing_filename &
     !removed_lines rlike missing_filename
     !removed_lines rlike missing_filename
   ) |
   ) |
   (
   (
     missing_filename := str_replace( missing_filename, " ", '_' );
     missing_filename := str_replace( missing_filename, " ", '_' );
     added_lines rlike missing_filename &
     added_lines rlike missing_filename &
     !removed_lines rlike missing_filename
     !removed_lines rlike missing_filename
   )
   )
)
)
could be added as the last conditions for the filter to be super accurate, but that may be unnecessary complexity. -G 2019-03-04
could be added as the last conditions for the filter to be super accurate, but that may be unnecessary complexity. -G 2019-03-04


Check removed_lines to account for cases where the user breaks the file name extension and so it isn't present in the added_lines. -G 2019-03-05
Check removed_lines to account for cases where the user breaks the file name extension and so it isn't present in the added_lines. -G 2019-03-05


Set to warn and tag. Working well; a lot of it is test/vandalism. -G 2019-03-05
Set to warn and tag. Working well; a lot of it is test/vandalism. -G 2019-03-05


Disabling. This is much too slow... regularly showing up in Logstash, sometimes taking 5 seconds to execute. Avoid new_html at all costs. ~MA
Disabling. This is much too slow... regularly showing up in Logstash, sometimes taking 5 seconds to execute. Avoid new_html at all costs. ~MA


Reenabling to check if improvements to filter time recording show that it isn't actually slow, per [[Special:PermaLink/911762194#Filter_971_and_fixes_to_filter_times]]. -G 2019-08-25
Reenabling to check if improvements to filter time recording show that it isn't actually slow, per [[Special:PermaLink/911762194#Filter_971_and_fixes_to_filter_times]]. -G 2019-08-25


It is indeed not slow, so re-enable warning. -G 2019-08-28
It is indeed not slow, so re-enable warning. -G 2019-08-28
added .webp. 0xDeadbeef 2023-09-20
Filter conditions
Conditions:
(documentation)
user_editcount < 100 &
user_editcount < 100 &
page_namespace == 0 &
page_namespace == 0 &
(added_lines + removed_lines) irlike "\.(?:jpe?g|png|svg|gif|tiff)" &
(added_lines + removed_lines) irlike "\.(?:jpe?g|png|svg|gif|tiff|webp)" &
"wpDestFile" in new_html
"wpDestFile" in new_html