Commit graph

549 commits

Author SHA1 Message Date
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
jdlrobson 21963c89ea Document page property names
This should protect us when we consider renaming these variables
in future.

Bug: T152239
Change-Id: I227ffd0867f797d6a450b8b51759338cff7ee3a8
2017-01-23 23:12:11 +00:00
jdlrobson e44969eca0 UseGalleries is unused
Unless I'm mistaken this config variable has never been used
in this codebase since introduction in
I64e997d58e4a1b66a8a351d85a3e7df1a77354e9

It's not documented so not clear why it is needed
and not referenced in this codebase.

Change-Id: Ib227eefb77ba2719db277fa80a8bfb958ea6a778
2017-01-23 12:20:58 -08:00
Translation updater bot 1a5bd00330 Localisation updates from https://translatewiki.net.
Change-Id: I4022e79402392aa06593a05092e26f8b599414a5
2017-01-20 09:35:27 +01:00
Baha 83e712791f API: return free images by default
The maintenance script to populate free images has finished executing.

Follow-up on I1d35e965dc37c8c4ecdcc43313b3198e951e1978.

Bug: T152216
Change-Id: I32669e937efa6f5566eee582b911d170a32762e3
2017-01-19 15:20:00 -05:00