Add feature flag for Codex Special:Block UI

Introduce a temporary feature flag that will be used to display
Special:Block UI in Codex.

Bug: T358153
Change-Id: I74bc90af986ac2f429a952a19b6edf4fb02c5618
This commit is contained in:
hmonroy 2024-02-21 13:52:29 -08:00
parent 200b9b6a01
commit 22dc49a5c5
5 changed files with 29 additions and 0 deletions

View file

@ -7938,3 +7938,9 @@ config-schema:
default: 2592000
type: integer
description: 'Number of seconds to keep edit recovery data after the edit is stored.'
UseCodexSpecialBlock:
default: false
type: boolean
description: |-
Whether to use Codex in Special:Block form.
This is a temporary feature flag.

View file

@ -4416,3 +4416,9 @@ $wgEnableEditRecovery = null;
* @see MediaWiki\MainConfigSchema::EditRecoveryExpiry
*/
$wgEditRecoveryExpiry = null;
/**
* Config variable stub for the UseCodexSpecialBlock setting, for use by phpdoc and IDEs.
* @see MediaWiki\MainConfigSchema::UseCodexSpecialBlock
*/
$wgUseCodexSpecialBlock = null;

View file

@ -4432,4 +4432,10 @@ class MainConfigNames {
*/
public const EditRecoveryExpiry = 'EditRecoveryExpiry';
/**
* Name constant for the UseCodexSpecialBlock setting, for use with Config::get()
* @see MainConfigSchema::UseCodexSpecialBlock
*/
public const UseCodexSpecialBlock = 'UseCodexSpecialBlock';
}

View file

@ -12716,6 +12716,15 @@ class MainConfigSchema {
'type' => 'integer',
];
/**
* Whether to use Codex in Special:Block form.
* This is a temporary feature flag.
*/
public const UseCodexSpecialBlock = [
'default' => false,
'type' => 'boolean',
];
// endregion -- End Miscellaneous
}

View file

@ -2503,6 +2503,7 @@ return [
],
'EnableEditRecovery' => false,
'EditRecoveryExpiry' => 2592000,
'UseCodexSpecialBlock' => false,
],
'type' => [
'ConfigRegistry' => 'object',
@ -2976,6 +2977,7 @@ return [
'SpecialContributeSkinsEnabled' => 'array',
'EnableEditRecovery' => 'boolean',
'EditRecoveryExpiry' => 'integer',
'UseCodexSpecialBlock' => 'boolean',
],
'mergeStrategy' => [
'TiffThumbnailType' => 'replace',