Page MenuHomePhabricator

Convert Cognate extension.json to manifest_version 2
Closed, ResolvedPublic

Description

Congnate extension should be converted to use manifest version 2 in its extension.json file.

In extension manifest version 1, documentation was made like this:

	"config": {
		"@CognateDb": "The database to use for storing Cognate data. The default is to use the db of the current site.",
		"CognateDb": false,
		"@CognateCluster": "The cluster to use for storing Cognate data. The default is to use the cluster / server of the current site. See $wgLBFactoryConf.",
		"CognateCluster": false,
         }

This documentation can now be done with "description" and "value" fields available in manifest_version: 2 like this:

	"config": {
                "CognateDb": {
		    "description": "The database to use for storing Cognate data. The default is to use the db of the current site.",
		    "value": false,
                 }
                "CognateCluster": {
		    "description": "The cluster to use for storing Cognate data. The default is to use the cluster / server of the current site. See $wgLBFactoryConf.",
		    "value": false,
	},

The maintenance script maintenance/updateExtensionJsonSchema.php semi-automates this conversion and is recommended to be used

Event Timeline

Ammarpad created this task.Dec 20 2019, 5:08 AM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptDec 20 2019, 5:08 AM
Ammarpad updated the task description. (Show Details)Dec 20 2019, 7:05 AM

Change 561255 had a related patch set uploaded (by Minhducsun2002; owner: Minhducsun2002):
[mediawiki/extensions/Cognate@master] Update extension.json to version 2

https://gerrit.wikimedia.org/r/561255

Change 561255 merged by jenkins-bot:
[mediawiki/extensions/Cognate@master] Update extension.json to version 2

https://gerrit.wikimedia.org/r/561255

Ammarpad closed this task as Resolved.Dec 31 2019, 2:34 PM