Merge "jquery.tablesorter: Make tests QUnit 2 compatible (remove testCount)"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Wed, 26 Jul 2017 02:26:05 +0000 (02:26 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Wed, 26 Jul 2017 02:26:05 +0000 (02:26 +0000)
includes/specials/SpecialRecentchanges.php
includes/specials/SpecialRecentchangeslinked.php
includes/specials/SpecialUndelete.php
maintenance/populatePPSortKey.php
resources/src/mediawiki.rcfilters/dm/mw.rcfilters.dm.FiltersViewModel.js
resources/src/mediawiki.rcfilters/mw.rcfilters.Controller.js

index 852bfa4..1248007 100644 (file)
@@ -429,7 +429,7 @@ class SpecialRecentChanges extends ChangesListSpecialPage {
                $fields[] = 'page_latest';
                $join_conds['page'] = [ 'LEFT JOIN', 'rc_cur_id=page_id' ];
 
-               $tagFilter = explode( '|', $opts['tagfilter'] );
+               $tagFilter = $opts['tagfilter'] ? explode( '|', $opts['tagfilter'] ) : [];
                ChangeTags::modifyDisplayQuery(
                        $tables,
                        $fields,
index 80ec2b1..fee336e 100644 (file)
@@ -104,7 +104,7 @@ class SpecialRecentChangesLinked extends SpecialRecentChanges {
                        $select[] = 'page_latest';
                }
 
-               $tagFilter = explode( '|', $opts['tagfilter'] );
+               $tagFilter = $opts['tagfilter'] ? explode( '|', $opts['tagfilter'] ) : [];
                ChangeTags::modifyDisplayQuery(
                        $tables,
                        $select,
index 39904b0..e7478ee 100644 (file)
@@ -669,13 +669,7 @@ class SpecialUndelete extends SpecialPage {
 
                $archive = new PageArchive( $this->mTargetObj, $this->getConfig() );
                Hooks::run( 'UndeleteForm::showHistory', [ &$archive, $this->mTargetObj ] );
-               /*
-               $text = $archive->getLastRevisionText();
-               if( is_null( $text ) ) {
-                       $out->addWikiMsg( 'nohistory' );
-                       return;
-               }
-               */
+
                $out->addHTML( '<div class="mw-undelete-history">' );
                if ( $this->mAllowed ) {
                        $out->addWikiMsg( 'undeletehistory' );
index fd7974d..7e3c2c3 100644 (file)
@@ -43,6 +43,7 @@ class PopulatePPSortKey extends LoggedUpdateMaintenance {
                $lastPageValue = 0;
                $editedRowCount = 0;
 
+               $this->output( "Populating page_props.pp_sortkey...\n" );
                while ( true ) {
                        $conditions = [ 'pp_sortkey IS NULL' ];
                        if ( $lastPageValue !== 0 ) {
@@ -93,7 +94,7 @@ class PopulatePPSortKey extends LoggedUpdateMaintenance {
                        $lastProp = $row->pp_propname;
                }
 
-               $this->output( "Done!\n" );
+               $this->output( "Populating page_props.pp_sortkey complete.\n" );
        }
 
        protected function getUpdateKey() {
index a602c32..3281735 100644 (file)
                } );
 
                // Collect views
-               allViews = {
+               allViews = $.extend( true, {
                        'default': {
                                title: mw.msg( 'rcfilters-filterlist-title' ),
                                groups: filterGroups
                        }
-               };
-
-               if ( views && mw.config.get( 'wgStructuredChangeFiltersEnableExperimentalViews' ) ) {
-                       // If we have extended views, add them in
-                       $.extend( true, allViews, views );
-               }
+               }, views );
 
                // Go over all views
                $.each( allViews, function ( viewName, viewData ) {
index 5ebec27..3b8ebbd 100644 (file)
@@ -35,6 +35,7 @@
                        items = [],
                        uri = new mw.Uri(),
                        $changesList = $( '.mw-changeslist' ).first().contents(),
+                       experimentalViews = mw.config.get( 'wgStructuredChangeFiltersEnableExperimentalViews' ),
                        createFilterDataFromNumber = function ( num, convertedNumForLabel ) {
                                return {
                                        name: String( num ),
@@ -43,7 +44,7 @@
                        };
 
                // Prepare views
-               if ( namespaceStructure ) {
+               if ( namespaceStructure && experimentalViews ) {
                        items = [];
                        $.each( namespaceStructure, function ( namespaceID, label ) {
                                // Build and clean up the individual namespace items definition
@@ -74,7 +75,7 @@
                                } ]
                        };
                }
-               if ( tagList ) {
+               if ( tagList && experimentalViews ) {
                        views.tags = {
                                title: mw.msg( 'rcfilters-view-tags' ),
                                trigger: '#',