Page MenuHomePhabricator

Convert InterwikiSorting extension.json to manifest_version 2
Closed, ResolvedPublic

Description

InterwikiSorting 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": {
		"@InterwikiSortingSort": "The default sort order to use. 'code' is build in and orders alphabetically by interwiki code.",
		"InterwikiSortingSort": "code",
		"@InterwikiSortingSortPrepend": "Codes that should appear at the start of the list of interwiki links.",
		"InterwikiSortingSortPrepend": [],
         }

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

	"config": {
             "InterwikiSortingSort": {
		 "description": "The default sort order to use. 'code' is build in and orders alphabetically by interwiki code.",
		 "value": "code",
              } 
              "InterwikiSortingSortPrepend": {
		 "description": "Codes that should appear at the start of the list of interwiki links.",
	         "value": [],
	},

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

Event Timeline

Change 561390 had a related patch set uploaded (by JeremyNguyenGCI; owner: JeremyNguyenGCI):
[mediawiki/extensions/InterwikiSorting@master] Updated extension.json to manifest_version 2

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

Change 561400 had a related patch set uploaded (by JeremyNguyenGCI; owner: JeremyNguyenGCI):
[mediawiki/extensions/InterwikiSorting@master] Update extension.json to manifest_version 2

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

Change 561390 abandoned by Umherirrender:
Updated extension.json to manifest_version 2

Reason:
Superseeded by I3a33f2c1b603049af51d29ea77198cb0a740f0ef

Please amend your patch sets in the future, see https://www.mediawiki.org/wiki/Gerrit/Tutorial#Amending_a_change or use gerrit's edit mode

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

Change 561400 merged by jenkins-bot:
[mediawiki/extensions/InterwikiSorting@master] Update extension.json to manifest_version 2

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

Ammarpad claimed this task.