Migration mode is now the default

- Reflect production.
- Update SkinVector migration notes.

Depends-On: Ia527e60901de59f9e094ca0f1ba62a67a2f808a2
Change-Id: I8efa56fa0644b2ceb33fdab16da5df1d44ee621f
This commit is contained in:
Jon Robson 2022-01-31 13:47:35 -08:00 committed by Jdlrobson
parent bcd4ee0ee1
commit 29498112ed
2 changed files with 13 additions and 1 deletions

View File

@ -403,7 +403,7 @@
"description": "@var string:['2'|'1'] The version ('2' for latest, '1' for legacy) of the Vector skin to **set** for newly created user accounts. **The value is persisted as a user preference.** This configuration is not used for preexisting accounts (see VectorDefaultSkinVersionForExistingAccounts) and only ever executed once at new account creation time."
},
"VectorSkinMigrationMode": {
"value": false,
"value": true,
"description": "@internal. For usage to fulfil [[phab:T291098]]"
},
"VectorWvuiSearchOptions": {

View File

@ -309,6 +309,12 @@ class VectorHooksTest extends MediaWikiIntegrationTestCase {
public function testOnGetPreferencesShowPreferencesEnabledSkinSectionFoundLegacy() {
$isLegacy = true;
$this->setFeatureLatestSkinVersionIsEnabled( !$isLegacy );
$config = new HashConfig( [
'VectorSkinMigrationMode' => false,
'VectorShowSkinPreferences' => true,
'VectorDefaultSidebarVisibleForAuthorisedUser' => true,
] );
$this->setService( 'Vector.Config', $config );
$prefs = [
'foo' => [],
@ -375,6 +381,12 @@ class VectorHooksTest extends MediaWikiIntegrationTestCase {
public function testOnGetPreferencesShowPreferencesEnabledSkinSectionMissingLegacy() {
$isLegacy = false;
$this->setFeatureLatestSkinVersionIsEnabled( !$isLegacy );
$config = new HashConfig( [
'VectorSkinMigrationMode' => false,
'VectorDefaultSidebarVisibleForAuthorisedUser' => true,
'VectorShowSkinPreferences' => true,
] );
$this->setService( 'Vector.Config', $config );
$prefs = [
'foo' => [],