From fdab199e949aeaff887e3716d97fc373f7f129df Mon Sep 17 00:00:00 2001 From: Amir Sarabadani Date: Wed, 14 Nov 2018 22:21:34 +0100 Subject: [PATCH] Migrate ApiQueryLogEvents from tag_summary to change_tag Bug: T209525 Change-Id: Id81f78fac5e8d26228fc989e4dd5d34489953587 --- includes/api/ApiQueryLogEvents.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/includes/api/ApiQueryLogEvents.php b/includes/api/ApiQueryLogEvents.php index 3cb55e4169..ba04193b33 100644 --- a/includes/api/ApiQueryLogEvents.php +++ b/includes/api/ApiQueryLogEvents.php @@ -109,9 +109,7 @@ class ApiQueryLogEvents extends ApiQueryBase { } if ( $this->fld_tags ) { - $this->addTables( 'tag_summary' ); - $this->addJoinConds( [ 'tag_summary' => [ 'LEFT JOIN', 'log_id=ts_log_id' ] ] ); - $this->addFields( 'ts_tags' ); + $this->addFields( [ 'ts_tags' => ChangeTags::makeTagSummarySubquery( 'logging' ) ] ); } if ( !is_null( $params['tag'] ) ) { -- 2.20.1