Last modified: 2014-06-13 22:27:18 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T60507, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 58507 - Add pretty json output to the GWToolset namespace
Add pretty json output to the GWToolset namespace
Status: PATCH_TO_REVIEW
Product: MediaWiki extensions
Classification: Unclassified
GWToolset (Other open bugs)
unspecified
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-12-15 14:26 UTC by Maarten Dammers
Modified: 2014-06-13 22:27 UTC (History)
4 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Maarten Dammers 2013-12-15 14:26:49 UTC
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.
Comment 1 Yuvi Panda 2013-12-16 02:31:47 UTC
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.
Comment 2 Gerrit Notification Bot 2014-04-02 02:06:20 UTC
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
Comment 3 Bawolff (Brian Wolff) 2014-04-02 02:08:10 UTC
(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.
Comment 4 Gerrit Notification Bot 2014-04-02 02:48:02 UTC
Change 123159 merged by jenkins-bot:
Mark GWToolset namespace as being json for code editor.

https://gerrit.wikimedia.org/r/123159
Comment 5 Bawolff (Brian Wolff) 2014-04-02 02:51:57 UTC
Resetting to new for the event-logging style json visualization.

The code editor thing should start appearing on april 8.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links