Commit graph

2144 commits

Author SHA1 Message Date
Petr Pchelko da8e918fb3 Enable most tests which were previously disabled
Additionally - remove RestbaseInterface::checkBackend.
When HTTP requests are banned from unit tests this method
makes no sence.

MathoidCli tests were not reenabled cause it's a bit hard
to mock shell acceess. Hopefully as part of Shellbox
transition we can have MockShell trait in core and reenable
those tests

Bug: T265628
Depends-On: I350ed59af603a0504704af3265787a4be8f2dc2a
Change-Id: I294d0ed905193850dc38cb3071eb9b31c8863121
2021-08-12 08:57:58 -07:00
jenkins-bot 8345a5ba9e Merge "First pass at cleaning up error handling" 2021-08-11 16:07:45 +00:00
Petr Pchelko 0cd6acd3f7 First pass at cleaning up error handling
The overall aim is to make renderer and checker
proper services and stop storing each operation
state in them. This patch reduces the number of
places where we store the lastError. I've decided
to stop here in the first pass so that the patch
doesn't grow out of proportion.

Change-Id: Ice7e1f9f2f074d62ef1819355a510ce0b0335d88
2021-08-11 06:05:33 -07:00
jenkins-bot 9bc4ece1f3 Merge "MathLateXML: override getPostData" 2021-08-10 20:02:47 +00:00
Petr Pchelko 404315973e MathLateXML: override getPostData
Instead of having a separate method for getting the post data
in MathLateXML, we can just override getPostData method from
parent and make the makeRequest method signature much simpler.

Change-Id: I07b683856885396ff7b6b5a40df79399828c8214
2021-08-10 12:12:53 -07:00
Translation updater bot 00d809bbd6 Localisation updates from https://translatewiki.net.
Change-Id: I9421e6b2d66b9bca9ea85bfb559ee61d7ec8a7e0
2021-08-09 08:24:30 +02:00
jenkins-bot 4ad4a17317 Merge "Add JS unit test" 2021-08-05 16:08:32 +00:00
physikerwelt (Moritz Schubotz) be9d701825
Add JS unit test
Add a first test to check that the testing framework is functional.

Bug: T288074
Change-Id: If4a6d14f14d7b964db31781b3caf23eb383c06c1
2021-08-05 09:54:10 +02:00
Petr Pchelko 44ad3fbdf9 MathMathML::batchEvaluate - only pass MathRenderer
We do not need a ParserObject in the batchEvaluate,
so only pass in the MathRenderer

Change-Id: Id2e8cad709c08a0225597cb1fbf85289830f828b
2021-08-05 07:09:59 +00:00
jenkins-bot 32185cd9d0 Merge "Remove deprecated feature to declare multiple mathoid hosts" 2021-08-05 07:00:13 +00:00
jenkins-bot 6bea1c3dd0 Merge "Make use of MockHttpTrait instead of custom mechanism" 2021-08-05 06:59:26 +00:00
jenkins-bot b00ec91ff6 Merge "Create Math.RendererFactory service" 2021-08-04 12:53:00 +00:00
jenkins-bot 1171ac128a Merge "Switch parser hooks to a new-style hook handler" 2021-08-04 12:46:17 +00:00
Petr Pchelko ddff31bb0d Remove deprecated feature to declare multiple mathoid hosts
This is not the job of an extension to be a load balancer.
This feature was already deprecated and is not used in WMF prod.

Change-Id: I950dbaf45bc40d9d9ed61b1c98b339d3d38326fc
2021-08-03 09:21:43 -07:00
Translation updater bot a18acb7c7e Localisation updates from https://translatewiki.net.
Change-Id: I21b1a6ed1a30bdccc5e32d4ee1ee32e08ddd9b23
2021-08-03 08:11:54 +02:00
Petr Pchelko 45090ad369 Make use of MockHttpTrait instead of custom mechanism
Depends-On: I4c3aab6ab88695729b4f398dacf3575fbdb4dad4
Change-Id: I60b192c9b9c2ae434fb3f9aff8c460e0fc0806b1
2021-08-02 13:46:44 -07:00
Petr Pchelko e6507e95d7 Create Math.RendererFactory service
Change-Id: I474d746bae81ddf4322814c45141c981ecdb077b
2021-08-02 11:57:57 -07:00
Petr Pchelko e9bc5d3a42 Switch parser hooks to a new-style hook handler
Change-Id: Ie09e4cfb31a8aaea6f21d7472ae3a067dcc7c40b
2021-07-31 08:17:29 -07:00
Petr Pchelko ed08441fa3 Remove ParserTestTables hook handler.
This hook is no longer needed by core so it's not
called anymore.

See I5124789fac333a664b73b4b4a1e801ecc0a618ca

Change-Id: I9a554b4e70a2564834e1df4058b1ad5cb98a56e3
2021-07-30 13:00:46 +00:00
libraryupgrader e447231adb build: Updating npm dependencies
* postcss: 7.0.35 → 7.0.36
  * https://npmjs.com/advisories/1693 (CVE-2021-23368)
* ws: 7.3.0 → 7.5.3
  * https://npmjs.com/advisories/1748 (CVE-2021-32640)
* glob-parent: 5.1.1 → 5.1.2
  * https://npmjs.com/advisories/1751 (CVE-2020-28469)
* trim-newlines: 3.0.0 → 3.0.1
  * https://npmjs.com/advisories/1753 (CVE-2021-33623)
* normalize-url: 4.5.0 → 4.5.1
  * https://npmjs.com/advisories/1755 (CVE-2021-33502)

Change-Id: I41ee23a4e2fdb467df8bd06ed55d844274794b78
2021-07-29 11:41:26 +00:00
Translation updater bot 877f9a6fd0 Localisation updates from https://translatewiki.net.
Change-Id: I30295355466186350eca43120a4b83e324e20a27
2021-07-29 08:45:03 +02:00
sahil e371e23dc1 selenium: Update wdio-mediawiki
wdio-mediawiki v1.1.1:
- Includes wdio-defaults.conf.js file that vastly simplifies wdio.conf.js.
- Replaces @wdio/spec-reporter with @wdio/dot-reporter.
- Introduces video recording.

Bug: T283597
Change-Id: Id488159c2a5b12d1b44a7037fa3038a2a541b2f1
2021-07-28 16:43:40 +05:30
vladshapik a024908d5f Avoid using deprecated Parser::getUser
Bug: T287168
Change-Id: If3443b879ee01c3cbdbf94d1a690bd9c3bf182b1
2021-07-27 17:50:25 +03:00
libraryupgrader b409746fc6 build: Updating dependencies
composer:
* mediawiki/mediawiki-codesniffer: 36.0.0 → 37.0.0

npm:
* postcss: 7.0.35 → 7.0.36
  * https://npmjs.com/advisories/1693 (CVE-2021-23368)
* ws: 7.3.0 → 7.5.3
  * https://npmjs.com/advisories/1748 (CVE-2021-32640)
* glob-parent: 5.1.1 → 5.1.2
  * https://npmjs.com/advisories/1751 (CVE-2020-28469)
* trim-newlines: 3.0.0 → 3.0.1
  * https://npmjs.com/advisories/1753 (CVE-2021-33623)
* normalize-url: 4.5.0 → 4.5.1
  * https://npmjs.com/advisories/1755 (CVE-2021-33502)

Change-Id: Ie14979780cdbd04fa2804f5317e8b0f6b0029470
2021-07-23 02:28:22 +00:00
jenkins-bot 77c4b6c561 Merge "Use RepoLinker for MathWikibaseConnector::buildURL()" 2021-07-21 10:21:50 +00:00
Translation updater bot 08ab221307 Localisation updates from https://translatewiki.net.
Change-Id: I8bc216b0a1f278eb98458ecc746856fa607a3b58
2021-07-19 08:16:08 +02:00
Lucas Werkmeister 86af4f10cd Use RepoLinker for MathWikibaseConnector::buildURL()
Note that this changes the URL, which is directly shown to the user
(SpecialMathWikibase::buildPageRepresentation() uses it as the link
text). I think that’s okay (though it would probably be nicer to use
only the item ID as the text).

Bug: T286539
Change-Id: I50c49040846a5e08e5a354641fff35598034ceb9
2021-07-13 11:53:32 +02:00
Translation updater bot b20186016f Localisation updates from https://translatewiki.net.
Change-Id: Ic835f19ba5b0ab142c420f5bb729e9ccb1fd3600
2021-07-13 08:11:49 +02:00
Translation updater bot 98e5916d6e Localisation updates from https://translatewiki.net.
Change-Id: I375f3730fcb7d1fbbbb61761872268bf0599591d
2021-07-12 08:06:38 +02:00
Translation updater bot 45757cd343 Localisation updates from https://translatewiki.net.
Change-Id: I3f0f927acf8ee468af44c078d853e764e7ccf326
2021-06-28 09:23:16 +02:00
Amir Sarabadani b4fd28f842 Replace class_exists with ExtensionRegistry
And also changing name of the function because it's making phpcs unhappy

Bug: T274275
Change-Id: I8d75fb919f87d2404d61ec756bc1cd27510f6d2a
2021-06-21 13:58:31 +02:00
Translation updater bot 3fc19ea734 Localisation updates from https://translatewiki.net.
Change-Id: I60787294b2df569822469f7849ba570dca5de51c
2021-06-15 08:33:02 +02:00
Translation updater bot 65584bead8 Localisation updates from https://translatewiki.net.
Change-Id: Ib7c6bb703a58e7e1218fa4757c4cbb15cd335bbf
2021-06-14 08:37:41 +02:00
Translation updater bot e4208a1194 Localisation updates from https://translatewiki.net.
Change-Id: Ib49929823d33ed0e038109740d7465e86bb04131
2021-06-04 08:36:53 +02:00
Translation updater bot 66a8a5e408 Localisation updates from https://translatewiki.net.
Change-Id: I6c20e1a781d63378c0c20cb8050fd2fa79b891e0
2021-06-02 14:35:25 +02:00
Translation updater bot 4e57d522b9 Localisation updates from https://translatewiki.net.
Change-Id: I6d16e1d9a08a917d66a0b29c92c64fd4025fcb20
2021-05-31 08:31:48 +02:00
Translation updater bot fff9011388 Localisation updates from https://translatewiki.net.
Change-Id: If59cb87a183cb4f54751752661c58f6499ed931e
2021-05-27 12:05:44 +02:00
sahil eb850da0e4 selenium: Upgrade WebdriverIO to v7
Update npm packages: @wdio/* and webdriverio.

Bug: T274579
Change-Id: I3ad29933c91fdcbf2382318302746daf66fffca7
2021-05-25 17:46:46 +00:00
libraryupgrader d296262b89 build: Updating npm dependencies
* hosted-git-info: 2.8.8 → 2.8.9
* ua-parser-js: 0.7.21 → 0.7.21
* ua-parser-js: 0.7.21 → 0.7.21
* ua-parser-js: 0.7.21 → 0.7.28
  * https://npmjs.com/advisories/1679 (CVE-2021-27292)
* browserslist: 4.14.7 → 4.16.6
  * https://npmjs.com/advisories/1747 (CVE-2021-23364)

Change-Id: I759404102c41c917fc8c6968fe2c0da55df23208
2021-05-25 01:33:33 +00:00
Translation updater bot aa98d8031a Localisation updates from https://translatewiki.net.
Change-Id: Ieeb55c960bfd60b2daef28d6f8d3124515a5679a
2021-05-24 09:54:29 +02:00
Translation updater bot b1e0f4326c Localisation updates from https://translatewiki.net.
Change-Id: Iba94342eac3da12fce56a1b1735497f19a6a2f35
2021-05-19 08:43:20 +02:00
jenkins-bot cdc2fc89c8 Merge "Remove wgMathUseRestBase" 2021-05-15 17:17:44 +00:00
jenkins-bot fb4cd8e6ad Merge "Selenium: update README.md file" 2021-05-14 19:44:09 +00:00
physikerwelt (Moritz Schubotz) d25dc0fb79 Remove wgMathUseRestBase
Bug: T274436
Change-Id: I0c0311130516646833ef862e047c8f540f40c92a
2021-05-14 14:39:25 +02:00
Translation updater bot 6117a8eb6d Localisation updates from https://translatewiki.net.
Change-Id: I9185f4e9e417513d1e009a8d750f10f69ecf7fb0
2021-05-14 08:44:49 +02:00
Translation updater bot 42165fed9c Localisation updates from https://translatewiki.net.
Change-Id: I0be76bae8977524ca88f46c2e21fb5c165a61542
2021-05-12 09:22:23 +02:00
libraryupgrader aa99896701 build: Updating npm dependencies
* grunt: 1.3.0 → 1.4.0
* lodash: 4.17.19 → 4.17.21
  * https://npmjs.com/advisories/1673 (CVE-2021-23337)
* hosted-git-info: 2.8.8 → 3.0.8
  * https://npmjs.com/advisories/1677 (CVE-2021-23362)
* ua-parser-js: 0.7.21 → 0.7.28
  * https://npmjs.com/advisories/1679 (CVE-2021-27292)
* postcss: 7.0.35 → 8.2.15
  * https://npmjs.com/advisories/1693 (CVE-2021-23368)

Change-Id: I29d3eb33e8aa6ac62fe84ea93b2d14cdc3b1fb8b
2021-05-11 12:45:13 +00:00
Translation updater bot 44cb52b97b Localisation updates from https://translatewiki.net.
Change-Id: I08b40eb727cc3da8e2aa66f06da3c83f54c95e4e
2021-05-11 09:07:08 +02:00
Translation updater bot 06677e6f2c Localisation updates from https://translatewiki.net.
Change-Id: Ic00b736a689ccbcaab9ac0c54045d3c52c1020af
2021-05-10 08:52:28 +02:00
sahil b43acdd0d0 Selenium: update README.md file
Bug: T210726
Change-Id: I99d32dee1d8b8d2949b475abb94d4b3705e1fda6
2021-05-07 17:39:17 +05:30