Support formatversion=2 in SiteMatrix API
Open, Needs TriagePublic


E.g. exporting private, closed etc. as boolean properties instead of optional empty-string properties.

Krinkle created this task.Jul 5 2015, 5:12 AM
Krinkle updated the task description. (Show Details)
Krinkle raised the priority of this task from to Needs Triage.
Krinkle added projects: SiteMatrix, MediaWiki-API.
Krinkle added a subscriber: Krinkle.
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptJul 5 2015, 5:12 AM
Spage added a subscriber: Spage.EditedOct 19 2015, 7:30 PM

Also in the response structure sitematrix.NN.code I think the NN key is arbitrary and unnecessary, so in formatversion=2 it could just be sitematrix.code

formatversion=2 can address T100459: SiteMatrix API has two fields called "code", which is confusing. See also T113034: RFC: Overhaul Interwiki map, unify with Sites and WikiMap.

Anomie added a subscriber: Anomie.Oct 20 2015, 3:53 PM

@Spage: Those changes sound like they're well beyond what can sensibly be done with formatversion=2.

formatversion is about formatting the same data in a different way, not drastically altering the data structure. The latter is the same mistake Wikibase made that resulted in T95168: [Task] Remove calls to getIsRawMode() in Wikibase, and calls to setRawMode() in tests taking a long time.