Page MenuHomePhabricator

Update SMW to add support for MW 1.38
Closed, ResolvedPublic

Description

Using SMW with MW 1.38 results in various deprecation warnings. Some notices:

  1. Premature access to service container
  2. Avoid usage of deprecated ResourceLoaderTestModules
  3. Avoid usage of deprecated ParserCache::getETag

Event Timeline

abi_ triaged this task as Medium priority.Jun 23 2021, 10:23 AM
abi_ created this task.

I've submitted 4 patches to a fork of the repository to fix few issues.

The major remaining issues that I see,

  1. Use of the Revision class that was removed in MW 1.37 which was removed as part of work done in T247143
  2. Use of removed hooks - https://gerrit.wikimedia.org/r/c/mediawiki/core/+/678414
    • NewRevisionFromEditComplete - use RevisionFromEditComplete
    • PageContentSaveComplete - use PageSaveComplete
    • TitleMoveComplete - use PageMoveComplete

I've submitted 4 patches to a fork of the repository to fix few issues.

The major remaining issues that I see,

  1. Use of the Revision class that was removed in MW 1.37 which was removed as part of work done in T247143
  2. Use of removed hooks - https://gerrit.wikimedia.org/r/c/mediawiki/core/+/678414
    • NewRevisionFromEditComplete - use RevisionFromEditComplete
    • PageContentSaveComplete - use PageSaveComplete
    • TitleMoveComplete - use PageMoveComplete

These items are completed.

I'll go through these and see what else needs to be fixed. Some of these would have been fixed with my refactorings but have to check each one individually.

I've gone through the list and commented on issues that have been fixed. About 7 issues have been closed and 8 remain. In terms of issues that we may need to fix before we move to MW 1.37/1.38 on translatewiki.net,

  1. https://github.com/SemanticMediaWiki/SemanticMediaWiki/issues/5055
  2. https://github.com/SemanticMediaWiki/SemanticMediaWiki/issues/3851

We're currently testing this on a DEV setup of translatewiki.net, and plan to move this to translatewiki.net on 22nd Sept.

Moving this to recheck after deployment.

Translatewiki now runs code from SMW master branch. Next week we will be moving to MW 1.38.

SMW master + MW 1.37 was deployed on Translatewiki this Wednesday. We noticed issues which have been fixed in this PR: https://github.com/SemanticMediaWiki/SemanticMediaWiki/pull/5091

Next week we will be moving to MW 1.38 and we might see further issues that will be fixed in that PR or a different PR.

Change 730543 had a related patch set uploaded (by Abijeet Patro; author: Abijeet Patro):

[translatewiki@master] Temporarily use SMW fork to apply fixes for MW 1.38

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

abi_ renamed this task from Update SMW to add support for MW 1.37 to Update SMW to add support for MW 1.38.Oct 13 2021, 3:18 PM
abi_ updated the task description. (Show Details)

Translatewiki.net was updated to MW 1.38 today. Issues being noticed are being fixed here: https://github.com/SemanticMediaWiki/SemanticMediaWiki/pull/5100

Change 730543 merged by jenkins-bot:

[translatewiki@master] Temporarily use SMW fork to apply fixes for MW 1.38

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

abi_ changed the task status from Open to In Progress.Nov 16 2021, 6:15 PM

We have submitted a series of patches: https://github.com/SemanticMediaWiki/SemanticMediaWiki/pulls?q=is%3Apr+author%3AAbijeet to help get SMW working with MW master. We have now been running SMW master with MW master for a few weeks.

Since we are running MW on master, we expect issues to still appear in the future, but the major migration of SMW to 1.38 is done.