Commit graph

225 commits

Author SHA1 Message Date
jenkins-bot d72b09724e Merge "Remove deprecated $wgUseTidy in favour of $wgTidyConfig" 2017-07-07 22:49:21 +00:00
Baha 97a25e2183 Return empty extract for articles in File namespace
Bug: T114418
Change-Id: I2dfccbcf27284ecfdd0669b004151824ece79b73
2017-07-07 15:32:27 -07:00
Piotr Miazga c13dae2788 Remove deprecated $wgUseTidy in favour of $wgTidyConfig
Bug: T168671
Change-Id: I27f5bee2448797c3a5a8cb886cee0e518b199ebe
2017-07-07 21:39:30 +00:00
Kunal Mehta 6ffc0a557c build: Updating mediawiki/mediawiki-codesniffer to 0.10.0
Change-Id: I1035a886d34259d0f1dff00f1be49fd6fcead829
2017-07-01 01:43:47 -07:00
jdlrobson e9e261908d Play things safe when stripping HTML
Script and input tags if outputted by other extensions can
theoretically allow an XSS issue.

Just in case let's do this here.

Bug: T107206
Change-Id: I889f7827fb9084b7cf853a1843fdc48821237d65
2017-06-29 10:46:57 -07:00
jenkins-bot 698a8a8066 Merge "Send sectionpreview parameter on TextExtract parse" 2017-06-29 00:25:10 +00:00
Translation updater bot a61eb87a99 Localisation updates from https://translatewiki.net.
Change-Id: I23d7e1ebdec7a38b2c0016696c54879bde48e4dd
2017-06-28 23:14:05 +02:00
jdlrobson 27baa2d0d9 Send sectionpreview parameter on TextExtract parse
This will invoke special handling for unbalanced templates

Bug: T168743
Change-Id: I3fe1bd5b56a049f57fad478f1358dd8496503b41
2017-06-28 08:55:00 -07:00
Translation updater bot 0d47ef794c Localisation updates from https://translatewiki.net.
Change-Id: Iaeebbafc59b90ea1d0ad117d766c2fff892ce1ed
2017-06-25 23:18:34 +02:00
Translation updater bot 9e92d87e90 Localisation updates from https://translatewiki.net.
Change-Id: I49a4dce3e0bdf5ee2641a12982ae5de3b4065a24
2017-06-20 23:04:51 +02:00
Kunal Mehta 6090fc2c87 build: Updating mediawiki/mediawiki-codesniffer to 0.9.0
The following sniffs are failing and were disabled:
* MediaWiki.Commenting.FunctionComment.MissingParamComment
* MediaWiki.Commenting.FunctionComment.MissingParamTag
* MediaWiki.Commenting.FunctionComment.MissingReturn
* MediaWiki.Commenting.FunctionComment.ParamNameNoMatch
* MediaWiki.FunctionComment.Missing.Public
* MediaWiki.NamingConventions.LowerCamelFunctionsName.FunctionName
* MediaWiki.WhiteSpace.SpaceBeforeSingleLineComment.NewLineComment

Change-Id: Ibf2b4eef019ed4bb98fad71fb080ba05ee32d050
2017-06-20 00:23:06 -07:00
Translation updater bot c89a28bf58 Localisation updates from https://translatewiki.net.
Change-Id: Ia8a9b1e4fdf1a53484f67820f8791676637030a9
2017-06-16 22:58:11 +02:00
Brad Jorsch db9acad0ec API: Split description messages into summary + additional text
See MediaWiki core patch I778bab2b

Change-Id: I48ce197bfb0a33b6075802c2513bdbc9aa582f4d
2017-06-13 13:27:51 -04:00
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