Similar to T264669: Move VE API from RESTBase into core. Content Translation should be able to use the Parsoid in Mediawiki core. Currently, CX uses Virtual Restbase service.
- Write a client to use Parsoid in MW Core, use it in CX html->wikitext workflow
- Provide a mechanism to choose the existing RestbaseClient or Direct parsoid client by configuration. By default, it should use the current restbase approach.
- Add tests
- Switch to a new client in multiple stages to evaluate
- Small and Medium Wikipedias: https://phabricator.wikimedia.org/T337922
- All Wikipedias: https://phabricator.wikimedia.org/T339322
- Followups:
- Remove VRS related code from CX: https://phabricator.wikimedia.org/T339228 (Patch: https://gerrit.wikimedia.org/r/c/mediawiki/extensions/ContentTranslation/+/930794)
- Remove wgContentTranslationDefaultParsoidClient cleanup: https://gerrit.wikimedia.org/r/c/operations/mediawiki-config/+/930798