Commit graph

240 commits

Author SHA1 Message Date
libraryupgrader 1ef0038ef2 build: Updating mediawiki/mediawiki-codesniffer to 13.0.0
Change-Id: I1123d578f3b0981a921f089ccb2497744fa9c63b
2017-09-24 05:33:59 +00:00
Translation updater bot b8add1e7fc Localisation updates from https://translatewiki.net.
Change-Id: Ic3912a191c5462f85fd16a9b28e7a56cfe7f10e2
2017-09-13 22:54:33 +02:00
libraryupgrader 7e548ce1b4 build: Updating mediawiki/mediawiki-codesniffer to 0.12.0
Change-Id: I3e1260e19de4a12c995b51a1a4416dbdf87829cf
2017-09-01 04:58:00 +00:00
Kunal Mehta a96edb23ee build: Updating mediawiki/mediawiki-codesniffer to 0.11.0
Change-Id: I95c65980e1d715fcc8902671e31659c93eeaed8d
2017-08-11 00:35:21 -04:00
jenkins-bot 237ac977f7 Merge "Hygiene: Remove deprecation and unused import" 2017-08-03 21:36:11 +00:00
Piotr Miazga 91bbe7b10a Hygiene: Remove deprecation and unused import
Changes:
 - ApiBase::setWarning() is deprecated, use addWarning() instead
 - ParserCache::singleton() is deprecated, use MediaWikiServices instead
 - Exception import is not used, drop it
 - added MediaWiki 1.29 as a requirement

Bug: T166714
Change-Id: Ib81e5acbb28e1f803c7a792b9f990f2aa6d57521
2017-08-02 16:32:13 +02:00
Piotr Miazga fcda3b365b When APIParse fails log the warning and return null
API Parse request fails from time to time which causes PHP notice
error. In order to understand whats going on lets introduce error
logging as temporary solution. This will give us possibility to
find the error instead of silently returning null. For now we will
keep old behaviour and return null in that case explictly. This will
avoid future php notice errors.

Changes:
 - when API parse request fails log the error and return null

Bug: T169017
Change-Id: Ib908821b76a1e8b59235643854752c4f5910a274
2017-08-02 15:12:20 +02:00
Antoine Musso cf47eb0b17 build: bump grunt and drop grunt-cli
grunt 1.x now includes a CLI command, hence grunt-cli is no more needed.

Change-Id: I94f0c66236b5f0f12220741276c7fe24a89c65e0
2017-08-01 10:45:42 +02:00
Translation updater bot a95a634b39 Localisation updates from https://translatewiki.net.
Change-Id: I124366dd780e5333cbb1268a272c676b25e87697
2017-07-26 22:54:48 +02:00
Max Semenik 753fc03c10 Don't call ParserOuptut::setTOCEnabled()
It's not really needed. Add tests verifying that.

Bug: T168040
Change-Id: I49cf58d92620ad53dd833bc8ce0d2443a00b48e4
2017-07-24 17:55:06 -07:00
Translation updater bot 571b09eeb0 Localisation updates from https://translatewiki.net.
Change-Id: Icbe1e47103472df8d3625e3daaecbc30cd5fa0f4
2017-07-24 23:17:08 +02:00
Kunal Mehta 751168d420 build: Updating mediawiki/mediawiki-codesniffer to 0.10.1
Change-Id: I7dd02086eb059f9036d1bba14df27cbcc2253697
2017-07-23 00:39:31 -07:00
Translation updater bot d43752783c Localisation updates from https://translatewiki.net.
Change-Id: I445766cb39b2a7dbabe87251ceeb1bb6804ca837
2017-07-14 22:53:44 +02:00
Translation updater bot 77fa34d9de Localisation updates from https://translatewiki.net.
Change-Id: Iab0aa4e332e573623906c8262451fd7eda9a643f
2017-07-11 23:05:54 +02:00
Translation updater bot a3eeaaffe3 Localisation updates from https://translatewiki.net.
Change-Id: I29bcf6590916bf901288ab39310a6ce899e69d4a
2017-07-08 22:46:57 +02:00
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