Page MenuHomePhabricator

Add pretty json output to the GWToolset namespace
Closed, DeclinedPublicFeature

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.

Legoktm subscribed.

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.

Aklapper changed the subtype of this task from "Task" to "Feature Request".Feb 4 2022, 12:23 PM
Aklapper removed a subscriber: wikibugs-l-list.