Page MenuHomePhabricator

unable to save json datasets using api
Open, Needs TriagePublic

Description

Currently contenthandlers for contentmodels registered by JsonConfig are not added to the global registration of wgContentHandlers, because they make use of JsonConfigModels and ContentHandlerForModelID.

Event Timeline

TheDJ renamed this task from JsonConfig contenthandlers are not globally registered to unable to save json datasets using api.Jan 12 2017, 7:30 PM

Noting that I've been able to save .map pages using the api, e.g. https://commons.wikimedia.org/w/index.php?title=Data:Sandbox/Evad37/Highway_192_in_Iowa_(3).map&action=history, just be specifying a Data:_____.map page name, valid JSON (including the licence, source, description fields), and not setting the content model. The pages seem to just get created with the correct content model.