Page MenuHomePhabricator

Add pretty json output to the GWToolset namespace
Open, MediumPublic

Description

Currently the GWToolset namespace just shows json (see for example http://commons.wikimedia.beta.wmflabs.org/w/index.php?title=GWToolset:Metadata_Mappings/Multichill/anefo.json&action=edit).

In the first iteration of the campaign namespace Yuvi included pretty display of the json and a nice json editor. I can't show an example of the pretty display because in the next iteration it became a gallery (for example https://commons.wikimedia.org/wiki/Campaign:wlm-nl), but I can give an example of the json edit interface: https://commons.wikimedia.org/w/index.php?title=Campaign:wlm-nl

I would like to have pretty display of json for the GWToolset namespace. It's probably just flipping a switch somewhere, but I don't have an idea yet which one.


Version: unspecified
Severity: enhancement

Details

Reference
bz58507

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 2:24 AM
bzimport set Reference to bz58507.
bzimport added a subscriber: Unknown Object (MLST).

I stole it from the EventLogging extension - you can see it still on https://meta.wikimedia.org/wiki/Schema:AccountCreation. It's a couple of files / functions that can be stolen from EventLogging and reused.

Change 123159 had a related patch set uploaded by Brian Wolff:
Mark GWToolset namespace as being json for code editor.

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

(In reply to Gerrit Notification Bot from comment #2)

Change 123159 had a related patch set uploaded by Brian Wolff:
Mark GWToolset namespace as being json for code editor.

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

This is just for half the bug. I didn't do anything related to showing json on page view, just the bit about telling [[mw:Extension:CodeEditor]] that the GWToolset is json, so the edit box gets syntax highlighting.

Change 123159 merged by jenkins-bot:
Mark GWToolset namespace as being json for code editor.

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

Resetting to new for the event-logging style json visualization.

The code editor thing should start appearing on april 8.

Jdforrester-WMF moved this task from Untriaged to Backlog on the Multimedia board.Sep 4 2015, 6:38 PM
Restricted Application added subscribers: Steinsplitter, Matanya, Aklapper. · View Herald TranscriptSep 4 2015, 6:38 PM
Restricted Application added a project: Commons. · View Herald TranscriptFeb 4 2016, 5:54 PM
Steinsplitter moved this task from Incoming to Backlog on the Commons board.Feb 13 2016, 5:32 PM
Legoktm added a subscriber: Legoktm.

This should be pretty easy to implement now. Someone would need to set the default content model to 'json' for the GWToolset namespace, and then write a maintenance script to covert the existing pages into JSON content ones.

Restricted Application added a subscriber: TerraCodes. · View Herald TranscriptJul 6 2017, 7:25 AM