Page MenuHomePhabricator

Replace deprecated ve.init.mw.Target#getHtml
Closed, ResolvedPublic

Description

CX2 publishing shows the warning: ve.init.mw.Target#getHtml is deprecated. Use mw.libs.ve.targetSaver.getHtml.

Fix it by replacing with recommended method.

Event Timeline

santhosh triaged this task as High priority.EditedAug 5 2020, 12:02 PM

Set to high priority since we don't want to see the publishing feature failing at any cost.

Change 618700 had a related patch set uploaded (by Santhosh; owner: Santhosh):
[mediawiki/extensions/ContentTranslation@master] Replace deprecated ve.init.mw.Target#getHtml with mw.libs.ve.targetSaver.getHtml

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

Jpita added a subscriber: Jpita.

what version is this going to be deployed in?

image.png (227×456 px, 31 KB)
I'm still seeing this in the console on cx2

You can test it on cx2 after merge and it should be available in Production (All Wikis) by Wednesday EOD.

Change 618700 merged by Nik Gkountas:
[mediawiki/extensions/ContentTranslation@master] Replace deprecated ve.init.mw.Target#getHtml with mw.libs.ve.targetSaver.getHtml

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