Page MenuHomePhabricator

Improve the Page: pages storage system
Open, MediumPublic

Description

Page pages are currently stored in the database as a customized wikitext content:
<noinclude><pagequality level="LEVEL" user="LAST PROOFREADER" />HEADER<div class="pagetext">BODY<noinclude>FOOTER</noinclude>

We should consider to move to a new storage system maybe with the help of the ContentHandler but before a refactoring of the edition related code is needed (bug T48578).

A possible new content format base of JSON:
{

"proofread": {
   "level": LEVEL AS INTEGER,
   "user": "LAST PROOFREADER"
},
"header": "HEADER",
"footer": "FOOTER",
"body": "BODY"

}


Version: unspecified
Severity: enhancement

Details

Reference
bz46724

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 1:31 AM
bzimport added a project: ProofreadPage.
bzimport set Reference to bz46724.
bzimport added a subscriber: Unknown Object (MLST).
GOIII raised the priority of this task from Low to Medium.Mar 22 2015, 6:10 PM

Short update: this format is already implemented in ProofreadPage as "optional" format (i.e. not used to save content but usable in order to get/save content): https://git.wikimedia.org/blob/mediawiki%2Fextensions%2FProofreadPage.git/f8af3e22308d5494ae717ea858a3003288b74683/includes%2Fpage%2FPageContentHandler.php#L52