The News/Journal/Book/Website options under Cite menu is missing now.
Description
Details
Related Objects
- Mentioned In
- rMW3ccf2b06c37a: JsonContent: Support non-object values as root structure
rMW4df4e89b2010: JsonContent: Support non-object values as root structure
rMW7c340aed294a: JsonContent: Support non-object values as root structure
T86748: [Regression 1.25wmf14] HTML of JSON blocks (e.g. Schema pages) appears garbled
Event Timeline
Still couldn't reproduce it, but I notice https://test2.wikipedia.org/wiki/MediaWiki:Visualeditor-cite-tool-definition.json is not showing anything - I wonder if that could be related.
@Ryasmeen, if you still get this issue, can you paste the output of mw.msg( 'visualeditor-cite-tool-definition.json' ) while VE is open here?
There's definitely something wrong there though - we noticed that trying to change the page I linked to returns "Invalid content data".
Looks like this would be caused by https://gerrit.wikimedia.org/r/#/c/177171/ - CCing Timo and Ori.
MediaWiki core's JsonContent handler only supports values of which the root structure is an object. This is why message [visualeditor-specialcharinspector-characterlist-insert](https://test2.wikipedia.org/w/index.php?title=MediaWiki:Visualeditor-specialcharinspector-characterlist-insert) works fine, but message visualeditor-cite-tool-definition.json (which is an array) is broken.
While the validation for it having to be an object is new in, it never supported non-objects. This is why these MediaWiki pages didn't get the green/grey/white boxes rendering like Meta-Wiki Schema pages do. The fact that it allowed saving was a bug, and it rendering the page as wikitext instead of JSON visualisation was an undocumented fallback.
The VisualEditor MediaWiki extension is setting the content model for these two messages to JSON in [VisualEditorHooks::onContentHandlerDefaultModelFor](https://github.com/wikimedia/mediawiki-extensions-VisualEditor/blob/1a4c821da/VisualEditor.hooks.php#L47-L59). Until MediaWiki core supports arrays, VE should remove the content model from those pages.
Change 185385 had a related patch set uploaded (by Krinkle):
JsonContent: Support non-object values as root structure
Change 185385 merged by jenkins-bot:
JsonContent: Support non-object values as root structure
Change 185584 had a related patch set uploaded (by Krinkle):
JsonContent: Support non-object values as root structure
Change 185585 had a related patch set uploaded (by Krinkle):
JsonContent: Support non-object values as root structure
Change 185584 merged by jenkins-bot:
JsonContent: Support non-object values as root structure
Change 185585 merged by jenkins-bot:
JsonContent: Support non-object values as root structure