Remove $wgTemplateDataSuggestedValues feature flag

Feature is always enabled now.

Bug: T307188
Bug: T310684
Change-Id: Ic99c594ceec0020a6c9d20f0a4f10285b74ea9a8
This commit is contained in:
WMDE-Fisch 2022-06-27 12:11:31 +02:00
parent 560819e270
commit d1ffdc2b95
3 changed files with 1 additions and 22 deletions

View file

@ -29,8 +29,7 @@
"MultiContentSave": "MediaWiki\\Extension\\TemplateData\\Hooks::onMultiContentSave",
"ResourceLoaderRegisterModules": "MediaWiki\\Extension\\TemplateData\\Hooks::onResourceLoaderRegisterModules",
"EditPage::showEditForm:initial": "MediaWiki\\Extension\\TemplateData\\Hooks::onEditPage",
"ParserFetchTemplateData": "MediaWiki\\Extension\\TemplateData\\Hooks::onParserFetchTemplateData",
"MakeGlobalVariablesScript": "MediaWiki\\Extension\\TemplateData\\Hooks::onMakeGlobalVariablesScript"
"ParserFetchTemplateData": "MediaWiki\\Extension\\TemplateData\\Hooks::onParserFetchTemplateData"
},
"MessagesDirs": {
"TemplateData": [
@ -237,11 +236,6 @@
"config": {
"TemplateDataUseGUI": {
"value": true
},
"TemplateDataSuggestedValuesEditor": {
"description": "Temporary feature flag to enable the \"suggested values\" UI",
"value": false,
"public": true
}
},
"manifest_version": 2

View file

@ -172,20 +172,6 @@ class Hooks {
}
}
/**
* Include config when appropriate.
*
* @param array &$vars
* @param OutputPage $output
* @see https://www.mediawiki.org/wiki/Manual:Hooks/MakeGlobalVariablesScript
*/
public static function onMakeGlobalVariablesScript( array &$vars, OutputPage $output ) {
if ( $output->getTitle()->inNamespace( NS_TEMPLATE ) ) {
$vars['wgTemplateDataSuggestedValuesEditor'] =
$output->getConfig()->get( 'TemplateDataSuggestedValuesEditor' );
}
}
/**
* Parser hook for <templatedata>.
* If there is any JSON provided, render the template documentation on the page.

View file

@ -955,7 +955,6 @@ Dialog.prototype.toggleSuggestedValues = function ( type ) {
// Don't show the suggested values field when the feature flag is
// disabled, or for inapplicable types.
this.propFieldLayout.suggestedvalues.toggle(
mw.config.get( 'wgTemplateDataSuggestedValuesEditor' ) &&
suggestedValuesAllowedTypes.indexOf( type ) !== -1
);
};