From 2c267bfc8477ccd9e7625957aef615bc102e03bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gerg=C5=91=20Tisza?= Date: Mon, 16 Mar 2015 15:00:31 -0500 Subject: [PATCH] Hide suppressed usernames in image table Bug: T90300 Change-Id: I1100dd1f0cce8e92dc956d7f8dd177004e6d5515 --- maintain-replicas/maintain-replicas.pl | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/maintain-replicas/maintain-replicas.pl b/maintain-replicas/maintain-replicas.pl index e917e03..5482a14 100755 --- a/maintain-replicas/maintain-replicas.pl +++ b/maintain-replicas/maintain-replicas.pl @@ -74,7 +74,7 @@ my @fullviews = ( "flaggedpage_config", "flaggedpage_pending", "flaggedpages", "flaggedrevs", "flaggedrevs_promote", "flaggedrevs_statistics", "flaggedrevs_stats", "flaggedrevs_stats2", "flaggedrevs_tracking", "flaggedtemplates", "geo_killlist", "geo_tags", "geo_updates", "globalimagelinks", "global_block_whitelist", - "hashs", "hitcounter", "image", "imagelinks", "imagelinks_old", "interwiki", "iwlinks", + "hashs", "hitcounter", "imagelinks", "imagelinks_old", "interwiki", "iwlinks", "l10n_cache", "langlinks", "links", "localisation", "localisation_file_hash", "math", "module_deps", "msg_resource", "msg_resource_links", "namespaces", "page", "page_broken", "pagelinks", "page_props", "page_restrictions", "pagetriage_log", @@ -178,6 +178,15 @@ my %customviews = ( NULL as gu_auth_token', 'where' => "gu_hidden=''" }, + 'image' => { + 'source' => 'image', + 'view' => 'select img_name, img_size, img_width, img_height, img_metadata, + img_bits, img_media_type, img_major_mime, img_minor_mime, + if(img_deleted&2,null,img_description) as img_description, + if(img_deleted&4,null,img_user) as img_user, + if(img_deleted&4,null,img_user_text) as img_user_text, + img_timestamp, img_sha1', } + 'ipblocks' => { 'source' => 'ipblocks', 'view' => 'select ipb_id, if(ipb_auto<>0,null,ipb_address) as ipb_address, ipb_user, -- 1.9.1