Commit graph

2066 commits

Author SHA1 Message Date
jenkins-bot 646fcf6ad1 Merge "Update WikibaseClient::getSite() call" 2021-03-09 10:57:24 +00:00
jenkins-bot 2652cf4e64 Merge "Update WikibaseClient::getSettings() calls" 2021-03-09 10:57:12 +00:00
libraryupgrader f2edc70021 build: Updating eslint-config-wikimedia to 0.18.2
Change-Id: I8ac79545d8941943bcc470f7fcef5323a588c8a5
2021-03-07 04:54:19 +00:00
Lucas Werkmeister a9d2b684b8 Update WikibaseRepo::getStringNormalizer() call
Bug: T276430
Change-Id: Ibc9dc74650b3e6bd726ae452a744c9b433ccef08
Depends-On: I58a9dc2f9f185f260bd6da84840f2b58905d38fa
2021-03-04 14:37:41 +01:00
Lucas Werkmeister 2afaad505d Update WikibaseClient::getSite() call
Bug: T276349
Change-Id: I37b7876c43a7c21fc14f228f3133ed897742bb4e
Depends-On: I9724724a635b808a7f1a8c88447216dc0d1dd738
2021-03-04 11:37:03 +01:00
Lucas Werkmeister 9247f49067 Update WikibaseClient::getSettings() calls
Bug: T275412
Change-Id: I9d0762886cebb96c0d5de911248a53a9ffc14a0f
Depends-On: I3506ad80d57639f066c2b86358058b4432b6a666
2021-03-04 11:36:55 +01:00
Translation updater bot ad7eaabb9d Localisation updates from https://translatewiki.net.
Change-Id: Id0331bf88eeb075ecadd1e9f46c7eb3b65b8a0d4
2021-03-04 08:38:43 +01:00
jenkins-bot b1d8d072e3 Merge "Update getEntityIdParser method callers to static" 2021-03-02 14:06:48 +00:00
Translation updater bot 0bf7c5fec0 Localisation updates from https://translatewiki.net.
Change-Id: Ia8f86d24284248dc6bc14beca12f8479b3fbe2e2
2021-03-02 08:50:00 +01:00
Itamar Givon 6a8f7df8ad Update getEntityIdParser method callers to static
Bug: T275886
Depends-On: I5bcd59b954521b74eeae4f2f207ebb35ccba97d7
Change-Id: I1f930a809a6094e2079b972a78cc3403ddeb6f73
2021-03-01 16:34:14 +01:00
Translation updater bot a5f2825e53 Localisation updates from https://translatewiki.net.
Change-Id: Ic4a414c15043b76a98f921f602f8ac97d9a6b37d
2021-03-01 08:52:22 +01:00
Translation updater bot 363550d13f Localisation updates from https://translatewiki.net.
Change-Id: I6f431b9398214fde6682f5558be7caaf8ecf040e
2021-02-25 08:38:54 +01:00
jenkins-bot 7bb3d281da Merge "Use Mathoid to validate Wikibase formuale" 2021-02-23 21:06:52 +00:00
jenkins-bot 92cc03d300 Merge "Remove redundant ExtensionRegistry callback" 2021-02-18 21:51:29 +00:00
Moritz Schubotz (physikerwelt) 35d57a65cc Use Mathoid to validate Wikibase formuale
* Reenable math validator tests
* Introduce $wgMathUseRestBase which defaults to true
  and determines if mathoid is used via RESTbase or directly
* The effect of this change can be tested by setting $wgMathUseRestBase
  to false, and then creating a new statement of a property with type math.
  One should see a connection to mathoid for every new string and one should
  also see the WAN cache for the check endpoint to fill up. Note that
  setting WANObject cache to the database simplifies the investigation
  of the WAN cache content.

Bug: T274436
Change-Id: I40109e9e09464da78bf855646fb800ee87c1ea67
2021-02-18 22:13:58 +01:00
jenkins-bot 132dd74949 Merge "Update a few type hints" 2021-02-18 18:27:16 +00:00
Thiemo Kreuz 56ad7ff334 Update a few type hints
Some random bits I found while working on some other code.

Change-Id: I29be84cb54e05af5030defd99cb1f42f9c6a5b63
2021-02-18 16:20:35 +00:00
Thiemo Kreuz 8632db2dfc Use modern new static syntax instead of get_called_class
Change-Id: I901505912784fa32a694c4c854eee86c42fd9c0c
2021-02-18 16:16:42 +00:00
Translation updater bot e4577337d5 Localisation updates from https://translatewiki.net.
Change-Id: Ia6c03b47d8dc3a663ccbc57526a8755d7eebb440
2021-02-15 10:05:44 +01:00
Timo Tijhof 2308e436ce Remove redundant ExtensionRegistry callback
This additional hook does not seem to be needed.

- wgMathValidModes: All access to this information already uses
  getValidModes() and thus there is no need to write this back
  to the input variable (use outside the extension is not supported
  and it is already not used as cache either).

- wgMathDisableTexFilter: All access already uses getDisableTexFilter()
  Move the last bit of logic there instead.

- wgDefaultUserOptions: Duplicate of this already exists in the
  onGetPreferences hook higher up.

This seems almost too easy, so I suspect someone tried this before
and intentionally didn't finish it because of some non-obvious
issue.

See T189966 for related perf anaysis.

Change-Id: I4d7fdf6fcae3d44a37bf80d9c72fff2b4361f0c9
2021-02-10 23:29:49 +00:00
Moritz Schubotz (physikerwelt) 7780424504 Extend mathoids Checker functionality
* Keep status code and response in memory
* Allow external cache preloading.
  This will be required for the one-stop mathoid batch rendering
* Duplicate functionality from the restBASE interface
** Error rendering
** Validity checks
** getter for validated tex

Depends-On: Ic779e671ada0d0306e0935e578b47c431abd520e
Change-Id: I066975b9ba03f5861f6c92687cba4743044ea82a
2021-02-09 23:36:03 +01:00
Translation updater bot 6e52bc2807 Localisation updates from https://translatewiki.net.
Change-Id: Ia1cd024d58e46e8b00349b33f9abe213ea56d2f3
2021-02-08 08:42:21 +01:00
libraryupgrader 79a7324eed build: Updating dependencies
composer:
* mediawiki/mediawiki-codesniffer: 34.0.0 → 35.0.0
  The following sniffs are failing and were disabled:
  * MediaWiki.Commenting.PropertyDocumentation.MissingDocumentationPrivate
  * MediaWiki.Commenting.PropertyDocumentation.MissingDocumentationProtected
  * MediaWiki.Commenting.PropertyDocumentation.MissingDocumentationPublic
  * MediaWiki.Commenting.PropertyDocumentation.WrongStyle

* mediawiki/minus-x: 1.1.0 → 1.1.1

npm:
* eslint-config-wikimedia: 0.17.0 → 0.18.1
  The following rules are failing and were disabled:
  * no-useless-escape

Additional changes:
* Added the "composer phan" command to conveniently run phan.

Change-Id: I1c641a4945f94337ca22763920601400ee9ab691
2021-02-06 12:19:19 +00:00
jenkins-bot 33dee20ee1 Merge "Improve debugging" 2021-02-05 21:32:56 +00:00
Moritz Schubotz (physikerwelt) 67720e080d Improve debugging
* simplify generation of debug output
* invert if statement to reduce indention
* minor fixes:
** update storedInDatabase
** store PNG output
** restore matoid style handling from
   Ief1b6345c17db41f92684e00233d57240e97599f

Bug: T252389
Change-Id: I71853124e5f2633f94fc9aacdedc24a86f27d08b
2021-02-05 18:08:29 +01:00
Moritz Schubotz (physikerwelt) 2e0276c7f9 Remove mathoids coverage test
Before the HTTP tests were blocked T265628, the Math extension did
test all examples from w:Help:TeX and additional regression test
against the configured mathoid/restbase instance. Effectively, those
tests did only verify the hashes returned from mathoid/restbase.
We now drop this kind of integration test.

Bug: T265646

Change-Id: Iffe5105457297fdc2222af9f11ff56e78c479f32
2021-02-02 19:16:21 +00:00
Translation updater bot 71e77e82bf Localisation updates from https://translatewiki.net.
Change-Id: I1294d0dc6ed851432ce6d5fb404f0ba48a3fc7c1
2021-02-02 08:39:23 +01:00
Moritz Schubotz (physikerwelt) 50a8fe1079 Convert Math to abstract schema
Bug: T268561
Change-Id: I0c7c1fec8cc4d2b7eb6e14db03b1b753ba95193b
2021-01-30 19:28:21 +01:00
Translation updater bot 51f405c413 Localisation updates from https://translatewiki.net.
Change-Id: I710c2198423e9ab613ca5bbbc44187ace19f216b
2021-01-25 08:54:03 +01:00
Umherirrender bcaab9cbf6 Improve function and property documentation
Change-Id: Ic809107bbce3d9019e0c9239281635a738ccdc36
2021-01-23 01:46:48 +01:00
jenkins-bot ff51ab3207 Merge "Fixes tags data being lost after first onParserAfterTidy call" 2021-01-22 17:52:45 +00:00
Translation updater bot a194598672 Localisation updates from https://translatewiki.net.
Change-Id: Iaf27e72914864966c45f0d795f2eba05b4b50b9a
2021-01-21 08:32:15 +01:00
Translation updater bot e4541b544f Localisation updates from https://translatewiki.net.
Change-Id: Ic28fac1c272926285ff69ec0f347501cf53f459a
2021-01-18 08:38:41 +01:00
Vedmaka d110f7eeef
Fixes tags data being lost after first onParserAfterTidy call
This patch is a result of an observation that when <math> tags being
placed before {{#tree:..}} call they are not rendering correctly and
displaying -postMath strip markers instead, so never being replaced by
the actual math markup.

The reason is that the TreeAndMenu do parse operations within its parser
function callback and considering the MathHooks::onParserAfterTidy is
programmed to clear all the MathHooks::$tags data after first call of
the hook it looses all the data stored.

This issue also should appear of <math> is used with any other extension
function that calls parser `parse`, `recursiveTagParse`, etc

The patch modified MathHooks::onParserAfterTidy callback making it
remove tag data only after successful replacement instead of clearing
all the tags data on the first call

Change-Id: Icd115c61492d2ee9aa2004ad1940ff837bd1059a
2021-01-15 11:11:28 +03:00
Translation updater bot 6a359d2907 Localisation updates from https://translatewiki.net.
Change-Id: If2770212d280dc0f58a2c18fa24895887f125ab8
2021-01-14 08:50:41 +01:00
Translation updater bot 832c98694b Localisation updates from https://translatewiki.net.
Change-Id: Ia179d192b59a44a3851529fa76ca80e5cdb46bc0
2021-01-08 08:56:05 +01:00
Translation updater bot 2747026419 Localisation updates from https://translatewiki.net.
Change-Id: I7b61fd8f907fbbba99697e7331bd71a6a809bfe1
2021-01-04 08:44:02 +01:00
Translation updater bot 784cbb93bc Localisation updates from https://translatewiki.net.
Change-Id: I9b4917727b3373b911ce137eb1359b6dcdbf744f
2020-12-30 10:14:23 +01:00
Translation updater bot b4c5632d96 Localisation updates from https://translatewiki.net.
Change-Id: I81a7075ee5c56442d08f1419621189c3ad5122f4
2020-12-28 10:39:07 +01:00
jenkins-bot 51a51bccb0 Merge "Implement wikidata entity selector" 2020-12-20 19:22:33 +00:00
jenkins-bot 88c89af181 Merge "Avoid wfMessage in special page" 2020-12-19 21:55:18 +00:00
libraryupgrader 0dd8ac3389 build: Updating mediawiki/mediawiki-phan-config to 0.10.6
Change-Id: Id0c2f41f1e62f19cbd2fc6cbc00e9e49138394ac
2020-12-19 21:10:12 +00:00
Umherirrender 9f4f4301cc Avoid wfMessage in special page
Use self::msg instead to avoid global state

Change-Id: I9a9af6ff854fdd94929d06ea270c044320f62cab
2020-12-19 20:19:59 +00:00
Moritz Schubotz (physikerwelt) ba19b3e1cd Implement wikidata entity selector
The current wikidata entity selector requires WikibaseRepo to be enabled on the client wiki, which is only the case for very small installations.

We implement our custom entity selector that
* displays the item label and
* uses the description as tool-tip.

The implementation was inspired by
mw.widgets.TitleInputWidget.

Bug: T229939
Change-Id: I35d6cc317cf2984d9de6e062f79030f5c31c0811
2020-12-19 09:11:40 +01:00
Umherirrender 99c3e91fb4 Add missing @var and improve documentation
Change-Id: I8be91329f1f85f3bf40ea19d3b7e0be7dc655df1
2020-12-17 21:53:28 +01:00
Translation updater bot 140b6101f2 Localisation updates from https://translatewiki.net.
Change-Id: I9a468efbb36b4a237019eadc598931f294121bb4
2020-12-17 08:55:33 +01:00
Translation updater bot f369513b16 Localisation updates from https://translatewiki.net.
Change-Id: I9fa6686509f9f67151009aa97fa671a373b7346e
2020-12-16 08:30:18 +01:00
jenkins-bot bef99f610b Merge "MathGenerateTests: Remove use of $wgUser" 2020-12-14 21:57:06 +00:00
libraryupgrader 823552f6ec build: Updating ini to 1.3.8
* https://npmjs.com/advisories/1589

Change-Id: Ibd68a60ce3e67e7ee096756d89a852910e5ac06d
2020-12-13 12:00:28 +00:00
Translation updater bot 0c960b38a3 Localisation updates from https://translatewiki.net.
Change-Id: I492b44d093c06d31c1b2ba04792d2276dc65b395
2020-12-11 08:35:52 +01:00