Peter Ovchyn
34f54dd1ad
rest: Implement SearchResultProvideThumbnail hook
...
SearchResultProvideThumbnail was introduced in T250144. In order to fill
search results with the "thumbnails" field it should be implemented in proper extension.
Bug: T250207
Change-Id: I81d5d70f5237d6399b8ec6bec3058d12e40ca142
2020-05-06 22:52:49 +03:00
Reedy
e688856810
Remove un-namespaced PageImages class
...
Change-Id: If761744fdc969e395a7cf7944ed6bf3738635384
2020-05-01 01:36:20 +00:00
libraryupgrader
8016d8009d
build: Updating dependencies
...
composer:
* mediawiki/mediawiki-codesniffer: 29.0.0 → 30.0.0
npm:
* eslint-config-wikimedia: 0.15.0 → 0.15.3
Change-Id: Ic02f0c7acc4e479023a37a42ad2bee03c47293d0
2020-04-22 16:04:12 +00:00
Reedy
6452380305
Fix ParserMakeImageParams hook subscriber
...
Change-Id: Id5591e5cdc7efc6a7fd3f48f8ea99be65a3606f0
Follows-Up: I4a3fa5f8aaafd87c78b03f04369a73f4b4f1b189
Bug: T250745
2020-04-20 20:56:30 +01:00
Reedy
0a406c67a8
Add TestAutoloadNamespaces
...
Remove require_once from ApiQueryPageImagesTest
Change-Id: I0d1cf452a3c88e0cbac4c44284b7dc673bbca886
2020-04-19 23:14:24 +00:00
Reedy
b14685b8d5
Namespace the other two classes in PageImages
...
Leave alias for PageImages as it's used elsewhere...
Change-Id: I4a3fa5f8aaafd87c78b03f04369a73f4b4f1b189
2020-04-19 23:06:20 +00:00
Reedy
8747de0649
Remove PHP entry point
...
Change-Id: Ic16b2b632c371e6d2180c17817e876aab30acddc
2020-04-19 23:35:28 +01:00
libraryupgrader
0c29f84071
build: Updating grunt-banana-checker to 0.9.0
...
Change-Id: I4339c5651c659b670e7c8808fd83320425ae964e
2020-04-19 14:11:02 +00:00
Reedy
0cc54a66bd
Move some classes to AutoloadNamespaces
...
Bug: T187154
Change-Id: I2f5251aa2f8298fd11096b27eea3e5ccf71f2103
2020-04-18 04:24:42 +01:00
Umherirrender
2775a9fa66
Use MediaWikiServices::getRepoGroup
...
This required MediaWiki 1.34
Change-Id: I90df4bcce40abbe8a1365cd1d65af0c23cf595bd
2020-04-12 00:23:49 +00:00
DannyS712
f22926df87
Use LinksUpdate::getRevisionRecord in MW 1.35+
...
Bug: T249397
Change-Id: I59759823a98f25dbfa633288a849aa9e01014683
2020-04-08 01:32:14 +00:00
Translation updater bot
77562880e8
Localisation updates from https://translatewiki.net .
...
Change-Id: I02c8d1a95dbd87d377d89befd9651992cf2d25cf
2020-04-07 08:46:34 +02:00
DannyS712
eb381bbb8f
PHP coding conventions: reorder doxygen tags
...
See https://www.mediawiki.org/wiki/Manual:Coding_conventions/PHP#Doxygen_tags
Change-Id: I0f0a397c4b4e2e266ea050e92b67c01cee73f3bf
2020-03-26 15:50:02 +00:00
libraryupgrader
feec9687a1
build: Updating mkdirp to 0.5.3
...
* https://npmjs.com/advisories/1179
Change-Id: Ib0bdd1dc213a1e0142934fea4b21dd6627737e11
2020-03-21 04:42:39 +00:00
libraryupgrader
b9fe63ee91
build: Updating minimist to 1.2.5
...
* https://npmjs.com/advisories/1179
Change-Id: I267c4eca41d19628f79e97c03f76963b64d11385
2020-03-19 04:05:29 +00:00
jenkins-bot
4ab449ac8d
Merge "Remove usage of deprecated Revision::newFromTitle"
2020-03-11 14:08:33 +00:00
jenkins-bot
b1490c422f
Merge "Avoid using Title::__construct"
2020-03-08 19:53:28 +00:00
libraryupgrader
385005b0c8
build: Updating acorn to 7.1.1
...
* https://npmjs.com/advisories/1488
Change-Id: Ie1cd390f285e158f00e21d3f18e3a6119655c105
2020-03-08 10:13:49 +00:00
Daimona Eaytoy
a39d6acb00
Avoid using Title::__construct
...
Change-Id: I951e412b3f4d7813bb27b9895148ccc59dfd154f
2020-03-07 13:14:08 +00:00
Petr Pchelko
381512b11f
Remove usage of deprecated Revision::newFromTitle
...
Bug: T246284
Change-Id: I4e0a197bbc51b4d05e6519fb2447c0f791d40380
2020-03-03 20:26:09 -08:00
Translation updater bot
144ef925dc
Localisation updates from https://translatewiki.net .
...
Change-Id: I7cb2df096de4a374f72751d868321e8c47180815
2020-02-26 08:25:16 +01:00
libraryupgrader
0778590638
build: Updating composer dependencies
...
* jakub-onderka/php-console-highlighter: 0.3.2 → 0.4.0
* mediawiki/minus-x: 0.3.2 → 1.0.0
* mediawiki/mediawiki-phan-config: 0.9.0 → 0.9.1
Change-Id: I79f9a3251904e6e7a0e1c27d64d242b40bbc1012
2020-02-04 19:17:43 +00:00
libraryupgrader
712d006ba3
build: Updating mediawiki/mediawiki-codesniffer to 29.0.0
...
Additional changes:
* Also sorted "composer fix" command to run phpcbf last.
Change-Id: I5e714b548aa11857b5631df94c075fa0e4e7ce81
2020-01-14 08:48:00 +00:00
Umherirrender
586a64e657
build: Remove unneeded exclude from .eslintrc.json
...
This reverts parts of commit 1cb5c2f93b
.
Change-Id: I581ad903e73e3028648a24363232218cee17fe1e
2020-01-08 19:30:42 +00:00
libraryupgrader
1cb5c2f93b
build: Updating npm dependencies
...
* grunt-eslint: 21.0.0 → 22.0.0
* eslint-config-wikimedia: 0.12.0 → 0.15.0
The following rules are failing and were disabled:
* brace-style
* camelcase
* eqeqeq
* max-len
* max-statements-per-line
* new-cap
* no-constant-condition
* no-dupe-keys
* no-empty
* no-implicit-globals
* no-mixed-spaces-and-tabs
* no-redeclare
* no-tabs
* no-undef
* no-underscore-dangle
* no-unused-vars
* no-use-before-define
* no-useless-concat
* one-var
* valid-jsdoc
* vars-on-top
Additional changes:
* Added .eslintcache to .gitignore.
* Removing manual reportUnusedDisableDirectives for eslint.
Change-Id: I6add315b206d646b00bc39794ae5cdf94d324818
2020-01-08 02:37:33 +00:00
libraryupgrader
bf0bef45e5
build: Updating mediawiki/mediawiki-phan-config to 0.9.0
...
Additional changes:
* Added .eslintcache to .gitignore.
Change-Id: Ifb537c01f077031e085afb8cf6fa807375dc0226
2019-12-21 20:47:50 +00:00
James D. Forrester
3caa4aaf28
Remove unused 'OpenSearchXml' hook handler
...
This is the equivalent of the current 'ApiOpenSearchSuggest' hook
as it once existed in the "OpenSearchXml" MediaWiki extension,
which merged into core and archived three years ago.
See also Ibe244851857ddff3a437acb12c3cc7660eb89089 in TextExtracts
Change-Id: Ifae845925692f2c1113896133e99901782126841
2019-12-20 16:55:15 +00:00
libraryupgrader
994220dbf5
build: Updating dependencies
...
composer:
* mediawiki/minus-x: 0.3.1 → 0.3.2
npm:
* grunt-banana-checker: 0.6.0 → 0.8.1
Additional changes:
* Added .eslintcache to .gitignore.
Change-Id: Ic5b5f143f79ed23ded419e2a1ee31599c5b657ce
2019-12-17 18:47:03 +00:00
Translation updater bot
b7f54e8da6
Localisation updates from https://translatewiki.net .
...
Change-Id: I85a355b6cc21f5babe8cabe645eb84339b6a49b9
2019-12-09 09:36:29 +01:00
Translation updater bot
3eb8256d05
Localisation updates from https://translatewiki.net .
...
Change-Id: I57b4fbea7c69cabf2fed79326717e4b5d11e3e45
2019-12-06 09:31:54 +01:00
Umherirrender
570e1a8599
build: Updating mediawiki/mediawiki-phan-config to 0.8.0
...
Bug: T235049
Depends-On: I42d38a8e653d27a4d430ab78bba8b4f3988d7a27
Change-Id: I43ec99bf88b3eebc2d9c31007a559de3cb9e0d2d
2019-11-04 19:18:18 +01:00
jenkins-bot
9060029d88
Merge "Optimize ApiQueryPageImages::getTitles"
2019-11-01 02:17:37 +00:00
Umherirrender
0de5777cf7
Optimize ApiQueryPageImages::getTitles
...
Avoid array_map/array_flip + foreach when doing the simple thing also in
the foreach
Swap Title::newFromText to Title::makeTitle to avoid reparsing the
string
Bug: T237068
Change-Id: I745cb9bd817a4b2274c6f778c38c58846ef318c1
2019-10-31 23:08:13 +00:00
Umherirrender
5c0a57c9f8
Do not query pageimages for special pages and not-existing titles
...
Save on query on each page view of special page
Change-Id: Id6e79ba891ed917b40fa33f63e0d8f318d1ca269
2019-10-31 20:43:23 +01:00
Kosta Harlan
47660475b9
Tests: Stub getRequest/getConfig for OutputPage mock
...
Needed due to I4bf53dabb6e6c5446cea99a64db68b300cef2fd4
Bug: T236723
Change-Id: I8505d2dad69aefed5f8ed1f599b3ca1b7e79acf5
2019-10-29 12:23:57 +01:00
Translation updater bot
22d752b007
Localisation updates from https://translatewiki.net .
...
Change-Id: Ie7a06e459537bd1c51f658ec63511c5739f461c9
2019-10-28 16:35:41 +01:00
James D. Forrester
a9518ea914
build: Upgrade mediawiki-codesniffer to v28.0.0
...
Change-Id: Ic742e7cde506b7d0c1865453cc8895faefe10e90
2019-10-11 11:05:53 -07:00
Max Semenik
0665baacc3
Fix PHPUnit 4 rudiments
...
Change-Id: Idcba8dce56f7a5deea7f8dd5a126c7bdfa499064
2019-10-04 19:16:34 -07:00
Translation updater bot
3e3ccd8efa
Localisation updates from https://translatewiki.net .
...
Change-Id: I1ee9017291cea901da2af26ff52be7ae7cdc8c20
2019-09-23 09:26:31 +02:00
Translation updater bot
ff41968561
Localisation updates from https://translatewiki.net .
...
Change-Id: I71bb2d78b7ecef7aba286e32774d69b768636099
2019-09-16 09:56:44 +02:00
Translation updater bot
26e5312d77
Localisation updates from https://translatewiki.net .
...
Change-Id: I70f67b2d014dc8ad08afbcdcd193da86bc3ffd47
2019-08-30 10:04:24 +02:00
Translation updater bot
f3440a1951
Localisation updates from https://translatewiki.net .
...
Change-Id: Ia8099c90d8e62c6d31c7f7b3a765ecb94814689a
2019-08-27 11:05:01 +02:00
Alex Monk
378c5ab4cf
Split apihelp messages to a separate file
...
Bug: T189982
Change-Id: Ibcd42f3d69843e22783507d790118d4ad0d159ad
2019-08-25 02:35:02 +01:00
libraryupgrader
8089aa1b5e
build: Updating eslint-utils to 1.4.2
...
* https://npmjs.com/advisories/1118
Additional changes:
* Added .eslintcache to .gitignore.
Change-Id: Ia670947ef5aac549c2b8c239815517ce56b379b3
2019-08-22 21:29:28 +00:00
Simon Legner
e1b6ba7da4
PageImages on File namespace should be the file itself
...
The file page for an image should include the `og:image` meta tag. Thus,
a thumbnail is shown for the image when posting a link via social media.
Relates to Ide250d489a1ceedd7e896a3b44471752f0971fb1.
Change-Id: I81435289a4a6c7749462ba447aa626120a9c821c
2019-08-15 15:11:51 +02:00
Tim Starling
4d11163e5e
Use READ_LATEST during LinksUpdate
...
The hook is called during page move. If you try to fetch the current
page content from the replica, it won't be there with the specified
title, causing an exception.
Bug: T221763
Change-Id: Ib91bf399f251fc715d8f27a4f8f7f4c9db9d30c8
2019-07-25 14:11:05 +10:00
libraryupgrader
7d93ee1fd9
build: Updating mediawiki/mediawiki-codesniffer to 26.0.0
...
Additional changes:
* Committed package-lock.json (T179229) too.
Change-Id: I11020439a359e50398856e2efe965fe8e788d589
2019-07-14 14:41:28 +00:00
James D. Forrester
2187e20bbe
build: Upgrade phan-taint-check-plugin from 1.5.x to 2.0.1
...
Change-Id: Ia55c9d5620a313f598881b50cb516c348dbe69a9
2019-07-09 14:13:10 -07:00
libraryupgrader
02154da1a8
build: Updating mediawiki/mediawiki-phan-config to 0.6.1
...
Change-Id: Ie5704bbe8d3202d716bafb58dcbe61fa9e0cf5c8
2019-06-10 09:40:16 +00:00
Translation updater bot
ceaa875d3f
Localisation updates from https://translatewiki.net .
...
Change-Id: I95373c3e02f1484b2d0dea5d363c7ca16a1b8677
2019-06-02 22:30:30 +02:00