mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-11-27 17:10:19 +00:00
Add feature flag to "promote add topic" feature
Will be used to control rollout to WMF wikis but can default to true here. Bug: T267444 Change-Id: I716563efffc2401fbf5f8b53876a8b58706b1cda
This commit is contained in:
parent
d90d1d17b1
commit
77734b1597
|
@ -331,7 +331,8 @@ class SkinVector22 extends SkinMustache {
|
|||
self::extractPageToolsFromSidebar( $sidebar, $pageToolsMenu );
|
||||
}
|
||||
|
||||
$hasAddTopicButton = $this->removeAddTopicButton( $parentData );
|
||||
$hasAddTopicButton = $config->get( 'VectorPromoteAddTopic' ) &&
|
||||
$this->removeAddTopicButton( $parentData );
|
||||
|
||||
$langButtonClass = $langData['class'] ?? '';
|
||||
$ulsLabels = $this->getULSLabels();
|
||||
|
|
|
@ -598,6 +598,10 @@
|
|||
},
|
||||
"description": "An associative array of A/B test configs keyed by parameters noted in mediawiki.experiments.js. There must be an `unsampled` bucket that represents a population excluded from the experiment. Additionally, the treatment bucket(s) must include a case-insensitive `treatment` substring in their name (e.g. `treatment`, `stickyHeaderTreatment`, `sticky-header-treatment`)"
|
||||
},
|
||||
"VectorPromoteAddTopic": {
|
||||
"value": true,
|
||||
"description": "@var boolean Temporary feature flag that promotes the 'Add topic' link in the views menu, to a button in the page title bar."
|
||||
},
|
||||
"VectorDisableSidebarPersistence": {
|
||||
"value": false,
|
||||
"description": "@var boolean Temporary feature flag that disables saving the sidebar expanded/collapsed state as a user-preference (triggered via clicking the main menu icon). This is intended as a temporary kill-switch in the event that the DB is overloaded with writes to the user_options table."
|
||||
|
|
Loading…
Reference in a new issue