Last modified: 2014-11-08 00:44:49 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 T73781, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 71781 - Add support for a "Multi-Part" content model for use with MediaInfo / structured meta-data
Add support for a "Multi-Part" content model for use with MediaInfo / struct...
Status: NEW
Product: MediaWiki
Classification: Unclassified
ContentHandler (Other open bugs)
unspecified
All All
: Low enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-10-08 08:26 UTC by Daniel Kinzler
Modified: 2014-11-08 00:44 UTC (History)
7 users (show)

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


Attachments

Description Daniel Kinzler 2014-10-08 08:26:04 UTC
The multipart content model should support a "main" part containing wikitext, and several "attachments". The different parts would be bundled together in some kind of envelope structure, using something like JSON, XML, or mime/multipart.  

Only the main/text part of the content should be exposed via EditPage and action=edit. Some other parts can be accessed/edited via EditPage and action=edit by requesting them specifically. Some parts, depending on their content model, may not be editable via the text based interfaces.

Note that exposing only the textual "main" part via action=edit breaks the assumption that it is possible to grab a revision's content, modify it, and save it. The revision's content would be the full blob containing all parts (unless requested otherwise).
Comment 1 Kunal Mehta (Legoktm) 2014-10-08 22:31:19 UTC
I think we have something similar to this in MassMessage: a JSON content model that contains and displays displays wikitext, and a structured spamlist. (example: <https://test.wikipedia.org/wiki/Yay_mm-ch!>).
Comment 2 Daniel Kinzler 2014-10-28 17:28:38 UTC
It seems that we want a "multi-part" content model should be either completely visible & explicit, which would mean it can't be edited directly using the "normal" EditPage, and reading and editing via the API would require the client to understand and process the multi-part wrapper data structure.

Or it should be completely transparent, exposing only the "main" (typically wikitext) content even when editing using EditPage, or even when asked for revision content via the API. Any "extra" parts would need to be requested explicitly. This means core could has to know about this special kind of content model, and implement special handling for it in several places.

I think it would be good to have both: a basic multi-part model, as well as a "transparent" multi-part model, built on top of the "normal" one.

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


Navigation
Links