Commit graph

162 commits

Author SHA1 Message Date
Kunal Mehta 43f3539a7c Set an expiry for memcache entries
Use the same expiry as the parser cache since this is a derivative of
the parser cache.

And avoid wfMemcKey while we're at it.

Change-Id: Ieba084aff4b8beb180da01d9cc4b8a2857569171
2017-06-11 20:12:55 +00:00
Amir Sarabadani bfcf243657 Add CODE_OF_CONDUCT.md
Bug: T165540
Change-Id: Id9777e997b4f1cb7f21853bf957f8b3e355adbaf
2017-06-07 16:17:21 +04:30
jenkins-bot 7a2dad5780 Merge "Chunk page ids in internal API call to avoid too-many-pageids-for-query" 2017-05-30 22:02:30 +00:00
Translation updater bot 0108ec44d1 Localisation updates from https://translatewiki.net.
Change-Id: I2668a56cae48c5807ee0f7800c7dff2c2de888af
2017-05-28 22:39:42 +02:00
Brad Jorsch 1f1c7e639d Chunk page ids in internal API call to avoid too-many-pageids-for-query
One of many reasons that internal API calls are bad.

Bug: T41936
Change-Id: I3d2cf2b4f619f590e74a88fa4a78832b8be8495e
2017-05-26 17:17:21 -04:00
Baha 182304dc6d API: Limit maximum number of characters when exchars is passed.
Set the limit to 1200 characters.

Bug: T156467
Change-Id: I4e53b26a3f57f5f5cf7acbd3702c8bc4541a5eb5
2017-05-24 18:04:20 -04:00
jenkins-bot a803755b3e Merge "Add phpcs and make pass" 2017-05-24 13:17:49 +00:00
Umherirrender 93be5e75f6 Add phpcs and make pass
Change-Id: I2f95b3dfa260d955a5a420d0bf3c914382c09746
2017-05-19 18:39:27 +02:00
Baha 6bfe60508a Increase default API limit from 1 to 20
Bug: T153707
Change-Id: I6ba3adb7c680e1a60461cd3903cbf8640721ea02
2017-05-19 09:39:13 -04:00
Brad Jorsch 93e648c872 Add <style> to list of tags to remove
For future compatibility with TemplateStyles.

Change-Id: I473f176a66a694c7a9f4e11d5c6183af8f9ca2ad
2017-05-16 18:10:59 +00:00
jenkins-bot 7c81c6ec9f Merge "Suppress parser output wrapper div" 2017-05-16 14:49:40 +00:00
Brad Jorsch 42e87ac3b6 Suppress parser output wrapper div
It confuses the code that munges the HTML to produce an extract.

By itself this won't fix the bug, but together with a core change to
avoid polluting the parser cache such as I5be25c6d it should work.

Bug: T165161
Change-Id: Ia1b654bf659958c04d7e370d4686cf17f615b591
2017-05-16 14:47:49 +00:00
Translation updater bot a2712c5e5e Localisation updates from https://translatewiki.net.
Change-Id: I052e9975c887f7fd6f507d02fe5386ea01416f4d
2017-05-12 23:16:23 +02:00
Kunal Mehta aef292b82b API: Change memcache key to clear cache
And add a CACHE_VERSION constant to make this easy in the future.

Bug: T165161
Change-Id: I362f44cf3d680d073e7e6dc6eec95ec5eec15684
2017-05-12 11:19:51 -07:00
Umherirrender fd70104fba Add php-parallel-lint
php-lint will test for valid php files

Change-Id: I88f32059106ce1eaaebfaea170d495794627f8ac
2017-05-06 12:54:00 +02:00
Antoine Musso e31cf4734c build: add grunt-contrib-jshint
See T119973

Change-Id: Ie909a16ea605beb66363453e5adccefa42b6a674
2017-04-21 18:24:05 +02:00
Translation updater bot 4332665322 Localisation updates from https://translatewiki.net.
Change-Id: I144f2d75e03180dcbf831558b10d53ebb3a131af
2017-04-04 22:59:18 +02:00
Translation updater bot c896f5025e Localisation updates from https://translatewiki.net.
Change-Id: I2962174db47c12fe4f02ebfeb1080e341abc2306
2017-03-29 22:47:59 +02:00
Kaldari 57f346f06a Adding sortkey class to ExtractsRemoveClasses
Bug: T126331
Change-Id: I6825356464b2efdf937e0e223ae0cb3cd3a0acf0
2017-03-26 23:02:21 -07:00
Max Semenik 21ef48483f getFirstSentences(): don't use crazy regexes
Bug: T145231
Change-Id: I820fb152e86b273ddeba1617658a13e3a3f0bae3
2017-01-20 10:13:46 -08:00
Max Semenik effb70aadd Add HTML cutting tests
Change-Id: If1507ca9221eb1368cc5d5f52c3f3fd5264e8817
2017-01-20 00:18:09 +00:00
Max Semenik fb2c163345 Uncomment and fix a test
Change-Id: I57facf073dd688f57f35a18015a0aa14b7b7f4c4
2017-01-19 16:16:35 -08:00
jenkins-bot 0d1ae700e8 Merge "getFirstChars(): don't use quantifiers with user-supplied count" 2017-01-20 00:11:00 +00:00
Translation updater bot 7e5ad4286f Localisation updates from https://translatewiki.net.
Change-Id: If3a166c5f78b687e67c5a5429e3d98c6f9e79a35
2017-01-11 23:19:35 +01:00
Max Semenik abb0f4df96 getFirstChars(): don't use quantifiers with user-supplied count
Bug: T143178
Change-Id: Iba6d929156040f5388461aaf075644d8fbf647be
2017-01-10 17:42:14 -08:00
Translation updater bot 2c7a1c96a4 Localisation updates from https://translatewiki.net.
Change-Id: I9b7ea70e6c1f54b9784bfde2b31c3afd1e859d5f
2017-01-04 22:38:11 +01:00
Translation updater bot b1c86246e2 Localisation updates from https://translatewiki.net.
Change-Id: Id3ff2d4547b52f4fa705a361349fe42e63acf450
2017-01-01 10:13:27 +01:00
Translation updater bot 37e77ea893 Localisation updates from https://translatewiki.net.
Change-Id: Idacdaee33ab8501c0ae372f9e7c7750433413159
2016-12-28 10:50:09 +01:00
Translation updater bot ed0c48f1c9 Localisation updates from https://translatewiki.net.
Change-Id: I832dff2f5649700ea604db6a446901a532a41fce
2016-12-22 22:59:06 +01:00
Translation updater bot 6772a19044 Localisation updates from https://translatewiki.net.
Change-Id: Icbc1b8ebcc1bac1a22df81af7b9425dc57b05268
2016-12-19 22:49:05 +01:00
Translation updater bot ed6e7165a1 Localisation updates from https://translatewiki.net.
Change-Id: Ib184174a809d1ea6cc1537e18cd0e464b5f300bc
2016-12-16 22:17:27 +01:00
Translation updater bot ba6e2a7ff1 Localisation updates from https://translatewiki.net.
Change-Id: I214ad9cac226b01adf36546f8b6b8c4f68656592
2016-12-13 22:45:49 +01:00
Translation updater bot 231ec768e8 Localisation updates from https://translatewiki.net.
Change-Id: I1a1ff69c18f6c220696c3ca5823919b86eab396c
2016-12-12 22:41:12 +01:00
jenkins-bot f6f08c0a1b Merge "Update for API error i18n" 2016-12-08 23:17:19 +00:00
Brad Jorsch 739e02f2d2 Update for API error i18n
See Iae0e2ce3.

Change-Id: Ibe7cb02d551ac2f85ee01edbf2b40a966ed42b74
2016-12-08 10:08:25 -05:00
Translation updater bot 8bbf6d59bd Localisation updates from https://translatewiki.net.
Change-Id: I6188a3bf76876794a6a741cb299a0e62fae7afcb
2016-11-29 22:24:55 +01:00
Chad Horohoe bb9fed053e Whoops, track not trace
Change-Id: Ie5130eb44260e34f64e8b25fc1090e17eb4c3cdb
2016-10-24 17:03:54 -07:00
Chad Horohoe b640fdf0f2 Swapping defaultbranch for trace
The former is a maintenance nightmare when branching.

Bug:T146293
Change-Id: I62457dc25d82b106cc202163cef471050fe72673
2016-10-24 16:38:35 -07:00
jenkins-bot 94b5782ec5 Merge "Remove use of a removed function" 2016-09-26 22:28:18 +00:00
jenkins-bot d8ef3b2c5d Merge "Minor fixes" 2016-09-26 22:27:41 +00:00
jenkins-bot 27c935f66c Merge "CodeSniffer fixes" 2016-09-26 22:27:32 +00:00
Translation updater bot 4754b02ecb Localisation updates from https://translatewiki.net.
Change-Id: I272e3dc0dc95c625fb303ffc8a77a91c71637fff
2016-09-26 22:42:55 +02:00
Max Semenik ec44826b7a Remove use of a removed function
Change-Id: Iac8bec0a0a2625e40c5c70a715ffb4784224f164
2016-09-22 18:58:55 -07:00
Max Semenik 264f65215b Minor fixes
* Annotations
* Deprecated functions
* Namespace tests

Change-Id: I521f6af6074a454cec5322ab4cd46db08350c2c3
2016-09-22 18:51:12 -07:00
Max Semenik 754c9e4f19 CodeSniffer fixes
Change-Id: I8bdcd2250bd3163fe40ce4685eb04bffe53afdca
2016-09-22 18:38:27 -07:00
jenkins-bot 8235368c66 Merge "Remove pre-1.25 API compatibility code" 2016-09-20 20:55:30 +00:00
Translation updater bot cccd458eb5 Localisation updates from https://translatewiki.net.
Change-Id: Ie59bea12f0c885aff70310217c877b67b982dd93
2016-09-20 22:40:59 +02:00
Brad Jorsch 90a025b839 Remove pre-1.25 API compatibility code
Since this extension uses extension.json, it already requires 1.25+ so
no need to keep the old code around.

Change-Id: Id9e8fb026b26bb4db34fb22bd631205ce6f7072b
2016-09-20 15:23:35 -04:00
Fomafix 579fae4c38 API: Remove unused parameter exvariant
All API calls supports the generic parameter variant.
With I8a31dfd3cf2a3e8f768907084d26a77f198ccbe3 in core this parameter
is documented and generates no warning anymore.

Bug: T117529
Change-Id: Ic7e6f1df99c67ad4132c22503d99345611af271a
2016-09-19 18:00:19 +00:00
Reedy ad435fb4e1 Remove 'UnitTestList' hook
No longer needed now that extension unittests are autodiscovered.

Bug: T142120
Bug: T142121
Change-Id: Iaff2e40a8bddfd5d45170b49641b8afa15987527
2016-08-23 14:54:47 +01:00