Page MenuHomePhabricator

[Request] mediawiki.Uri is deprecated, use URL instead in ContentTranslation
Closed, ResolvedPublic4 Estimated Story Points

Description

Background

The mediawiki.Uri is deprecated. ContentTranslation is one of the two remaining codebases which use this library on page load. This means it adds noise to the developer console and removes unnecessary code for end users.

To help accelerate the removal of this module, it's requested that before the next MediaWiki release (ideally by the end of April) that ContentTranslation code is updated to remove dependency to this library.

Event Timeline

Change #1125257 had a related patch set uploaded (by Jdlrobson; author: Jdlrobson):

[mediawiki/extensions/ContentTranslation@master] mediawiki.Uri is deprecated, use URL instead

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

Change #1139313 had a related patch set uploaded (by Santhosh; author: Santhosh):

[mediawiki/extensions/ContentTranslation@master] SiteMapper: Use http protocol in site template, use URL instead of mw.Uri

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

Change #1139417 had a related patch set uploaded (by Santhosh; author: Jdlrobson):

[mediawiki/extensions/ContentTranslation@master] Replace usage of mw.Uri with URL

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

santhosh changed the task status from Open to In Progress.Apr 28 2025, 9:21 AM
santhosh triaged this task as Medium priority.
santhosh moved this task from Needs Triage to Upstream/Other teams on the ContentTranslation board.

Change #1139313 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] SiteMapper: Use https protocol in site template, use URL instead of mw.Uri

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

Change #1139417 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] Replace usage of mw.Uri with URL

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

Change #1139986 had a related patch set uploaded (by KartikMistry; author: KartikMistry):

[operations/mediawiki-config@master] cxserver: Use URL instead of mw.Uri

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

Change #1139986 merged by jenkins-bot:

[operations/mediawiki-config@master] ContentTranslation: Add protocol to cxserver URL

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

Mentioned in SAL (#wikimedia-operations) [2025-04-30T07:07:38Z] <kartik@deploy1003> Started scap sync-world: Backport for [[gerrit:1139986|ContentTranslation: Add protocol to cxserver URL (T390241)]]

Mentioned in SAL (#wikimedia-operations) [2025-04-30T07:14:35Z] <kartik@deploy1003> kartik: Backport for [[gerrit:1139986|ContentTranslation: Add protocol to cxserver URL (T390241)]] synced to the testservers (https://wikitech.wikimedia.org/wiki/Mwdebug)

Mentioned in SAL (#wikimedia-operations) [2025-04-30T07:23:58Z] <kartik@deploy1003> Finished scap sync-world: Backport for [[gerrit:1139986|ContentTranslation: Add protocol to cxserver URL (T390241)]] (duration: 16m 19s)

Change #1125257 abandoned by Nik Gkountas:

[mediawiki/extensions/ContentTranslation@master] mediawiki.Uri is deprecated, use URL instead

Reason:

The issue has been fixed in I6a66dd5fdb030efb7d18f3c052691930682e0a0c
and I1719e276c17a2a86713a2a5a7ea0c24c8bc9c7a7. This patch can now be abandoned.

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

MSantos subscribed.

Today is the last day before the train rides for 1.44.0-wmf.28 [1] and the alpha branch release [2] will soon be announced.

I'm flagging this task as a non-blocker, but if that's not right, please make sure this is resolved and backported before the release is complete in a few weeks.

https://www.mediawiki.org/wiki/MediaWiki_1.44/wmf.28
https://www.mediawiki.org/wiki/MediaWiki_1.44/Roadmap

We can backport if needed, but this should go out in 1.45 1.44 [thanks Nikerabbit!] (apologies if I'm using the column wrong)

Do you mean 1.44? If the branch hasn't been created yet, this will be included.

Is mw.externalguidance.init covered by this ticket?

Confirmed with CodeSearch and did not see errors related this in Logstash.