Last modified: 2013-12-04 10:19:03 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 T59014, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 57014 - Create a FormatValue API module for formatting data values
Create a FormatValue API module for formatting data values
Status: VERIFIED FIXED
Product: MediaWiki extensions
Classification: Unclassified
WikidataRepo (Other open bugs)
unspecified
All All
: Highest major (vote)
: ---
Assigned To: Wikidata bugs
:
: 56765 (view as bug list)
Depends on:
Blocks: 56263 56716
  Show dependency treegraph
 
Reported: 2013-11-13 16:05 UTC by Daniel Kinzler
Modified: 2013-12-04 10:19 UTC (History)
3 users (show)

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


Attachments

Description Daniel Kinzler 2013-11-13 16:05:21 UTC
The FormatValue API module should work simmilar to the ParseValue API module. It would expect a DataValue (in JSON format) as the input, along with an (optional) data type identifier, as well as the desired output format (plain text, wikitext, html, etc). 

The FormatValue module would then find the appropriate formatter, apply it, and return the resulting string.

Implementation note:
FormatValue can probably be implemented in the DataValues repo, but should provide hooks that allow application specific data types and formatters to be injected.
Comment 1 Daniel Kinzler 2013-11-13 16:23:34 UTC
*** Bug 56765 has been marked as a duplicate of this bug. ***
Comment 2 Gerrit Notification Bot 2013-11-25 14:45:34 UTC
Change 97510 had a related patch set uploaded by Daniel Kinzler:
(bug #57014) Introducing FormatSnakValue API module

https://gerrit.wikimedia.org/r/97510
Comment 3 Gerrit Notification Bot 2013-11-25 14:45:57 UTC
Change 95278 abandoned by Daniel Kinzler:
(bug #57014) Introducing ApiFormatValue

Reason:
Use Ide20888b89 instead

https://gerrit.wikimedia.org/r/95278
Comment 4 Gerrit Notification Bot 2013-11-27 10:28:21 UTC
Change 97510 merged by jenkins-bot:
(bug #57014) Introducing FormatSnakValue API module

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

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


Navigation
Links