Commit graph

222 commits

Author SHA1 Message Date
jenkins-bot 27c935f66c Merge "CodeSniffer fixes" 2016-09-26 22:27:32 +00:00
Translation updater bot 4754b02ecb Localisation updates from https://translatewiki.net.
Change-Id: I272e3dc0dc95c625fb303ffc8a77a91c71637fff
2016-09-26 22:42:55 +02:00
Max Semenik ec44826b7a Remove use of a removed function
Change-Id: Iac8bec0a0a2625e40c5c70a715ffb4784224f164
2016-09-22 18:58:55 -07:00
Max Semenik 264f65215b Minor fixes
* Annotations
* Deprecated functions
* Namespace tests

Change-Id: I521f6af6074a454cec5322ab4cd46db08350c2c3
2016-09-22 18:51:12 -07:00
Max Semenik 754c9e4f19 CodeSniffer fixes
Change-Id: I8bdcd2250bd3163fe40ce4685eb04bffe53afdca
2016-09-22 18:38:27 -07:00
jenkins-bot 8235368c66 Merge "Remove pre-1.25 API compatibility code" 2016-09-20 20:55:30 +00:00
Translation updater bot cccd458eb5 Localisation updates from https://translatewiki.net.
Change-Id: Ie59bea12f0c885aff70310217c877b67b982dd93
2016-09-20 22:40:59 +02:00
Brad Jorsch 90a025b839 Remove pre-1.25 API compatibility code
Since this extension uses extension.json, it already requires 1.25+ so
no need to keep the old code around.

Change-Id: Id9e8fb026b26bb4db34fb22bd631205ce6f7072b
2016-09-20 15:23:35 -04:00
Fomafix 579fae4c38 API: Remove unused parameter exvariant
All API calls supports the generic parameter variant.
With I8a31dfd3cf2a3e8f768907084d26a77f198ccbe3 in core this parameter
is documented and generates no warning anymore.

Bug: T117529
Change-Id: Ic7e6f1df99c67ad4132c22503d99345611af271a
2016-09-19 18:00:19 +00:00
Reedy ad435fb4e1 Remove 'UnitTestList' hook
No longer needed now that extension unittests are autodiscovered.

Bug: T142120
Bug: T142121
Change-Id: Iaff2e40a8bddfd5d45170b49641b8afa15987527
2016-08-23 14:54:47 +01:00
jdlrobson 5523e99dda ExtractFormatter should not test the Parser
There seems to be no reason to invoke the parser in these tests which
can give a different result (in the case of the first example test it
expects an image File:Loudspeaker.svg to be present)

Bug: T142230
Change-Id: I7b9a8695c36e73d3d6b254982cf116966cd17412
2016-08-15 14:30:56 -06:00
Translation updater bot 88573dfbce Localisation updates from https://translatewiki.net.
Change-Id: I8e31d00fce15a3a2ae327a85ec4e8503fe852097
2016-07-13 22:38:25 +02:00
Translation updater bot f3713584aa Localisation updates from https://translatewiki.net.
Change-Id: Idcbe09ceb011cc23f89ec9d69fadbd1e2f1b89e0
2016-07-07 22:39:39 +02:00
Translation updater bot 08a90fd0ca Localisation updates from https://translatewiki.net.
Change-Id: I87de83fc89e5987d35e8e27e64d0916d0c955513
2016-07-05 22:34:53 +02:00
Translation updater bot ce69d3f5d0 Localisation updates from https://translatewiki.net.
Change-Id: Icd107a98acc96ec5b158b42bfb28ef54078a1fe8
2016-07-04 22:33:58 +02:00
Translation updater bot c729e498ca Localisation updates from https://translatewiki.net.
Change-Id: I95b3667e67cd2f9ea82e1532a12edd09c3aa123e
2016-07-03 22:41:50 +02:00
Translation updater bot fe45528aad Localisation updates from https://translatewiki.net.
Change-Id: Ib7fc1a2b32e8d41a760d3e6fb2c80c702ccb31cc
2016-07-02 22:54:39 +02:00
Kaldari 490868d414 Improve API documentation for exlimit param
Change-Id: I8fc0578106ec5273e0d4f3c781a4c6823517ff43
2016-07-01 16:29:36 -07:00
Translation updater bot 4e171fa059 Localisation updates from https://translatewiki.net.
Change-Id: Id7b6f6bb7148613ab1db3475739a5cd40543604b
2016-06-08 22:31:01 +02:00
jenkins-bot fbe7379738 Merge "The last sentence of the paragraph was lost." 2016-04-14 00:00:21 +00:00
jenkins-bot 5bcec28107 Merge "Switch to librarized HtmlFormatter" 2016-04-13 07:24:01 +00:00
jenkins-bot 48eefc30cb Merge "Has this CI bug been fixed?" 2016-04-13 07:23:58 +00:00
Max Semenik 9bc33683a0 Switch to librarized HtmlFormatter
Bug: T125001
Change-Id: Iac73553ac4b03e75ef321c6a659ece1ac155260b
2016-04-12 21:23:01 -07:00
Sergey Leschina ae7fe951f1 The last sentence of the paragraph was lost.
Change-Id: I963ca71b73dc7396156e8b5fcf5d2952e4abbc05
2016-04-11 02:08:14 +03:00
Kghbln 7237099af9 Provide missing license lable to show on "Special:Version"
Bug: T123943
Change-Id: Iaf9209ca0f6e6c48c3241b19d0a2d9c6c7bf214a
2016-04-08 09:49:06 +02:00
Max Semenik a5ab22066c Has this CI bug been fixed?
Change-Id: I74a786e8f3e895612754a9485bca62b44a3635e7
2016-04-04 16:57:38 -07:00
jenkins-bot 647c39734a Merge "Fix separation of text into sentences." 2016-04-01 20:45:08 +00:00
Sergey Leschina 472d84c9de Fix separation of text into sentences.
Some space characters like   or $thinsp; usually is not indicate to the end of sentence, so shouldn't be used as separators.

Bug: T115817
Change-Id: Ieb56b0ef723dd299f848ea88b66613d92977bef0
2016-04-01 10:49:17 +03:00
Sergey Leschina f321fc541a Add ol.references to ignored elements
Bug: T74629
Change-Id: Iff299bd7eb430f27c682206bf7abc00ac0c5eefb
2016-03-29 01:50:45 +03:00
Translation updater bot d278cd8cd7 Localisation updates from https://translatewiki.net.
Change-Id: Ie19cdd84c8f7c16f1efdb12a9a1bd2c372b1434b
2016-02-16 23:13:06 +01:00
Translation updater bot 5163f23bb0 Localisation updates from https://translatewiki.net.
Change-Id: Ibbc81668888dc9ee51d432d2644613cbc1b46256
2016-02-10 21:11:35 +01:00
Translation updater bot 84372da4a5 Localisation updates from https://translatewiki.net.
Change-Id: If7920d36a7b26e2906d4d32e59c492bbf7987044
2016-01-14 22:25:57 +01:00
Kunal Mehta 59a70f5808 build: Updating development dependencies
* grunt-jsonlint: 1.0.4 → 1.0.7

Change-Id: If6142859ad149a0bb59451c8a7139627f37155cb
2015-12-29 11:57:17 -08:00
Kunal Mehta 0664ddbf94 Add missing use statement
Removed another unused one, and cleaned up the doc block.

Bug: T121283
Change-Id: I1a8b9920152e6d52ffb59de385fcc29c92f33c92
2015-12-11 15:11:43 -08:00
mhutti1 80703452ed Converted TextExtracts to new extension registration system
Moved most of TextExtracts.php to the new extension.json
and added method for backward compatable implementation
of the extension if still called though the php file. Moved
unit test hook to Hooks.php and deleted old il8n.php.

Bug: T87979
Change-Id: I3d26bd931ad2941268b94474f3e6327282da24ec
2015-12-10 22:59:49 +01:00
Sumit Asthana 13d6592978 TextExtracts do not crop after initials
Disables sentence termination at a full stop preceeded by a capital
alphabet which is likely to be an initial.

Bug: T115795
Change-Id: Ibf38e87823155c704ffb106642944cbd05e3f632
2015-12-03 07:11:36 +05:30
Translation updater bot ddcad9b4c8 Localisation updates from https://translatewiki.net.
Change-Id: I791e7f2cb5e6ad16aa051ff0d3c8e82b7744d4a0
2015-11-26 22:04:44 +01:00
Translation updater bot 1f3e13cb32 Localisation updates from https://translatewiki.net.
Change-Id: I63aa511c052d823c3dee2f8609084eb12cac1f88
2015-11-19 21:40:57 +01:00
Sumit Asthana d83ac976e3 TextExtracts allow sentence end with numbers
Allows sentences to end with numbers before a full stop in query
extractsentences.

Also added some more unit tests.

Bug: T118621
Change-Id: I9cbf487601d4165b490696d38d5fcbcf6d8f4637
2015-11-18 20:11:20 -06:00
Kunal Mehta 36d1b4f3c4 Use page_touched in cache key instead of page_latest
Because the extracts depend upon template inclusion, to make sure
the extract is properly updated whenever the page's dependencies change,
use the page_touched timestamp instead of the latest revision id.

Since we're changing the cache key format, remove the 'mf' prefix from
back when it was still in MobileFrontend.

As a side-effect, this will also make action=purge invalidate the cache
since it updates page_touched.

Bug: T117322
Change-Id: Ib6f415c756c57caf6c83be495a4f229446e8b61e
2015-10-31 22:00:51 -07:00
Kunal Mehta 29ae8b5a63 build: Updating development dependencies
* grunt-banana-checker: 0.2.2 → 0.4.0

Change-Id: Ie92e204df31ddfbcf5a730e4f20b823dc62f9451
2015-10-11 12:02:31 -04:00
Translation updater bot 1619d0ed93 Localisation updates from https://translatewiki.net.
Change-Id: I1f493a5960eb10432200066a43725ebc248dc211
2015-08-25 21:58:44 +02:00
Translation updater bot abe8497359 Localisation updates from https://translatewiki.net.
Change-Id: I43956927ad3770fee9c243bf19be599121b6b5a6
2015-08-17 21:13:55 +02:00
Translation updater bot 8e4d9b1e57 Localisation updates from https://translatewiki.net.
Change-Id: I8305f1ccf12e5e830cd23540a4418018afdb5ff2
2015-08-04 23:17:45 +02:00
Matthew Flaschen 63b358fca2 SECURITY: Disallow extracts for non-wikitext for now.
Note that the sensitive information is still in the TextExtracts
memcached, so this requires security review (and either eviction
or a cache key change) before enabling other content models.

Bug: T107170
Change-Id: I57642e84db39d585c5b04453f86102b10fb69cdf
(cherry picked from commit f5c114c571)
2015-08-04 00:08:43 +00:00
Translation updater bot 13e609f894 Localisation updates from https://translatewiki.net.
Change-Id: I1549511a0359c0d0bdace51652f55daa788f8118
2015-07-29 21:51:42 +02:00
Translation updater bot 528f071006 Localisation updates from https://translatewiki.net.
Change-Id: I07bf82c80c5d9e7bb839b5fb6e30916c4722e045
2015-07-26 21:41:55 +02:00
Translation updater bot 68f8894208 Localisation updates from https://translatewiki.net.
Change-Id: I8065e2f2c1b4afdf824498691c7820174be796a0
2015-07-25 21:58:17 +02:00
jenkins-bot 0285c9e033 Merge "Ensure sentences is an int" 2015-07-15 20:35:34 +00:00
Ori Livneh 7c1ea48971 Update for rename of WikiPage::isParserCacheUsed() in I7de67937f0
Make the code compatible with both the old name (WikiPage::isParserCacheUsed)
and new name (WikiPage::shouldCheckParserCache).

Change-Id: If5d5da8eab132eb6d60f7141884ed2aeaa46e444
2015-06-22 20:44:23 -07:00