Page MenuHomePhabricator

CX: Replace calls to the deprecated mobile content REST API
Closed, ResolvedPublic

Description

The /page/mobile-sections/{title} REST API endpoint is deprecated (as part of the mobile content service that is deprecated).

However, inside ContentTranslation extension codebase, this endpoint is used to fetch the section titles of the target page, when a section translation is published. Thus, following the deprecation, a different way of fetching the target section titles has to be found and used to replace this usage.

Additionally, a patch pending for review, also uses an endpoint from the same service in a similar way, and should also be fixed.

Event Timeline

Change 927716 had a related patch set uploaded (by Nik Gkountas; author: Nik Gkountas):

[mediawiki/extensions/ContentTranslation@master] CX: Create SectionTitleFetcher service and use it

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

Change 927716 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] CX: Create SectionTitleFetcher service and use it

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

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

[mediawiki/services/cxserver@master] Replace mobile-sections api call with MW parse api call

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

Change 936392 merged by jenkins-bot:

[mediawiki/services/cxserver@master] Replace mobile-sections api call with MW parse api call

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

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

[operations/deployment-charts@master] Update cxserver to 2023-07-10-065135-production

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

Change 936391 merged by jenkins-bot:

[operations/deployment-charts@master] Update cxserver to 2023-07-10-065135-production

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

@ngkountas please confirm the best way to test this will be to check I am able to complete a CX translation after this endpoint deprecation in mobile

as I always a 403 status code when I make calls to this endpoint https://en.wikipedia.org/api/rest_v1/#/Mobile/getSections

Nikerabbit subscribed.

There isn't a good way to test this backend change. The important thing is that no issues have been reported about this change.