Merge "Update name of body class to avoid confusion"

This commit is contained in:
jenkins-bot 2022-09-29 14:58:38 +00:00 committed by Gerrit Code Review
commit ba7fda1a69
4 changed files with 6 additions and 6 deletions

View File

@ -198,12 +198,12 @@ final class Constants {
/**
* @var string
*/
public const FEATURE_TABLE_OF_CONTENTS = 'TableOfContents';
public const FEATURE_TABLE_OF_CONTENTS_AB_TEST = 'TableOfContentsLegacyTOC';
/**
* @var string
*/
public const REQUIREMENT_TABLE_OF_CONTENTS = 'TableOfContents';
public const REQUIREMENT_TABLE_OF_CONTENTS_AB_TEST = 'TableOfContentsLegacy';
/**
* @var string

View File

@ -52,7 +52,7 @@ final class TableOfContentsTreatmentRequirement implements Requirement {
* @inheritDoc
*/
public function getName(): string {
return Constants::REQUIREMENT_TABLE_OF_CONTENTS;
return Constants::REQUIREMENT_TABLE_OF_CONTENTS_AB_TEST;
}
/**

View File

@ -193,10 +193,10 @@ return [
);
$featureManager->registerFeature(
Constants::FEATURE_TABLE_OF_CONTENTS,
Constants::FEATURE_TABLE_OF_CONTENTS_AB_TEST,
[
Constants::REQUIREMENT_FULLY_INITIALISED,
Constants::REQUIREMENT_TABLE_OF_CONTENTS,
Constants::REQUIREMENT_TABLE_OF_CONTENTS_AB_TEST,
]
);

View File

@ -45,7 +45,7 @@ class SkinVector22 extends SkinVector {
*/
public function isUserInTocTreatmentBucket(): bool {
$featureManager = VectorServices::getFeatureManager();
return $featureManager->isFeatureEnabled( Constants::FEATURE_TABLE_OF_CONTENTS );
return !$featureManager->isFeatureEnabled( Constants::FEATURE_TABLE_OF_CONTENTS_AB_TEST );
}
/**