Page MenuHomePhabricator

Prepare the cxserver for usage without RESTbase
Closed, ResolvedPublic

Description

The API of cxserver is currently exposed through RESTbase. In order to unblock RESTbase deprecation, the services needs and requirements have to be assessed according to https://www.mediawiki.org/wiki/RESTBase/service_migration.

Note that this API seems to be exposed in two ways: on https://cxserver.wikimedia.org/v1 as well as on all wikis under /api/rest_v1/. The rest_v1 path receives less than one requests per second, while the cxserver.wikimedia.org serves about one request per second. cxsever.wikimedia-org is directly mapped to the backend service.

Given that cxserver's API is already used mostly without RESTbase, the remaining task is probably just to deprecate/remove the endpoints that RESTbase exposes.

Event Timeline

daniel updated the task description. (Show Details)

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

[mediawiki/services/cxserver@master] Use MediaWiki REST API endpoint instead of RESTbase

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

Change 962920 merged by jenkins-bot:

[mediawiki/services/cxserver@master] Use MediaWiki REST API endpoint instead of RESTbase

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

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

[operations/deployment-charts@master] Update cxserver to 2023-10-05-093231-production

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

Change 964846 merged by jenkins-bot:

[operations/deployment-charts@master] Update cxserver to 2023-10-11-045323-production

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

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

[operations/deployment-charts@master] Update cxserver to 2023-10-11-045323-production

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

Change 965022 merged by jenkins-bot:

[operations/deployment-charts@master] Update cxserver to 2023-10-12-080927-production

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

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

[mediawiki/services/cxserver@master] Include host in the header to restbase API

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

Change 967142 merged by jenkins-bot:

[mediawiki/services/cxserver@master] Include host in the header to restbase API

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

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

[mediawiki/services/cxserver@master] Use MediaWiki REST API endpoint instead of RESTbase

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

Change 976152 merged by jenkins-bot:

[mediawiki/services/cxserver@master] Use MediaWiki REST API endpoint instead of RESTbase

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

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

[operations/deployment-charts@master] Update cxserver to 2023-11-28-064518-production

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

Change 977983 merged by jenkins-bot:

[operations/deployment-charts@master] Update cxserver to 2023-12-04-083437-production

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

Internally - in CX production and in our developer workflows we directly use cxserver APIs and not the RESTBase apis like https://en.wikipedia.org/api/rest_v1/#/Transforms/doMT.

However, a codesearch like this https://codesearch.wmcloud.org/search/?q=transform%2Fhtml%2Ffrom&files=&excludeFiles=&repos= shows Extension:Translate using the RESTBase.

A code search in github shows more results from external libraries and API wrappers https://github.com/search?q=transform%2Fhtml%2Ffrom&type=code
We had listed the cxserver RESTBase API as unstable.

Pginer-WMF claimed this task.