RCFilters: make live update part of the beta feature
authorStephane Bisson <sbisson@wikimedia.org>
Wed, 13 Sep 2017 20:07:54 +0000 (16:07 -0400)
committerCatrope <roan@wikimedia.org>
Wed, 13 Sep 2017 20:40:30 +0000 (20:40 +0000)
Cleanup wgStructuredChangeFiltersEnableLiveUpdate

Bug: T175766
Change-Id: I03db105bef6c3730221c2d00ce56afb2c78bf57c

includes/DefaultSettings.php
includes/specialpage/ChangesListSpecialPage.php
resources/src/mediawiki.rcfilters/mw.rcfilters.js

index 5b77d16..f9d2879 100644 (file)
@@ -6850,13 +6850,6 @@ $wgStructuredChangeFiltersShowPreference = false;
  */
 $wgStructuredChangeFiltersEnableExperimentalViews = false;
 
-/**
- * Whether to allow users to use the experimental live update feature in the new RecentChanges UI
- *
- * Temporary variable during development and will be removed.
- */
-$wgStructuredChangeFiltersEnableLiveUpdate = false;
-
 /**
  * Whether to enable RCFilters app on Special:Watchlist
  *
index 0762bf7..6114b31 100644 (file)
@@ -602,10 +602,6 @@ abstract class ChangesListSpecialPage extends SpecialPage {
                                'wgStructuredChangeFiltersEnableExperimentalViews',
                                $experimentalStructuredChangeFilters
                        );
-                       $out->addJsConfigVars(
-                               'wgStructuredChangeFiltersEnableLiveUpdate',
-                               $this->getConfig()->get( 'StructuredChangeFiltersEnableLiveUpdate' )
-                       );
                        $out->addJsConfigVars(
                                'wgRCFiltersChangeTags',
                                $this->buildChangeTagList()
index e39be6c..d203328 100644 (file)
@@ -47,7 +47,7 @@
                },
                featureFlags: {
                        liveUpdate: mw.config.get( 'wgStructuredChangeFiltersLiveUpdateSupported' ) &&
-                               ( mw.config.get( 'wgStructuredChangeFiltersEnableLiveUpdate' ) || new mw.Uri().query.liveupdate )
+                               ( mw.user.options.get( 'rcenhancedfilters' ) || new mw.Uri().query.liveupdate )
                }
        };
 }( mediaWiki ) );