Commit graph

1572 commits

Author SHA1 Message Date
Jon Harald Søby b6c584da5f Add Saraiki namespaces
As reported on
https://incubator.wikimedia.org/wiki/Wp/skr/Template:namespaces

Change-Id: I0a132744cbfacc7d640528d6b3a130abc52f65b6
2019-10-21 22:17:16 +00:00
Translation updater bot bfd5f8b2c5 Localisation updates from https://translatewiki.net.
Change-Id: Iafa331acffe8e33111f28a1a0c0aa1cdd382491d
2019-10-21 10:00:43 +02:00
Timo Tijhof 85076760de Remove use of jquery.ui module aliases
Bug: T219604
Change-Id: If38feab0bed047f15a3833811742c5c520ddc3d0
2019-10-19 21:30:38 +01:00
Jon Harald Søby 3b6b01537e Add namespace and magic word translations for mnw and my
Add namespace and magic word translations reported to me on
https://incubator.wikimedia.org/w/index.php?oldid=4645800

Also add magic word translation for my own native Norwegian Bokmål.

Bug: T235741
Change-Id: Id475b77c444b4c1fe241e966410df3d0ace51360
2019-10-18 20:03:05 +00:00
Translation updater bot 267d2e0922 Localisation updates from https://translatewiki.net.
Change-Id: I296069e1c857269ebc18ff95df65e150ff924097
2019-10-18 09:29:31 +02:00
Translation updater bot d50fe446dc Localisation updates from https://translatewiki.net.
Change-Id: Ibb2584c99d685bed9cbf321fb500c39a3b7a75c1
2019-10-16 20:41:38 +02:00
Translation updater bot a45bf6163a Localisation updates from https://translatewiki.net.
Change-Id: I22ed85f469af8071c2ab3ca703931e304df1fd7f
2019-10-16 10:40:57 +02:00
Jon Harald Søby 1f995556c1 Localize Scribunto strings for Balinese
Bug: T234769
Change-Id: I81c70f97886fe21deef437fa20e64da02a7c816c
2019-10-14 11:47:06 +00:00
Brad Jorsch 1617bb3deb Return correct frame from mw.getCurrentFrame in certain edge cases
When an #invoke is passed as an argument to another #invoke,
mw.getCurrentFrame() at module scope will return the wrong frame.

On the PHP side, we need to always reset the frame when processing
an #invoke, not just when there's no frame already. I don't remember why
I82dde43e wasn't done that way, but changing it doesn't make any tests
fail and Scribunto tends to have good tests.

On the Lua side, we need to do the same. The logic wih mw.getCurrentFrame()
using a global that gets stored, modified, and reset in several places
was getting confusing, so this patch reworks the logic to inject a
globalless mw.getCurrentFrame() into each #invoke's cloned environment
instead.

Bug: T234368
Change-Id: I8cb5bc4dc14c9b448c9f267e0539daa75e72af4c
2019-10-14 02:39:13 +00:00
James D. Forrester 4a93593abf build: Upgrade mediawiki-codesniffer to v28.0.0
Change-Id: Ie4cb4cbee163943cd159eb0ad1d7deaac10e68d8
2019-10-11 11:31:29 -07:00
Translation updater bot a800b65303 Localisation updates from https://translatewiki.net.
Change-Id: I296c0bb536bbd7b634f647a376fc03a6d1232910
2019-10-08 09:34:21 +02:00
Max Semenik ba2d2655c4 Remove HHVM check
Change-Id: I15f607a9558c73e92bf4187f56eaad9e15d86dae
2019-10-06 03:02:01 -07:00
Max Semenik 8d9e489778 Update to use PHPUnit 6 class names
Bug: T192167
Change-Id: Ia342080fb1935e54ac42c2b3a07ab9b2a23dde42
2019-10-05 20:17:05 -07:00
Amir Sarabadani 167e4cb60f Clean up most of b/c for phpunit4
We don't support phpunit4 anymore:
https://w.wiki/9UT

Change-Id: I13a4a09e21a13c8f1e29b9e0ca29f05d1eac997d
2019-10-06 00:11:37 +02:00
Translation updater bot b3ab92546e Localisation updates from https://translatewiki.net.
Change-Id: Id92eb050a71e0a60efe9782598a215e2fd809f02
2019-10-02 09:23:00 +02:00
Translation updater bot f7bc2e34e7 Localisation updates from https://translatewiki.net.
Change-Id: If5212118e11b5fad76271700a25b04fae55ef1ca
2019-09-30 09:20:35 +02:00
Translation updater bot 07f224c1af Localisation updates from https://translatewiki.net.
Change-Id: If3fccb3516b2312766e09863883b1a091cb477d6
2019-09-26 09:15:13 +02:00
Translation updater bot 76a7649a3f Localisation updates from https://translatewiki.net.
Change-Id: I0ecc4a79624469786c4e722f57682773ca9598ff
2019-09-19 10:00:07 +02:00
Translation updater bot 720661d6a8 Localisation updates from https://translatewiki.net.
Change-Id: I7cda53b112b5fbbc382a8aeb76ac5c52ea430551
2019-09-13 10:21:00 +02:00
Translation updater bot bf46c78c4c Localisation updates from https://translatewiki.net.
Change-Id: Iac01ba298a6dde0133deba3b89bea19c7be662f1
2019-09-03 10:29:29 +02:00
Translation updater bot e6e5bb2042 Localisation updates from https://translatewiki.net.
Change-Id: Id96f070b8f6508438c052a9282e0e7444c7dd55a
2019-09-02 10:20:43 +02:00
Amir Sarabadani 248dcae392 Split LuaEngineTestBase to LuaEngineUnitTestBase and LuaEngineTestBase
And use the unit test base on most of the tests, except the ones that need
database. This makes tests considerably faster.

Bug: T230701
Change-Id: Ifbede1e2610c672b4d8a83ce41f74200e0c97be9
2019-08-31 10:51:26 +02:00
libraryupgrader 48b0fd77b5 build: Updating eslint-utils to 1.4.2
* https://npmjs.com/advisories/1118

Additional changes:
* Added .eslintcache to .gitignore.

Change-Id: I84ddbda48c364f519eedae40d41043be041fedb0
2019-08-23 04:16:35 +00:00
Umherirrender fc7a6d5b5e Get GenderCache from MediaWikiServices
GenderCache::singleton is deprecated since 1.28
The service exists since 1.28, this extensions required 1.31

Change-Id: I3925f9ac2facc59cf37c82e16284e53c61abbc6e
2019-08-21 17:13:43 +00:00
Translation updater bot 8d8507d18b Localisation updates from https://translatewiki.net.
Change-Id: I9902989509d2004ee373e9e7a9eaebf168ef0d29
2019-08-21 10:09:17 +02:00
Translation updater bot f84590f5ba Localisation updates from https://translatewiki.net.
Change-Id: I6b9a44a07191658550337984f62bf90d080121ff
2019-08-15 09:16:48 +02:00
Amir Sarabadani 013d57f98c Avoid using MediaWikiIntegrationTestCase on unit tests
MediaWikiIntegrationTestCase (formerlly know as MediaWikiTestCase)
is a very heavy class that resets the database, caches and services between
every test.

Bug: T229180
Change-Id: I3d328d6ba7009e87c0f432a4f8d84d774ea57e5f
2019-08-14 12:31:47 +00:00
Translation updater bot a36cb74268 Localisation updates from https://translatewiki.net.
Change-Id: I1c4db66726637ab76fe1e1b4d6793aa8d2b4786f
2019-08-09 09:10:44 +02:00
Amir Sarabadani 2fd7287512 Add group database to TitleLibraryTest
This test writes to the database (like $page->doEditContent())
so it needs group database

Change-Id: I13316432048090e8d1fd5416eda1c7707f589270
2019-08-03 20:07:09 +02:00
libraryupgrader 8deabe62d4 build: Updating dependencies
composer:
* mediawiki/mediawiki-codesniffer: 24.0.0 → 26.0.0

npm:
* set-value: 2.0.0 → 2.0.1
  * https://npmjs.com/advisories/1012
  * CVE-2019-10747
* union-value: 1.0.0 → 1.0.1
  * https://npmjs.com/advisories/1012
  * CVE-2019-10747
* mixin-deep: 1.3.1 → 1.3.2
  * https://npmjs.com/advisories/1013
  * CVE-2019-10746
* lodash: 4.17.11 → 4.17.15
  * https://npmjs.com/advisories/1065
  * CVE-2019-10744

Change-Id: I8a6a2b4264a878c01d1d5a1b58ea59eb400f26a5
2019-08-03 04:53:01 +00:00
Translation updater bot 03b8d6562b Localisation updates from https://translatewiki.net.
Change-Id: I26892f57888b3251163267bba4dff54ffdc40579
2019-07-29 09:15:54 +02:00
Ladsgroup 9bedee0604 Revert "Suppress wrong phan errors"
This reverts commit 0cfb5422dc.

Reason for revert: Not needed anymore and actually causing phan to fail on master

Change-Id: I2705489f9247e0d6741aaa04fe9c9800bcbda914
2019-07-28 14:14:41 +00:00
Translation updater bot 09207f38f1 Localisation updates from https://translatewiki.net.
Change-Id: Ied328a5d38fd5f3f6c4a0a8cd37d5fa845dca6ac
2019-07-27 09:30:54 +02:00
Amir Sarabadani 5be8a76d0f Reduce CPU timeout time in testTimeLimit
This makes these tests the slowest ones to run

Change-Id: Ibfb021d63432f556d1eb5de31341a5bc64d76a85
2019-07-23 14:47:14 +00:00
Amir Sarabadani 0cfb5422dc Suppress wrong phan errors
\BagOStuff::makeKey() and \BagOStuff::makeGlobalKey() can take
any number of arguments but phan gives out PhanParamTooMany
and this breaks master avoiding anything to be merged

Change-Id: I4b313606e03565182552d9c581feccabaa408022
2019-07-22 14:57:05 +00:00
Aaron Schulz e5097e6145 Use "vary-revision-sha1" over "vary-revision" in getContentInternal()
These allows for some chance of avoiding extra save parses.
Also add wfDebug() call to mention the vary-* flag.

Bug: T226432
Depends-on: Idcd30a3fa3f7012dac76ce8bbf46625453ae331f
Change-Id: Id3bc207382aac90bd63df2d83d6334aae9b2477d
2019-07-18 01:48:12 +00:00
James D. Forrester 9309269892 build: Upgrade phan-taint-check-plugin from 1.5.x to 2.0.1
Change-Id: I3aa1b3ee7de78c11b66fdce02686720587eb4f72
2019-07-11 08:13:40 +00:00
Translation updater bot 210a4a8bcc Localisation updates from https://translatewiki.net.
Change-Id: Ia2278a3ce2845d42406be197f9a2aa607c262e34
2019-07-07 22:41:30 +02:00
Tulsi Bhagat 57755a6ebb Add Namespaces translation for Punjabi
Bug: T226959
Change-Id: Ic0685cf4db833b5a73203a007de8b1bb236f55a0
2019-07-02 08:46:49 +00:00
Translation updater bot 93a187ceb8 Localisation updates from https://translatewiki.net.
Change-Id: I54b873efa8eb245629790dc97208492baba61dfb
2019-06-30 22:39:23 +02:00
Translation updater bot 4ae828fe9e Localisation updates from https://translatewiki.net.
Change-Id: If7e2e43000a29101971a51929da39ad280468c34
2019-06-24 08:39:43 +02:00
Reedy f386ff68d5 Remove PHP entry point
Move NS constants to seperate file for static analysis

Bug: T140007
Change-Id: I525c6e5b1c8e934d179e330c89f3f29cce335bd6
2019-06-21 00:02:08 +00:00
Reedy 860f0284eb Rescue PHP comments into config descriptions
Change-Id: I46b46558344b2752f27d447c47270b4986923c3c
2019-06-20 23:56:31 +00:00
Reedy e4a59833b7 Update manifest_version to version 2
Change-Id: Ied0149f8d23bbc50d9f84736e44e1079f2b7d7ab
2019-06-20 23:34:10 +00:00
Brad Jorsch 88be4ec461 LuaInterpreterTest: Limit the busy loop
The test currently runs a busy loop that does string operations 1
billion times, when really it just needs something that takes more than
2 seconds of CPU time. On the other hand, there's another test that uses
the same method to run only 100 string operations for a different test.

Add a second parameter to have it exit early if enough CPU time has been
used, and use it in the first test.

Bug: T220685
Change-Id: I32309f049bcfb2e1310651818ff8674f0a311f40
2019-06-20 12:11:40 -04:00
libraryupgrader 0014240a8f build: Updating mediawiki/mediawiki-phan-config to 0.6.1
Change-Id: I0396326049bbfa53934b645ba8d3e0120030341d
2019-06-11 00:09:17 +00:00
Brad Jorsch 164974c4b5 ustring: Replace UtfNormal hack with a different one
Ideally we'd just have composer.json require UtfNormal so we'd know
where it is and have an autoloader to load it for us, but that seems to
not be done in the world of MediaWiki extensions.

Previously we had been taking paths to the two data files from UtfNormal
and loading them into a stub class, but phan has started complaining
about the definition of the stub class colliding with the real UtfNormal.
So let's try loading the real UtfNormal\Validator and its data files.
Hopefully this continues to not try to pull in any other files via the
nonexistent autoloader.

Change-Id: I93baf20f0eef1892685e272793b4f99236e8c905
2019-06-11 00:09:15 +00:00
Translation updater bot 263e754238 Localisation updates from https://translatewiki.net.
Change-Id: Id35ba6e80c615a1b8aef89cae3afd46268715670
2019-06-10 22:55:43 +02:00
libraryupgrader 25c181a5d1 build: Updating npm dependencies for security issues
Committed package-lock.json (T179229) too.

Change-Id: I870cf94d758e2cfbd2838f6f39aacb96d295f012
2019-06-08 20:48:26 +00:00
Translation updater bot 93099e36d6 Localisation updates from https://translatewiki.net.
Change-Id: Iec574c5b38e37ac7761520e9273b584a4c974ee5
2019-06-06 22:48:59 +02:00