Commit graph

1502 commits

Author SHA1 Message Date
Timo Tijhof 6f362c6d8a Minor clean up in new ParsoidFetchTemplateData hook
Follows-up 956367fb90.

* Fix typo.
* Remove <del>footgun</del><ins>dangerous return value</ins>
  from this unabortable hook.
* Document the weird PageProps workaround.
  This should be fixed in core.

Change-Id: I6b22e9c2112039e5703e6a62252f1909b15c8887
2020-01-28 19:14:12 +00:00
Translation updater bot d56c5f41c5 Localisation updates from https://translatewiki.net.
Change-Id: I8b2bea132f69e31955e3d5cffb6bf7fe7ee49758
2020-01-28 08:26:33 +01:00
Translation updater bot fd7fd9495b Localisation updates from https://translatewiki.net.
Change-Id: Iaa56c127cfb984752bb0966f5bb3f283a0ed140c
2020-01-23 08:35:38 +01:00
Translation updater bot 390e867562 Localisation updates from https://translatewiki.net.
Change-Id: Ia16020bd63be7c383d96dd6a80a316976e3cc504
2020-01-20 08:50:42 +01:00
Translation updater bot 9333a7bca0 Localisation updates from https://translatewiki.net.
Change-Id: I8512b4a9f4aa5edecf884e3f57f44c03723446dc
2020-01-16 09:29:58 +01:00
libraryupgrader 9a41a95389 build: Updating mediawiki/mediawiki-codesniffer to 29.0.0
The following sniffs are failing and were disabled:
* MediaWiki.Commenting.FunctionComment.MissingDocumentationPrivate

Additional changes:
* Also sorted "composer fix" command to run phpcbf last.

Change-Id: I8846de470461b4887dbc1e33653c8cdec8839366
2020-01-14 12:46:52 +00:00
Translation updater bot efd1eba87b Localisation updates from https://translatewiki.net.
Change-Id: Ic50c409174429d5120618eb62ebdc99ed6c2e06f
2020-01-13 09:12:03 +01:00
Translation updater bot 90ee90c3f0 Localisation updates from https://translatewiki.net.
Change-Id: I28710c9496f84549b872c26a01143ac684361364
2020-01-06 08:50:46 +01:00
Bartosz Dziewoński 2a137a2377 Ensure cancel confirmation dialog is visible on top of main dialog
Bug: T241819
Change-Id: I7764ad13acd52779e4f4ae853c05c795a80dc870
2020-01-03 12:57:30 +01:00
Translation updater bot e6d183456e Localisation updates from https://translatewiki.net.
Change-Id: Iee5bb0dcb245e31bb2afcafe29951c66df8af7ca
2020-01-02 08:59:55 +01:00
Translation updater bot 8b1df4c598 Localisation updates from https://translatewiki.net.
Change-Id: I989bc39bd8979c5634ac838a630e68d44e26c39b
2019-12-29 20:42:06 +01:00
jenkins-bot f60b457884 Merge "build: Updating mediawiki/mediawiki-phan-config to 0.9.0" 2019-12-29 13:59:32 +00:00
libraryupgrader 1c8f1b14e8 build: Updating mediawiki/mediawiki-phan-config to 0.9.0
Additional changes:
* Added .eslintcache to .gitignore.

Change-Id: I96c348782dc892efb80e2fffa898f595fa76c43a
2019-12-28 17:21:07 +00:00
Translation updater bot 08c388a3a9 Localisation updates from https://translatewiki.net.
Change-Id: I8a7411a8c6acd30f58c66f61d36fee21b111674f
2019-12-26 16:21:54 +01:00
Translation updater bot 6afbde1736 Localisation updates from https://translatewiki.net.
Change-Id: I55d9ca8056f7935d0390790b3c7584cf7cd132a9
2019-12-22 17:41:44 +01:00
libraryupgrader 5be054470a build: Updating mediawiki/minus-x to 0.3.2
Additional changes:
* Added .eslintcache to .gitignore.

Change-Id: Ice82cae5492a8a1d0c1d32e31fd36a1126c3f726
2019-12-20 04:56:01 +00:00
jenkins-bot 3da1262c95 Merge "build: Update linters" 2019-12-18 12:04:09 +00:00
Ed Sanders 2db15c75a1 build: Update linters
Change-Id: Ie5cd0d355017eb802d0b302a69248886409fcbf9
2019-12-18 11:43:42 +00:00
Translation updater bot 7b1d0605de Localisation updates from https://translatewiki.net.
Change-Id: I5ccb211abfdd02bf703a9c00c86a659256cb62b5
2019-12-16 12:15:28 +01:00
Translation updater bot b219a159b1 Localisation updates from https://translatewiki.net.
Change-Id: I0207810ba9b2635d8bdef492742529305b3619a0
2019-12-06 09:34:43 +01:00
jenkins-bot ce1cf9a962 Merge "templateDataGenerator: Fix off-by-one error when inserting new tag" 2019-12-02 16:39:30 +00:00
Translation updater bot bedb2bd182 Localisation updates from https://translatewiki.net.
Change-Id: Ie6c6c663e6983079a856f7b26677bf795265a966
2019-12-02 09:23:53 +01:00
Bartosz Dziewoński 2b8e39a278 templateDataGenerator: Fix off-by-one error when inserting new tag
There should not be a `- 1` here. It was kept in the refactoring in
34924e0a0b, but it should have been removed.

Also simplify the entire expression to just `matches.index`, which is
equivalent and easier to understand. We already use `matches.index` above.

Bug: T239445
Change-Id: I9cbeaabd50fb595c0ff622b86ce3870285e5b7c8
2019-11-28 21:39:32 +01:00
Subramanya Sastry 956367fb90 Implement ParsoidFetchTemplateData hook for Parsoid/PHP
* This hook supports functionality that Parsoid/JS used the MW API for.

  Parsoid's html2wt code requests templatedata for titles one
  at a time currently and so this hook also supports lookups one
  title at a time.

  This initial implementation is good enough for initial Parsoid/PHP
  deployment.

* As part of later performance optimization, we should figure out if
  we want to fetch templatedata for all templates in batch mode and
  work out the details (selser doesn't touch all templates, for one).

  The hook does accept an array of titles, but it looks them up
  serially in a simple for-loop.

  Separately, we need to resolve if this is better architected as
  a lookup service vs. a hook as it is now (see discussion on gerrit).

* Tested locally on my local wiki.

Bug: T238954
Change-Id: I01fb6a9f334ca37a703be497524180f87fb8bbf7
2019-11-25 11:09:13 -06:00
Translation updater bot 06adf70c0c Localisation updates from https://translatewiki.net.
Change-Id: I92b4c328900793dddddd0ead0a4033276f304ca3
2019-11-20 09:38:38 +01:00
Translation updater bot 722df8939b Localisation updates from https://translatewiki.net.
Change-Id: Ied2ceb305d1ef59a7c0411485f0fcdd553f35e19
2019-11-11 15:33:31 +01:00
Translation updater bot 795e195944 Localisation updates from https://translatewiki.net.
Change-Id: Ida5d1dbc64c57ec73090c41860b26f727ee34275
2019-11-08 09:48:39 +01:00
Umherirrender 5b461fe29c build: Updating mediawiki/mediawiki-phan-config to 0.8.0
Bug: T235049
Change-Id: Ifb8164db659742c4747343b047c28eed8b230532
2019-11-05 16:58:58 +01:00
Translation updater bot 883d945cfd Localisation updates from https://translatewiki.net.
Change-Id: I8ca0cb1beaec5e7e64f53a0fdacbb7f8f037110b
2019-11-05 09:46:53 +01:00
Translation updater bot db717fd7f7 Localisation updates from https://translatewiki.net.
Change-Id: I4a72151421e61280979f9cf6ca99d29796f4c46d
2019-10-25 09:19:30 +02:00
Translation updater bot dad1c1568d Localisation updates from https://translatewiki.net.
Change-Id: I85f75ad9cdeb3752519bcb8243fafe3efd6b5954
2019-10-24 10:48:18 +02:00
Translation updater bot 1d78f9ae25 Localisation updates from https://translatewiki.net.
Change-Id: Ida27f37f5340eb302723c438dc30d7e6a59f6f3c
2019-10-16 20:41:59 +02:00
Translation updater bot 50c8663e56 Localisation updates from https://translatewiki.net.
Change-Id: Ica0e34f2c69ae5cc7b6b9e72e5f4da06863428f0
2019-10-16 10:41:16 +02:00
James D. Forrester c88aed986c build: Upgrade mediawiki-codesniffer to v28.0.0
Change-Id: I39190ff2056c24184f128eba71d619fc748b0ca5
2019-10-11 12:04:42 -07:00
Translation updater bot 20534a9909 Localisation updates from https://translatewiki.net.
Change-Id: I39f336ef86c48dc1454fbadb8237038da64188c4
2019-10-10 09:33:44 +02:00
Translation updater bot e6f4708308 Localisation updates from https://translatewiki.net.
Change-Id: I73fbc4f5f29b0cc73a36fbeeed3c9ac59ae45a2d
2019-10-08 09:34:28 +02:00
Translation updater bot b9ccaf626e Localisation updates from https://translatewiki.net.
Change-Id: I1847d031ec21e6314ccc0e8ce92f07cb5ce5d1bb
2019-10-01 09:26:17 +02:00
jenkins-bot 2aeec4610d Merge "Do not always store template data compressed" 2019-09-30 23:56:21 +00:00
saper ce13175017 Do not always store template data compressed
Only MySQL can handle blobs in page_props.pp_value

Bug: T203850
Change-Id: Ie20d412d89855e451d48f7656d97fb305b1c4c55
2019-09-30 14:24:39 +02:00
Translation updater bot a65247f405 Localisation updates from https://translatewiki.net.
Change-Id: I51a390458acecae98136760f2eb3bbee8633cc16
2019-09-26 09:15:18 +02:00
Translation updater bot b06fe10b3d Localisation updates from https://translatewiki.net.
Change-Id: I1675a360a33c789978d793e5110debe88471600d
2019-09-16 09:57:17 +02:00
Timo Tijhof b87d37f482 Merge 'ext.templateDataGenerator.ui.images' into 'ext.templateData.images'
Only ever used together as dependencies for module
'ext.templateDataGenerator.editTemplatePage'.
In the UI, they provide icons for the same dialog.

The 'ext.templateData.images' module is also used in one other place,
via addModuleStyles() on NS_TEMPLATE pages that use <templatedata>.

The 'template-format-block' and 'template-format-inline' icons
are used by the Parser output HTML for the documentation block.
Having one unused icon there, preloaded for editing templatedata,
seems acceptable given it's so tiny and basically was already being
paid for on page views with the mere existence of the module taking
up about as much space as the icon itself.

Change-Id: If839100feca51d67bba7151878dfddd1bcbc372b
2019-09-13 03:12:42 +01:00
Timo Tijhof 8f35430bd7 Merge 'ext.templateDataGenerator.ui' into 'ext.templateDataGenerator.editTemplatePage'
Change-Id: I3357618f95f4baeb27013b9d753a3f99cba3847e
2019-09-12 23:20:22 +01:00
Translation updater bot d0a4f2091d Localisation updates from https://translatewiki.net.
Change-Id: I18b6ebb338d51cab0dd6cd1dead6a981abcb19b9
2019-09-04 10:15:33 +02:00
Translation updater bot f6fa145de1 Localisation updates from https://translatewiki.net.
Change-Id: Ib3337fee62ec75c218270081496cf16232bc0617
2019-09-03 10:30:25 +02:00
Translation updater bot 936eb09546 Localisation updates from https://translatewiki.net.
Change-Id: I7fcf326d3a64111f7153ffe99abe49e2b317edbf
2019-09-02 10:20:46 +02:00
DannyS712 313d627774 Use Special:MyLanguage in API help links
Bug: T231269
Change-Id: I2ba71ea4f777ee72e649a8db9e211229f6584e63
2019-08-27 06:44:14 +00:00
Translation updater bot 5283470ca8 Localisation updates from https://translatewiki.net.
Change-Id: Icb1152f2f650b36921cdc4af36a9f98a7e58aa81
2019-08-25 10:32:01 +02:00
libraryupgrader c65f2c14fd build: Updating eslint-utils to 1.4.2
* https://npmjs.com/advisories/1118

Additional changes:
* Added .eslintcache to .gitignore.

Change-Id: I8ae786e349decc83d4d4011309b3ecf64e84a0ef
2019-08-23 05:56:32 +00:00
Translation updater bot b8748e8ec2 Localisation updates from https://translatewiki.net.
Change-Id: Ifa5a7cb82eafa2d05e90446472ff5598087bfca6
2019-08-20 10:27:01 +02:00