Parsoid is bumping up the content type schema version to 1.1.0, cf. this patch. We need to bump the version in our spec and tests once that is deployed.
Moreover, we need to ensure consistency between the spec and what we hand out. That means that when we retrieve the content from storage, we need to check its version, and, if it does not conform to the latest one, convert the retrieved document into the new version. The conversion can be done in two ways:
- @ssatry will look into providing an html2html endpoint in Parsoid, which RESTBase could then use as a direct conversion mechanism
- retrieve the wikitext form the MW API and then send it to Parsoid along with the revision's data-parsoid blob.
Open question: this might introduce inconsistent historical views of a page. (TODO: expand this).