Commit graph

503 commits

Author SHA1 Message Date
Translation updater bot b4109faac9 Localisation updates from https://translatewiki.net.
Change-Id: I1f52d6f23c188208dfdb9b85b3a6ba1e21d453c5
2017-09-22 23:05:49 +02:00
Translation updater bot 42f2320088 Localisation updates from https://translatewiki.net.
Change-Id: I561670b7c218ec7130f6fcc79e0c3d4578b327cc
2017-09-19 23:02:57 +02:00
libraryupgrader aa8dabebb2 build: Updating mediawiki/mediawiki-codesniffer to 0.12.0
The following sniffs are failing and were disabled:
* MediaWiki.Files.ClassMatchesFilename.NotMatch
* MediaWiki.Files.ClassMatchesFilename.WrongCase
* MediaWiki.Files.OneClassPerFile.MultipleFound

The following sniffs now pass and were enabled:
* MediaWiki.Commenting.FunctionComment.MissingParamTag
* MediaWiki.Commenting.FunctionComment.ParamNameNoMatch

Change-Id: Ibb3e8fbef168f886d2385565df85015c08b2f02a
2017-09-01 04:54:58 +00:00
Translation updater bot eb40ed4912 Localisation updates from https://translatewiki.net.
Change-Id: If83d4a6c14d0cff8fd6e32dc836b0b4271c20f33
2017-08-17 09:01:20 +02:00
Kunal Mehta fa58780171 build: Updating mediawiki/mediawiki-codesniffer to 0.11.0
Change-Id: I121ac2e4b2bc165ca6aaa8a7b6f8f973faaf0f9d
2017-08-11 00:15:33 -04:00
Antoine Musso 3193705bda 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:34 +02:00
Translation updater bot 806184240f Localisation updates from https://translatewiki.net.
Change-Id: Ied0ef9319595a74fa5e0918f89c542a84a8c1d1b
2017-07-26 22:44:02 +02:00
Translation updater bot 13d152621e Localisation updates from https://translatewiki.net.
Change-Id: Idb9cca637bf518f25a839b903d321a5b20668e89
2017-07-24 23:07:28 +02:00
Kunal Mehta d1cde6e4b1 build: Updating mediawiki/mediawiki-codesniffer to 0.10.1
Change-Id: I8b1ff5826af045897e038c6d0257812564fe65ca
2017-07-23 00:32:09 -07:00
Translation updater bot 178bec5217 Localisation updates from https://translatewiki.net.
Change-Id: I43ddb49ae7a89c329d3fdec9cd5414770b7a4194
2017-07-20 22:53:47 +02:00
Umherirrender bb76661758 Remove unused i18n shim
Change-Id: I8f7c101f25a579423acd0c1a48fe32343bc9845f
2017-07-12 21:01:26 +02:00
Kunal Mehta e2ffe2de2c build: Updating mediawiki/mediawiki-codesniffer to 0.10.0
Change-Id: I472cd3fecd2919be993527b430a39cf23fff380b
2017-07-01 01:36:46 -07:00
Translation updater bot d881c8848a Localisation updates from https://translatewiki.net.
Change-Id: I83d4fe3164c57b8170d264e1df2ae2a29119a595
2017-06-28 23:00:49 +02:00
Kunal Mehta 924efcc96e 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: I3554682b5c8686299dc8cf23a3ec8c59514ff008
2017-06-25 17:26:03 +00:00
Translation updater bot b323d91aa4 Localisation updates from https://translatewiki.net.
Change-Id: If9bd6c014b3c4cc24a663b5ae45e212be2615040
2017-06-20 22:54:17 +02:00
Translation updater bot 413e346b1d Localisation updates from https://translatewiki.net.
Change-Id: I2485557c0cbe435c0f7f97fb186e03ea08d199aa
2017-06-17 22:37:08 +02:00
Translation updater bot 494944efc9 Localisation updates from https://translatewiki.net.
Change-Id: Ib5be2acccb1f3c4991ca425badba4cdfcc8bce8b
2017-06-15 23:08:36 +02:00
Brad Jorsch 889c17408e API: Split description messages into summary + additional text
See MediaWiki core patch I778bab2b

Change-Id: Ib19e10fd7519e13500493b8082c67684cead1832
2017-06-09 11:59:25 -04:00
jenkins-bot d4bf297f6e Merge "Remove incomplete PHPDoc @param tags" 2017-06-07 16:59:57 +00:00
Amir Sarabadani 985c4711ee Add CODE_OF_CONDUCT.md
Bug: T165540
Change-Id: Ia10103af845c41d4cae5b70b414c22b555e1c1e5
2017-06-07 15:16:21 +04:30
Thiemo Mättig 37cae03ebb Remove incomplete PHPDoc @param tags
Plus:
* Add a missing "array" type hint.
* Use more specific assert… functions instead of isset().

Change-Id: Iaa423620d493b4bee11bf89f627d0420a645a8de
2017-06-07 10:35:50 +01:00
jenkins-bot 457c1568aa Merge "Add phpcs and make pass" 2017-06-02 21:28:32 +00:00
Umherirrender 88758f5884 Add phpcs and make pass
Change-Id: I129fd23a375b4f7de893d3b98f67fdd8de89b4bd
2017-05-30 21:49:44 +02:00
Brad Jorsch b7b6185dae 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: I338b444087c7570e455469e2c0fad8f5ca46644e
2017-05-26 17:24:39 -04:00
jenkins-bot 9b63fdc577 Merge "Make PageImages default API license parameter configurable" 2017-05-20 16:02:19 +00:00
aude 97572615e0 Make PageImages default API license parameter configurable
Bug: T156190
Change-Id: Id4b43f2597d5a063dca0d46f308b6283620e9974
2017-05-20 17:36:56 +02:00
Baha a7fc68ced6 Increase default API limit from 1 to 50
Bug: T153709
Change-Id: Ie7c48117ac94e4902948f7336b5e1da7229dbe2d
2017-05-19 09:06:04 -04:00
Umherirrender 88329411c7 Add php-parallel-lint
php-lint will test for valid php files

Change-Id: I2e59da55ff2d5dfcc668bcbd81df4708c8d5f4c6
2017-05-06 12:29:37 +02:00
Antoine Musso 68f89b28b5 build: add grunt-contrib-jshint
See T119973

Change-Id: I6103daa04d2e51de8e29135578be457252771c94
2017-04-21 18:24:03 +02:00
jenkins-bot c75e19ffd1 Merge "Switch TestingAccessWrapper to librarized version" 2017-04-20 19:36:58 +00:00
Gergő Tisza 928a8f6687 Switch TestingAccessWrapper to librarized version
Bug: T163434
Change-Id: Ie3d29b3522d5e176430708b15359803d76a39a2f
Depends-On: I52cc257e593da3d6c3b01a909e554a950225aec8
2017-04-20 11:35:03 +00:00
jenkins-bot cd95488965 Merge "Make PageImagesLeadSectionOnly default to true" 2017-04-18 16:54:46 +00:00
Zach 4c0e441833 Make PageImagesLeadSectionOnly default to true
Supporting changes:
* Update the LinksUpdateHookHandlerTest test case to set the config
  variable to its expected value of false.

Bug: T162203
Change-Id: Ic7b4d5ab42f71f6b4cf24cb5bbbbe808341a09e8
2017-04-18 10:16:22 +01:00
Translation updater bot 9175a42945 Localisation updates from https://translatewiki.net.
Change-Id: If798580c2dee0b159b1c6960cd9a4bb6547cf2b6
2017-04-17 22:39:12 +02:00
jenkins-bot 188f8d6020 Merge "UseGalleries is unused" 2017-04-10 21:43:02 +00:00
Translation updater bot b360c0305c Localisation updates from https://translatewiki.net.
Change-Id: If44887e4774d0d3db27fab120b64e0c18a110746
2017-04-06 23:52:05 +02:00
Translation updater bot 796c84ff7f Localisation updates from https://translatewiki.net.
Change-Id: I22a74b007cd0594020ca4acbf91ab3c6fb104558
2017-03-29 22:39:04 +02:00
Translation updater bot 4e145ec7d0 Localisation updates from https://translatewiki.net.
Change-Id: If34d63db85a970134272e6888b5cdb6308b3b956
2017-03-08 22:36:51 +01:00
Translation updater bot 98630d8f67 Localisation updates from https://translatewiki.net.
Change-Id: I8985991f7a39eb4035d6601730370d6301731cd9
2017-03-03 22:39:29 +01:00
Translation updater bot 8334aab55b Localisation updates from https://translatewiki.net.
Change-Id: Ib43b01cffd470c8af735e0b3b7d8ccea0a291c32
2017-02-15 22:35:48 +01:00
Translation updater bot 7ca697ddbe Localisation updates from https://translatewiki.net.
Change-Id: I24abd8978329315809c509872c211c0847ad6a6a
2017-02-14 22:44:03 +01:00
Thiemo Mättig (WMDE) 6deb3fc986 Revert "Add twitter meta tag for image"
This tag is useless and does nothing without og:title and
og:description also being present, which is not the case
right now. A more complete patch should re-introduce all
three tags in one go.

It is also questionable if this tag belongs to this
extension, because it is explicitly said that the image is
an optional element of a Twitter card. og:title and
og:description are not optional. og:description would
probably be set by the TextExtract extension. This means
this Twitter card tag belongs more to TextExtracts and not
to PageImages.

This reverts commit 2e83a2c1dc.

Bug: T157145
Change-Id: I17ffe8f83d91156a79facb4c35b4a15ecc49f108
2017-02-08 14:27:29 +00:00
Amir Sarabadani 2e83a2c1dc Add twitter meta tag for image
Bug: T157145
Change-Id: I8605b69b658b99941d63db3707ae6c2c0cf1b2ce
2017-02-04 04:14:16 +03:30
Amir Sarabadani b6296a4593 Reduce the thumbnail size to 1200px
Bug: T142048
Change-Id: I28f3c3274f77560ca856695e19e32fb1df3f8e66
2017-02-01 19:07:25 +03:30
jenkins-bot bee7615bb8 Merge "Add basic test for PageImages::onBeforePageDisplay" 2017-01-31 21:05:24 +00:00
Thiemo Mättig a7a74f51ce Add basic test for PageImages::onBeforePageDisplay
This is still only testing negative cases with no page image.

In addition this patch does sort all the hook handlers
alphabetically, and adds a missing PHPDoc block.

Bug: T51859
Change-Id: Iea65f2181dd3cac3ec2ceac191f002f74af3ec24
2017-01-31 19:43:12 +00:00
Amir Sarabadani 571e0d120e Reduce the thumbnail width to 1280px
See https://phabricator.wikimedia.org/T142048#2987319

Bug: T142048
Change-Id: I2b7d3dc1eaac74c2e48d327b8bb9956e1648edbe
2017-01-31 22:45:06 +03:30
Amir Sarabadani e5cbfdb221 Add PageImage OpenGraph tag
Bug: T101711
Bug: T142048
Bug: T51859
Change-Id: Idd9125ad06964f50cbad70283819107611cfec44
2017-01-30 22:24:02 +03:30
jenkins-bot ee36518329 Merge "Document page property names" 2017-01-24 21:53:50 +00:00
jenkins-bot d07a770a54 Merge "API: return free images by default" 2017-01-24 20:11:53 +00:00