Vector-Local/resources
Jan Drewniak 4c52b69780 Sticky header AB test bucketing for 2 treatment buckets
For idwiki/viwiki, we wish to run the sticky header edit button AB
test so that treatment1 group sees the sticky header without edit
buttons, treatment2 groups sees the sticky header with edit buttons,
and the control/unsampled groups see no sticky header at all.

This patch overrides the configuration to make the sticky header
w/o edit buttons for treatment1, sticky header w/ edit buttons for
treatment2, and hides sticky header for everyone else. This depends
on a configuration with the treatment groups having "treatment1"
and "treatment2" as substrings in their bucket names.

The full configuration for idwiki/viwiki would be something like
the following:

```
$wgVectorStickyHeader = [
	"logged_in" =>  true,
	"logged_out" => false,
];

$wgVectorStickyHeaderEdit = [
		"logged_in" => true,
		"logged_out" => false,
];

$wgVectorWebABTestEnrollment = [
	"name" => "vector.sticky_header_edit",
	"enabled" => true,
	"buckets" => [
		"unsampled" => [
			"samplingRate" => 0
		],
                "noStickyHeaderControl" => [
                        "samplingRate" => 0.34
                ],
		"stickyHeaderNoEditButtonTreatment1" => [
			"samplingRate" => 0.33
		],
		"stickyHeaderEditButtonTreatment2" => [
			"samplingRate" => 0.33
		]
	],
];
```

Bug: T312573
Change-Id: I15c360fdf5393f5594602acc33b5b916e904016d
(cherry picked from commit 942cd5b0f6)
2022-08-15 21:02:37 +00:00
..
common Merge "Unify dropdown styles" 2022-07-28 21:26:23 +00:00
mediawiki.less Implement mediawiki.skin.variables.less for Vector 2020-09-16 08:39:13 -07:00
mediawiki.less.legacy Define non-standard colors for legacy Vector 2022-07-21 21:31:31 +00:00
skins.vector.es6 Sticky header AB test bucketing for 2 treatment buckets 2022-08-15 21:02:37 +00:00
skins.vector.js Update checkbox.js comments 2022-06-13 11:32:34 -05:00
skins.vector.legacy.js Update @wikimedia/types-wikimedia to latest version 2022-03-28 23:33:50 +00:00
skins.vector.search search: Mark App.vue as being compatible with Vue 3 2022-07-19 16:23:06 -07:00
skins.vector.styles Fix grid blowout bug 2022-08-08 18:19:56 +00:00
skins.vector.styles.legacy [Refactor] Split MenuDropdown.less for modern and legacy 2022-07-25 20:20:18 +00:00
CheckboxHack.d.ts Add enter/spacebar keyboard support to sidebar. 2020-07-09 22:38:15 +02:00
CollapsibleTabsPlugin.d.ts [JavaScript] Validate types 2020-03-16 09:10:08 -06:00
MediaWikiPageReady.d.ts Vector manages search functionality and provides config flag 2020-08-04 00:06:31 +00:00
VectorResourceLoaderVirtualConfig.d.ts Address some code FIXMEs 2022-03-21 20:29:58 +00:00
mw.d.ts Use centralized MediaWiki typescript definition 2021-07-26 21:27:12 +00:00
skins.vector.AB.styles.less Remove Table of Contents feature flag 2022-07-21 12:41:39 -06:00
vue.d.ts Integrate WVUI search into Vector 2020-12-08 13:27:12 -08:00