Page MenuHomePhabricator

Enable RESTbaseless validation in wikibase
Closed, ResolvedPublic

Description

Wikibase currently the RESTbase based texvcjs validation to check if formulae entered in wikibase are valid tex(vc) words. The first step towards RESTbaseless mathoid use in production is to replace the RESTbase "cache" with the WANObjectCache.

To do that, we need to ensure that the configuration of Wikidata does use a not-none implementation of ObjectCache and that the mathoid URL (wgMathMathMLUrl) is set. While I guess, given the low edit traffic of math statements in Wikidata, it would also work without cache. The default wgMathMathMLUrl points to a wmflabs instance which is probably not accessible from production.

ToDo:

Event Timeline

Change 661186 had a related patch set uploaded (by Physikerwelt; owner: Physikerwelt):
[mediawiki/extensions/Math@master] Use Mathoid to validate Wikibase formuale

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

After asking in the ops chat I got the internal URL of mathoid
mathoid.discovery.wmnet:10042 per https://wikitech.wikimedia.org/wiki/Mathoid#Troubleshooting ?
It would be interesting to check if this actually works.
While checking that, the following would be interesting as well:
Does it use https://github.com/wikimedia/mathoid/blob/master/config.prod.yaml Especially is https://github.com/wikimedia/mathoid/blob/f4dac960e4eda6cdfcc3a6496cf8dd56901a3a9f/config.prod.yaml#L59 really true?
That would mean that the answer to an invalid request such as \invalid would result in a result which is different from mathoid.discovery.wmnet:10042/texvcinfo

Physikerwelt triaged this task as Medium priority.
Physikerwelt updated the task description. (Show Details)
Physikerwelt moved this task from Inbox to Doing on the Math board.

Change 666429 had a related patch set uploaded (by Ppchelko; owner: Ppchelko):
[operations/mediawiki-config@master] Math: talk to mathoid directly in labs.

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

Change 666429 merged by jenkins-bot:
[operations/mediawiki-config@master] Math: talk to mathoid directly in labs.

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

Mentioned in SAL (#wikimedia-operations) [2021-02-23T20:44:18Z] <ppchelko@deploy1001> Synchronized wmf-config/CommonSettings.php: No-op: math enable talking to mathoid directly in labs, T274436 (duration: 00m 57s)

Change 661186 merged by jenkins-bot:
[mediawiki/extensions/Math@master] Use Mathoid to validate Wikibase formuale

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

Change 679357 had a related patch set uploaded (by Ppchelko; author: Ppchelko):

[operations/mediawiki-config@master] Math: Enable RESTBase-less Wikidata math validation

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

Change 679357 merged by jenkins-bot:

[operations/mediawiki-config@master] Math: Enable RESTBase-less Wikidata math validation

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

Mentioned in SAL (#wikimedia-operations) [2021-04-19T18:39:36Z] <ppchelko@deploy1002> Synchronized wmf-config/CommonSettings.php: T274436 Math: Enable RESTBase-less Wikidata math validation (duration: 00m 56s)

@Pchelolo do you think the next step
"verify caching in production" is something you can do or does that need to be done by WMDE, or do we not need it altogether.
Btw, I did also rebase the subsequent step here: https://gerrit.wikimedia.org/r/c/mediawiki/extensions/Math/+/665654

Change 691168 had a related patch set uploaded (by Physikerwelt; author: Physikerwelt):

[mediawiki/extensions/Math@master] Remove wgMathUseRestBase

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

Change 691168 merged by jenkins-bot:

[mediawiki/extensions/Math@master] Remove wgMathUseRestBase

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

Change 710126 had a related patch set uploaded (by Ppchelko; author: Ppchelko):

[operations/mediawiki-config@master] Clean up temporary variable wgMathUseRestBase

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

Change 710126 merged by jenkins-bot:

[operations/mediawiki-config@master] Clean up temporary variable wgMathUseRestBase

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

Mentioned in SAL (#wikimedia-operations) [2021-11-03T18:09:58Z] <ppchelko@deploy1002> Synchronized wmf-config/CommonSettings.php: Config: [[gerrit:710126|Clean up temporary variable wgMathUseRestBase (T274436)]] (duration: 01m 03s)

Mentioned in SAL (#wikimedia-operations) [2021-11-03T18:15:17Z] <ppchelko@deploy1002> Synchronized wmf-config/CommonSettings.php: Config: [[gerrit:710126|Clean up temporary variable wgMathUseRestBase (T274436)]] (duration: 01m 02s)

Change 820454 had a related patch set uploaded (by Lucas Werkmeister (WMDE); author: Lucas Werkmeister (WMDE)):

[operations/mediawiki-config@master] Remove unused $wgMathUseRestBase

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

Change 820454 merged by jenkins-bot:

[operations/mediawiki-config@master] Remove unused $wgMathUseRestBase

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

Mentioned in SAL (#wikimedia-operations) [2022-08-04T14:13:34Z] <lucaswerkmeister-wmde@deploy1002> Synchronized wmf-config/CommonSettings-labs.php: Config: [[gerrit:820454|Remove unused $wgMathUseRestBase (T274436)]] (duration: 03m 01s)