Ed Sanders
bf9d8cef1d
Always use the strict equality flag when using in_array
...
Change-Id: I555be3a62ee545304ea1ff7fdcffa3c4fbd25ab1
2023-06-06 13:35:12 +01:00
Umherirrender
28c5a67697
Create HookRunner class and the hook handler interfaces
...
Bug: T263353
Change-Id: I7ee943a262eba7d2f00fd05925676cc2351b7be9
2023-06-05 22:47:33 +02:00
Translation updater bot
3263379318
Localisation updates from https://translatewiki.net .
...
Change-Id: I407da55ece2e7c828a3acee0bdba21af6f764278
2023-06-05 08:40:59 +02:00
libraryupgrader
5f372144f7
build: Updating npm dependencies
...
* grunt-banana-checker: 0.10.0 → 0.11.0
* stylelint-config-wikimedia: 0.14.0 → 0.15.0
Change-Id: I09c6289cfe727fb2d545cbeeeac1a32c45ce9531
2023-06-02 14:27:02 +00:00
Umherirrender
a967557107
tests: Call TestCase::createMock with $this
...
createMock is not a static function (like atLeastOnce)
It is easier to spot that this needs a TestCase when using $this
Change-Id: I6b738e31f43fd7ee2ecd608d0bb853a3ebac3121
2023-05-31 23:00:27 +00:00
jenkins-bot
a4911d2283
Merge "Introduce MathInternalRestbaseURL setting."
2023-05-31 06:28:39 +00:00
daniel
43dd9c7f63
Introduce MathInternalRestbaseURL setting.
...
This new MathInternalRestbaseURL setting allows the internal URL of
Mathoid to be configured directly, instead of relying on
VirtualRestConfig.
This patch moves the fallback logic for the internal and external API
URL into an extension registration callback. This way, we can keep the
application logic simple, and we can issue config warnings that will
cause the updater to fail, forcing wiki owners to update their config.
Bug: T334842
Change-Id: I2fbc441955a1fe417f264f31f3729ce0715f7f16
2023-05-30 09:48:03 +00:00
Translation updater bot
095506a4ce
Localisation updates from https://translatewiki.net .
...
Change-Id: I78d6e1b965ef524360e95c707654e6b0863c21b7
2023-05-29 09:59:32 +02:00
rrana-wmf
c601e1d6f2
Add test case for MathRestbaseInterface.php
...
Add test case for getType() method.
This will improve the code coverage for this method from 0 to 100%.
Add test case for getTex() method.
This will improve the code coverage for this method from 0 to 100%.
Add test case for evaluateRestbaseCheckResponse() method.
This will improve the code coverage for this method from 0 to 100%.
And covers getIdentifiers(), getWarnings(), setErrorMessage(),
methods from 0 to 100%.
Change-Id: I6bdb6919126e5488838d4fba53eb2f74c89ee63d
2023-05-22 09:36:29 +00:00
Umherirrender
7a8d5b9dc4
tests: Make some PHPUnit data providers static
...
Initally used a new sniff with autofix (T333745)
Bug: T332865
Change-Id: I73d2903fed7523826b71fc452a846dc4c6e85802
2023-05-21 11:00:48 +02:00
rrana-wmf
5926f42b52
Use MultiHttpClient instead of VirtualRESTService.
...
This fixes the problems with If208753edfdb301 which was reverted
and adds a new test.
Bug: T335347
Co-Authored-By: <rrana-ctr@wikimedia.org>
Change-Id: I7ddb7b294cbccc4dab42e286fc270f438385bee5
2023-05-20 16:57:46 +00:00
jenkins-bot
edc480ae62
Merge "Revert "Revert "Add getMultiHttpClient function to make HTTP requests to Mathoid."""
2023-05-17 13:56:41 +00:00
Translation updater bot
a0e0668726
Localisation updates from https://translatewiki.net .
...
Change-Id: I1f73c9df0ff9f22d1dcd91032a475da65155e3b2
2023-05-17 08:49:38 +02:00
Subramanya Sastry
de76f99d3d
Revert "Revert "Add getMultiHttpClient function to make HTTP requests to Mathoid.""
...
This reverts commit a38e56c3fc
and
reapplies 38c73d9b7a
Bug: T335347
Change-Id: Ib5f82c022d6ff435a807f8f4128a308f3dacc455
2023-05-16 13:07:32 +00:00
Translation updater bot
865dc23a38
Localisation updates from https://translatewiki.net .
...
Change-Id: I37a10aed577279f9b37d81f401351d612a034681
2023-05-15 08:33:05 +02:00
Daniel Kinzler
a38e56c3fc
Revert "Add getMultiHttpClient function to make HTTP requests to Mathoid."
...
This reverts commit 38c73d9b7a
.
Reason for revert: Breaks math on Beta, shouldn't go live.
Change-Id: I62c63e20c94ddc25c5c291ba42afd28e153b34a6
2023-05-12 10:23:31 +00:00
rrana-wmf
38c73d9b7a
Add getMultiHttpClient function to make HTTP requests to Mathoid.
...
This add new function named "getMultiHttpClient" to the
MathRestbaseInterface.
The function creates a MultiHttpClient object using the HTTP
request factory.
This function will be useful for making HTTP requests to Mathoid.
Add test case for getUrl() method.
Bug: T335347
Change-Id: If208753edfdb3017f722c97cea7653170d05f8a5
2023-05-11 17:58:50 +00:00
daniel
3fa7837cee
Add test case for MathRestbaseInterface::batchEvaluate
...
This test case ensures that responses from RESTbase are processed
correctly.
Change-Id: I5fbd45ac5e61a6294817617a6784846ae815fd6e
2023-05-11 19:58:26 +02:00
daniel
38e649c722
Math: test usage of URL in HttpMultiClient
...
Change-Id: I063319ad1b12d66d2054846e6c3b27c715ca3d31
Co-Authored-By: <rrana-ctr@wikimedia.org>
2023-05-08 18:19:30 +00:00
Umherirrender
35660f4e78
Replace deprecated Hooks::run
...
Bug: T335536
Change-Id: I6968c26df6819f0c83105e92c03d1d204f90db27
2023-05-06 23:11:13 +02:00
Translation updater bot
037830b2d4
Localisation updates from https://translatewiki.net .
...
Change-Id: I304a347139f9789a02d9182b2dc69b9d6bb99e81
2023-05-05 10:39:51 +02:00
libraryupgrader
6f89b61bca
build: Updating eslint-config-wikimedia to 0.25.0
...
Change-Id: I561ffafc759f6d42f1203e99c62fa33aff6bde97
2023-05-04 06:05:24 +00:00
Translation updater bot
cc4e91ed7f
Localisation updates from https://translatewiki.net .
...
Change-Id: I93f4f009c3f3492493f09a49661b22f24f977a7f
2023-05-03 08:43:48 +02:00
jenkins-bot
b17eec1bf5
Merge "Replace deprecated Hooks::run"
2023-05-02 14:11:46 +00:00
jenkins-bot
16b50090d4
Merge "build: Upgrade api-testing from 1.5.0 to 1.6.0"
2023-04-30 12:33:03 +00:00
libraryupgrader
7c267e83ff
build: Updating dependencies
...
composer:
* mediawiki/mediawiki-phan-config: 0.12.0 → 0.12.1
npm:
* grunt-eslint: 24.0.0 → 24.0.1
Change-Id: I9cd23b8344fed2c69014b618f96f122823f4bed9
2023-04-29 06:56:04 +00:00
James D. Forrester
1211b68919
build: Upgrade api-testing from 1.5.0 to 1.6.0
...
Bug: T333134
Change-Id: I5eb7e7f2462b7cb116423b1f504bbaa50a5fa70b
2023-04-28 15:49:02 +00:00
Umherirrender
b654cc2b0a
Replace deprecated Hooks::run
...
Bug: T335536
Change-Id: I6ef724346dd82147ef22af23833c6a0af8bc9054
2023-04-27 22:51:38 +02:00
jenkins-bot
be27ddb2f1
Merge "Fix issues with DQ"
2023-04-20 16:07:27 +00:00
Stegmujo
b1edd31543
Fix issues with DQ
...
Bug: T315978
Change-Id: I04c9178ce5785f29ab79de6dc82070465efca611
2023-04-20 10:57:04 +02:00
gerritbot
e492f9189e
Update moved class TitleFactory
...
See T321882
Moved in Iac1688172ee457
Bug: T321681
Change-Id: I713374ad7f9cfe1ba476d2b8729b2164cb5a4f56
2023-04-19 17:16:36 +00:00
Translation updater bot
ff9b622f62
Localisation updates from https://translatewiki.net .
...
Change-Id: I70d6599cdcfa2734348418268d3fae4930578e1f
2023-04-17 09:14:33 +02:00
Translation updater bot
9674a4ed36
Localisation updates from https://translatewiki.net .
...
Change-Id: I05552344203438a0bd1879fb0a2937850633ce6c
2023-04-11 09:14:03 +02:00
Translation updater bot
d78ddf4768
Localisation updates from https://translatewiki.net .
...
Change-Id: I34a495d8e00af91fc1ebcb44fcc8136063a24245
2023-04-10 09:22:04 +02:00
Stegmujo
6e0427c2ba
Fix for attributes in named Operator
...
Bug: T315978
Change-Id: I7277d03bae031ffcb2995c097f92c795cc2637dd
2023-04-06 13:44:58 +02:00
Stegmujo
c9cf3814ac
Fix for carriage return
...
Bug: T315978
Change-Id: I06728d45daa060655e655bb07717f23eef61a955
2023-04-06 11:40:54 +02:00
jenkins-bot
df0fbc7ebd
Merge "Fix style tag imbalance"
2023-04-06 07:10:30 +00:00
Stegmujo
fa1a5a4b3f
Fix style tag imbalance
...
* sometimes there have been more start-tags than end style tags
Bug: T315978
Change-Id: I6b20d45d7561b084376a54f4d6273a2ff5ed7bb4
2023-04-05 15:48:03 +02:00
Stegmujo
08b16c99df
Fix preceding subscript
...
* example: "{}_1^2\!\Omega_3^4"
* MMLFullcoverageTest cases: 119, 381
* Add isEmpty method to TexNode
* Add empty mrow for prescripts
Bug: T327391
Change-Id: If60e5211bf43e50465072c049d8c432e621832b8
2023-04-05 13:00:06 +02:00
Translation updater bot
92cc8205b2
Localisation updates from https://translatewiki.net .
...
Change-Id: I985f2cf039f5451e9c125f1368c90be62d9a309b
2023-04-04 09:17:36 +02:00
jenkins-bot
db160076f0
Merge "Improve performance: remove redundant inputPreparation calls"
2023-03-31 09:27:46 +00:00
jenkins-bot
39bb32ae2e
Merge "Remove images from native MathML"
2023-03-31 09:09:42 +00:00
Moritz Schubotz (physikerwelt)
8c6eeae82e
Remove images from native MathML
...
In native MathML we only display MathML, also get
rid of enclosing <div / <span container.
Bug: T182041
Change-Id: I26bc4ea88d360d53cc7a34a89bef78812b84b2ea
2023-03-31 08:57:55 +02:00
libraryupgrader
aa15ec51ce
build: Updating npm dependencies
...
* grunt: 1.5.3 → 1.6.1
* stylelint-config-wikimedia: 0.13.0 → 0.14.0
Change-Id: I7e34276eb21557c2c2e3e64fb919431b1e1039fc
2023-03-31 00:33:23 +00:00
jenkins-bot
8e3007bd72
Merge "build: Updating npm dependencies"
2023-03-30 12:59:22 +00:00
Umherirrender
4e08e000e0
build: Updating npm dependencies
...
* eslint-config-wikimedia: 0.22.1 → 0.24.0
Resolve newly detected error:
* mediawiki/no-nodelist-unsupported-methods
Change-Id: If43479e88a3d39f507541f3f6b53f23004bd0e1e
2023-03-29 21:24:34 +00:00
Translation updater bot
04dfc54493
Localisation updates from https://translatewiki.net .
...
Change-Id: Idd70fc2e75a084a4f8c17113d17d44ba0cd83548
2023-03-29 09:04:38 +02:00
Stegmujo
9213f93b88
Improve performance: arrange methods by call probability
...
* checked this with: EnWikiFormulaeTest.php
* remove finding chem macro from BaseMethods::checkAndParse, because
this will be used somewhere else
* minor: remove mi from mathFont parsing function
Bug: T321599
Change-Id: I472e3ebdebfc91f97c9391268a384f788571612e
2023-03-28 17:29:03 +00:00
Stegmujo
7cd58420f7
Improve performance: remove redundant inputPreparation calls
...
Bug: T321599
Change-Id: I215b8883ace411933e7cbcd59b97df10dcc68d38
2023-03-28 12:39:08 +00:00
Stegmujo
5de6683c05
Fix colors
...
* some tests for checking colors
Bug: T327391
Change-Id: I437f8d72834f3cca7c21f97841ee4da2f1f36ed5
2023-03-27 14:42:27 +02:00