mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-11-24 15:53:46 +00:00
d7e6690b52
Adds behaviour for conditionally adding the edit button
to the sticky-header based on A/B test bucketing.
This behaviour depends on having the `$wgVectorStickyHeaderEdit` config
set to true for logged-in users:
$wgVectorStickyHeaderEdit = [
"logged_in" => true,
"logged_out" => false
];
as well as an AB test configured with the following buckets:
$wgVectorWebABTestEnrollment = [
'name' => 'vector.sticky_header_edit',
'enabled' => true,
'buckets' => [
'unsampled' => [
'samplingRate' => 0
],
'stickyHeaderEditButtonControl' => [
'samplingRate' => 0
],
'stickyHeaderEditButtonTreatment' => [
'samplingRate' => 1
]
]
];
With that config, this change hides the sticky header for all users
except those in the stickyHeaderEditButtonTreatment bucket.
NOTE: This patch address the sticky header being visible on incorrect
namespaces when the AB test is enabled and the revert of
|
||
---|---|---|
.. | ||
common | ||
mediawiki.less | ||
skins.vector.es6 | ||
skins.vector.js | ||
skins.vector.legacy.js | ||
skins.vector.search | ||
skins.vector.styles | ||
skins.vector.styles.legacy | ||
CheckboxHack.d.ts | ||
CollapsibleTabsPlugin.d.ts | ||
MediaWikiPageReady.d.ts | ||
mw.d.ts | ||
VectorResourceLoaderVirtualConfig.d.ts | ||
vue.d.ts |