Commit graph

183 commits

Author SHA1 Message Date
Translation updater bot 10c84cbf34 Localisation updates from https://translatewiki.net.
Change-Id: I969f946dcaa771f76cdd829618797c8b329e1772
2021-06-02 14:36:10 +02:00
Translation updater bot f3757befa7 Localisation updates from https://translatewiki.net.
Change-Id: I54df46dce949f7b87de42e6b565e966db5468dd4
2021-05-31 08:33:30 +02:00
Translation updater bot 1811893632 Localisation updates from https://translatewiki.net.
Change-Id: Ib05124e2d7e1d387b94227db2e75cd0af7933610
2021-05-21 08:34:55 +02:00
Translation updater bot 04e468e5d3 Localisation updates from https://translatewiki.net.
Change-Id: I1772bfc3d8a05789bf5126180a7a8bd81960c321
2021-05-18 08:48:10 +02:00
Translation updater bot 03c277e96a Localisation updates from https://translatewiki.net.
Change-Id: I0e8507be3cf38c993020e5ea05144b6a53eeba33
2021-05-11 09:08:30 +02:00
Translation updater bot 752cc487e2 Localisation updates from https://translatewiki.net.
Change-Id: Ie07dc3f2354dadbb464c60706a11c8339c1653e4
2021-05-10 08:54:22 +02:00
Translation updater bot 39dea795d9 Localisation updates from https://translatewiki.net.
Change-Id: I59dd6fb5c903595e0995998bd0e290c6ac14ca83
2021-05-07 08:43:59 +02:00
Kosta Harlan f035ce51f1 Introduce VisualEditorApiVisualEditorPostSaveHook
What:

Add hook that runs after a save attempt is made in ApiVisualEditorEdit.
The hook receives the same data available in ApiVisualEditorEdit, and
implementations of the hook can modify the API response.

Also introduce templated
parameters (https://www.mediawiki.org/wiki/API:Templated_parameters) in
the API parameters; this allows plugins to pass arbitrary data along
with their request using e.g. plugins=linkrecommendation&data-linkrecommendation=foo

Add ServiceWiring files, a PHP namespace, and a HookRunner class to
support the above changes.

Why:

VE plugins may wish to send additional data when saving an edit and take
action based on that data on the server-side. See for example the
AddLink plugin in I7a052f8e which sends annotation data, and then uses
the new hook to perform a database operation.

Change-Id: I392691475fbdcec766acbd832600e82efcb5bfe8
2021-04-30 20:50:01 +02:00
Translation updater bot 788b168073 Localisation updates from https://translatewiki.net.
Change-Id: Icefa5c0035c1f39e9c63d54f15dce401e317d323
2021-04-23 08:37:42 +02:00
Translation updater bot d0b48d9bbf Localisation updates from https://translatewiki.net.
Change-Id: I2989ccbec957e54c5b885445bf3261129e81c5d7
2021-03-26 08:51:21 +01:00
Translation updater bot 86db8ff85f Localisation updates from https://translatewiki.net.
Change-Id: Ia31770f454e29c4e901c9e6a91830ad085a2e236
2021-03-09 08:33:42 +01:00
Translation updater bot 256145cadf Localisation updates from https://translatewiki.net.
Change-Id: I8f8b2c9950ceba3975a008810dad475c15bcce5f
2021-03-02 08:51:05 +01:00
Translation updater bot 9b73bc0da8 Localisation updates from https://translatewiki.net.
Change-Id: I70b96aae24e85e3af50e2b8846e6ac9ed4c94af1
2021-03-01 08:54:12 +01:00
Translation updater bot a4da38dcbe Localisation updates from https://translatewiki.net.
Change-Id: I41bc686d863baa1709e6d3cca088c27b3cbf650c
2021-02-22 08:54:16 +01:00
Translation updater bot 4b34308bc0 Localisation updates from https://translatewiki.net.
Change-Id: Ib3f15f4cd49192e43424dd8ba3152308fa0a774c
2021-02-18 08:44:18 +01:00
Translation updater bot 84da14f22f Localisation updates from https://translatewiki.net.
Change-Id: I7cf79e7641e90ec3bb670b8d7d823920492bedab
2021-02-15 10:06:57 +01:00
Translation updater bot 4dffd99bc7 Localisation updates from https://translatewiki.net.
Change-Id: I0857022e8dc470853cf2078dad76788929e1f9ae
2021-02-11 08:40:50 +01:00
Translation updater bot 8a6616629e Localisation updates from https://translatewiki.net.
Change-Id: I6988a87ef5f30303a5f1c53a3f690c0e902e6f0a
2021-02-08 08:46:27 +01:00
Translation updater bot 5789eb680b Localisation updates from https://translatewiki.net.
Change-Id: I1ca01a75350be7eb95675ccdecdcbcaee08baf6b
2021-01-21 08:33:11 +01:00
Translation updater bot 8c48722e52 Localisation updates from https://translatewiki.net.
Change-Id: I47271ac438febe5126d9252a526574fdf8c5cb56
2021-01-12 08:38:45 +01:00
Translation updater bot 94621896a4 Localisation updates from https://translatewiki.net.
Change-Id: I7d2d6b407d9035b05b81e21043d25b1d1c764252
2020-12-30 10:15:37 +01:00
Translation updater bot 12860d0a53 Localisation updates from https://translatewiki.net.
Change-Id: I89cb809619d007280f4edc2e6917c1d39c9b6763
2020-11-30 08:48:20 +01:00
Translation updater bot 9768adbedb Localisation updates from https://translatewiki.net.
Change-Id: I6296c6d09e103366ba51f9afc7404936bc280578
2020-10-22 08:32:01 +02:00
Translation updater bot 714e255a4d Localisation updates from https://translatewiki.net.
Change-Id: I1adbc96c45d1655eb793652974281fef517bad16
2020-10-21 08:28:16 +02:00
Translation updater bot 5a5a6deb28 Localisation updates from https://translatewiki.net.
Change-Id: Idff525109ce1bbda0b0140962050025fabdda819
2020-10-20 08:31:48 +02:00
Translation updater bot 0a6ccea046 Localisation updates from https://translatewiki.net.
Change-Id: If31185e403e1bb5ec99f25b4fba0583537d69183
2020-10-16 08:30:07 +02:00
Translation updater bot b69212a202 Localisation updates from https://translatewiki.net.
Change-Id: Ib658ca951b2f64ca5c6fad520cfb214d3c5c7f01
2020-10-15 08:39:18 +02:00
Translation updater bot 3012300634 Localisation updates from https://translatewiki.net.
Change-Id: Iafdce1295603d8982461de6115d0defd8902ce1c
2020-10-05 08:44:11 +02:00
Translation updater bot af6bed0144 Localisation updates from https://translatewiki.net.
Change-Id: Iebb35cc12c2adaa4fc269058353c9e7ffbf179b1
2020-09-28 08:30:41 +02:00
Translation updater bot ca2fff6571 Localisation updates from https://translatewiki.net.
Change-Id: Ica73762778ace1b2740fc7fde62a903480c858e4
2020-09-14 09:16:56 +02:00
Translation updater bot 1dfc545dd6 Localisation updates from https://translatewiki.net.
Change-Id: Icd42685f085c7a4aeebb0ff4df3328aa3e53efb7
2020-09-06 20:57:09 +02:00
Translation updater bot e6f180aabc Localisation updates from https://translatewiki.net.
Change-Id: Ie66432be6cc9834f82f03608fe7439a550697fea
2020-08-24 11:59:36 +02:00
Translation updater bot 6c8dd899b2 Localisation updates from https://translatewiki.net.
Change-Id: I311205f32b68e4bc985a25d328eac157880fb774
2020-08-14 08:39:58 +02:00
Translation updater bot 480c379791 Localisation updates from https://translatewiki.net.
Change-Id: I2844a9aa8a23e49e39ab5c093e89764d56f49784
2020-08-10 09:02:21 +02:00
Translation updater bot a218c1b52c Localisation updates from https://translatewiki.net.
Change-Id: I36b86e0a8d1e78269a9c5c1fc0500a1ae3f8ffd0
2020-08-03 08:34:21 +02:00
Translation updater bot 8faabdc576 Localisation updates from https://translatewiki.net.
Change-Id: I4fcea4815899d50243bd41e70037f244886e0a08
2020-07-23 08:29:16 +02:00
Translation updater bot f2ba8f2360 Localisation updates from https://translatewiki.net.
Change-Id: Icae9c0a72b06ec792e35c9638e2f2d6114290855
2020-07-21 09:14:07 +02:00
Translation updater bot 4d396b5dc9 Localisation updates from https://translatewiki.net.
Change-Id: I6401ad1e956b7281297ff02235eb87db24243ae6
2020-06-08 08:53:10 +02:00
Translation updater bot d1d0be61c8 Localisation updates from https://translatewiki.net.
Change-Id: I097d8af2a9b854bfc05e954fc29f75a4c8ca47d2
2020-06-05 08:54:26 +02:00
jenkins-bot a28a263192 Merge "Drop linting from the VE API" 2020-06-04 17:12:54 +00:00
Ed Sanders f01d4ab35d Drop linting from the VE API
Calling the linter is very slow as the result is not
cached. Extensions needing this (DiscussionTools) should
just call the Linter extension API directly.

Bug: T253799
Change-Id: I994b52ca70c29a32900741a36087f10144396720
2020-06-04 18:51:38 +02:00
Translation updater bot 0aae60f0a4 Localisation updates from https://translatewiki.net.
Change-Id: Ia3e96962c15481a736512e668dfb6adf9b1ea691
2020-05-28 08:41:40 +02:00
Translation updater bot c8779b8cb6 Localisation updates from https://translatewiki.net.
Change-Id: Ib554a153bd545d4cfc59b5e092c9376f7f90c47f
2020-05-26 08:38:07 +02:00
Translation updater bot 70a7f8775b Localisation updates from https://translatewiki.net.
Change-Id: Ib93923f85bb1191b8f46f1655baccfd63928829e
2020-05-20 08:36:08 +02:00
Translation updater bot a5b0eaaaec Localisation updates from https://translatewiki.net.
Change-Id: I5109f6fe7ec20ea87291f337efb7fc6b5b498a31
2020-05-11 08:39:18 +02:00
Translation updater bot 4e30398c2e Localisation updates from https://translatewiki.net.
Change-Id: I75d5228ffd8e67e4827f160f66f671b7e0df071d
2020-04-29 08:37:39 +02:00
Translation updater bot cb6ecae7fd Localisation updates from https://translatewiki.net.
Change-Id: I14ef3d4f5bec62dc522a1beeab53f7de69e628b7
2020-04-27 09:04:25 +02:00
jenkins-bot e4fe634201 Merge "ApiVisualEditor: Add option to return lint errors from Parsoid" 2020-04-24 10:03:40 +00:00
Bartosz Dziewoński ae86f7290b ApiVisualEditor: Add option to return lint errors from Parsoid
Depends-On: I6bbe2fc5aea07c65eb99768f2c44ed42601792a3
Depends-On: I6bdf5635763ef8a44d44a031c64cd7f289261a32
Change-Id: I723ec766d1244d117f8d624440026fe5af0d3403
2020-04-21 22:49:29 +02:00
Translation updater bot 71b3c4baf9 Localisation updates from https://translatewiki.net.
Change-Id: I029aee12ff3f313f653c7d361b46db7b9d42dfd9
2020-04-20 08:43:37 +02:00
Translation updater bot 5ff8784aab Localisation updates from https://translatewiki.net.
Change-Id: If060672a70c66f4fa7a4571c0e9951233c72e005
2020-04-16 09:34:21 +02:00
Translation updater bot 403071cced Localisation updates from https://translatewiki.net.
Change-Id: Ic78d4925d724c0deb6a4529873f638e9b463bcb0
2020-04-07 08:52:40 +02:00
Translation updater bot 080097b3be Localisation updates from https://translatewiki.net.
Change-Id: Iacd44754a5e5944fd1a7ace56503c1db5f62f3e7
2020-04-06 09:03:07 +02:00
Translation updater bot ba2895ca5d Localisation updates from https://translatewiki.net.
Change-Id: I2b4bd2cda45d17f374dd8dd8f674196879073f03
2020-03-30 09:15:41 +02:00
Translation updater bot 4b0f8c621d Localisation updates from https://translatewiki.net.
Change-Id: I17d6622f88ee3ced73f8dcddb32ea292ed81f99d
2020-03-25 08:34:03 +01:00
Translation updater bot 57a0d7d847 Localisation updates from https://translatewiki.net.
Change-Id: Iae5ac813cdf3e486e87d4ff5bb710e0252a10b90
2020-03-24 08:50:52 +01:00
Translation updater bot 6efa7b337a Localisation updates from https://translatewiki.net.
Change-Id: I58c766e7efcfd9a08574755c5efb98f6b0399a61
2020-03-16 16:03:04 +01:00
Translation updater bot f43d76e1a6 Localisation updates from https://translatewiki.net.
Change-Id: Ib8eca312f8fe91a51277586b184ed9619f53735a
2020-03-13 08:55:26 +01:00
Translation updater bot d84cf9f11c Localisation updates from https://translatewiki.net.
Change-Id: I55640b9bb38d4700220b31e7abf7914aa7b84061
2020-03-05 08:40:28 +01:00
Translation updater bot 8b696b27b0 Localisation updates from https://translatewiki.net.
Change-Id: I98c98f0b229c1f5f5627b9bb133d3fcb7af5f3fb
2020-03-04 08:54:20 +01:00
Translation updater bot e2489406e4 Localisation updates from https://translatewiki.net.
Change-Id: Ifbf60de2b50c050451793e238aedbafcb9d6d915
2020-03-03 08:15:29 +01:00
jenkins-bot becafcdadf Merge "Fix checkbox handling in the API" 2020-03-02 18:06:36 +00:00
Ed Sanders 42194ec411 Fix checkbox handling in the API
The code for setting 'watchlist' in the EditAPI request
was completely broken as it always evaluated to 'unwatch'.
Instead pass through 'watchlist' directly from the client
where it must be set to 'watch' or 'unwatch'.

Bug: T245579
Change-Id: Ia5a2bb76ef35a685b39bcc0c4727796acd0f510d
2020-02-29 17:35:29 +00:00
Translation updater bot b260f4196f Localisation updates from https://translatewiki.net.
Change-Id: Id2a5c1176cfeac39c180eeb1eedc73b12b9c327c
2020-02-27 08:38:02 +01:00
Translation updater bot c21380cd5a Localisation updates from https://translatewiki.net.
Change-Id: I58af5e859a97df404cc60cf23d904d7617c9e997
2020-02-20 09:28:08 +01:00
Translation updater bot e5de680272 Localisation updates from https://translatewiki.net.
Change-Id: I1f69b23613709c810ace50e22e984b01ec7b6f88
2020-02-19 08:27:05 +01:00
Translation updater bot f9f2ef6c8e Localisation updates from https://translatewiki.net.
Change-Id: I38496e87be951e9c540afe9862731272ad2093c0
2020-02-17 08:48:10 +01:00
Translation updater bot e95bb8cc6c Localisation updates from https://translatewiki.net.
Change-Id: Icbc3acdecf9cd802141959b1825585687c8567ab
2020-02-14 08:26:51 +01:00
Translation updater bot d07ea1a9ff Localisation updates from https://translatewiki.net.
Change-Id: I5198ad8e141134188962e3c46c90647149fb4d90
2020-02-10 08:36:24 +01:00
Translation updater bot 1cb6407364 Localisation updates from https://translatewiki.net.
Change-Id: I2bc3b51422caac84be780c597590ccda9c4772e2
2020-02-07 09:58:18 +01:00
Translation updater bot bbf304c8f1 Localisation updates from https://translatewiki.net.
Change-Id: Icbae912ed98594af2756757ee1b76e3ace7b98ae
2020-02-06 08:20:16 +01:00
Bartosz Dziewoński 6ee5db11dc Correct API documentation for 'tags'
The message wasn't updated when we changed our minds during the
development of d85d30f9b3. Now the
normal tagging is done in client-side code, so it's effectively
always "suppressed" when calling the API.

Change-Id: Ie75ce31e7c723ff2677e8caa205666f5394405fa
2020-02-05 14:20:31 +01:00
Translation updater bot 2cca81a662 Localisation updates from https://translatewiki.net.
Change-Id: I3e5487a089b0a92ba9d0521f6d1d464bea7041d6
2020-02-05 08:19:56 +01:00
jenkins-bot 124ae7a444 Merge "Tag VE edits from the client-side" 2020-02-04 16:43:59 +00:00
David Lynch d85d30f9b3 Tag VE edits from the client-side
This opens up the API so that other tools can use it without being
forced to tag those edits as being from VE.

Also, document that tags is a working parameter that can be passed
through to the edit API.

Bug: T242184
Change-Id: I2c1d0f8d69bc03e5c1877c790247e165f160e966
2020-01-29 21:55:07 -08:00
Translation updater bot 4984b3d7da Localisation updates from https://translatewiki.net.
Change-Id: I0898365c628b60cbd351a806fd0297fe60c0b71f
2020-01-24 08:16:00 +01:00
Translation updater bot 24480a24bd Localisation updates from https://translatewiki.net.
Change-Id: I4ab6ba49c3319a880c9a8df293c2e1d4cd43afe5
2020-01-14 10:59:54 +01:00
Translation updater bot a335e3acdf Localisation updates from https://translatewiki.net.
Change-Id: I917f992c01e252317149598a1ba30156b113a4a9
2020-01-13 09:12:32 +01:00
Translation updater bot 208f7d72bb Localisation updates from https://translatewiki.net.
Change-Id: I9cf1085b6b79e5be2ea8f75adf4768d2f9cd334b
2019-12-26 16:22:32 +01:00
Translation updater bot 80c8656fad Localisation updates from https://translatewiki.net.
Change-Id: I57a5e8c3e0c017c598474f599b222e17b1061c43
2019-12-16 12:16:02 +01:00
Translation updater bot 801050ba5b Localisation updates from https://translatewiki.net.
Change-Id: I6e4410830ead7a986caa7df0d8a638feaaa70162
2019-12-09 09:37:30 +01:00
Translation updater bot 4d4bee2eb0 Localisation updates from https://translatewiki.net.
Change-Id: I73391b0ffde3fca6fd77c58e777ecc2b2179ba5c
2019-12-06 09:35:35 +01:00
Translation updater bot f1dbf95639 Localisation updates from https://translatewiki.net.
Change-Id: Ia9943451a96450305ca0414513af9a849bd264ed
2019-12-04 09:30:07 +01:00
Translation updater bot 7662ae2b8e Localisation updates from https://translatewiki.net.
Change-Id: Ia0fc0bafe27ddbb5aa5a0f3d43b73d5cca6dfef6
2019-12-02 09:24:34 +01:00
Translation updater bot 0c1ee6f9bd Localisation updates from https://translatewiki.net.
Change-Id: If77bf5138d50d9d2ab3fff09c1e2737b8d3c3580
2019-11-11 15:35:01 +01:00
Translation updater bot 45eb1a6fbb Localisation updates from https://translatewiki.net.
Change-Id: I53274b90e57c7d9aa59480dd677c3d4e97e102ca
2019-11-04 10:18:17 +01:00
Translation updater bot c26c8dc6b1 Localisation updates from https://translatewiki.net.
Change-Id: Ia141cef7662939b9a06f4793b19a61d00bdfcedc
2019-10-29 09:39:48 +01:00
Translation updater bot a5eb16f681 Localisation updates from https://translatewiki.net.
Change-Id: I6f2849f46d2cc875a52aefc41fbc971c1b57137e
2019-10-28 16:37:05 +01:00
Translation updater bot 96ee9ebd5d Localisation updates from https://translatewiki.net.
Change-Id: Ia44b81d8161cddbc10871f52edc5dac23477370e
2019-10-25 09:19:46 +02:00
Translation updater bot bcfd96477f Localisation updates from https://translatewiki.net.
Change-Id: Id718c4eb13106f3ce0f899e29b4c0511c1b491d0
2019-10-23 09:54:17 +02:00
Translation updater bot 43f1ee59f7 Localisation updates from https://translatewiki.net.
Change-Id: I877cb15aa7086decef34ca74d34ff6c620056055
2019-10-22 09:15:38 +02:00
Translation updater bot 7792044600 Localisation updates from https://translatewiki.net.
Change-Id: If5f9fd6cd9fbf7027f311bd87ba2d86488c0b68a
2019-10-21 10:01:17 +02:00
jenkins-bot 932286063f Merge "Improve message for the infamous "HTTP 404" error" 2019-10-18 10:57:17 +00:00
jenkins-bot 4452062bab Merge "Detect mangled etags from RESTBase and retry via MediaWiki API" 2019-10-18 10:50:39 +00:00
Bartosz Dziewoński 3a7f5703dd Improve message for the infamous "HTTP 404" error
(This is the error from T233127.)

It's still somewhat unhelpfully generic because it can appear in many
situations. But at least it'll be searchable, and less ambiguous about
where the 404 happened when a user reports getting this error.

Change-Id: I9e771934c436f39dd380fa5a06edcfbce9efad4c
2019-10-18 11:05:19 +02:00
Translation updater bot 0ee9f78297 Localisation updates from https://translatewiki.net.
Change-Id: I6aa2e183d73f7253bae6be5f59aaa886c2bdb546
2019-10-16 20:42:57 +02:00
Bartosz Dziewoński 5d1a67757a Detect mangled etags from RESTBase and retry via MediaWiki API
Something is causing the 'ETag' headers produced by the "public"
RESTBase (queried directly from the client) to be mangled or lost.
My theory is that some proxy or browser extension is doing that.

When we detect a bad etag when fetching the page contents, discard
the result and try querying the "private" RESTBase via the MediaWiki
API (similar to what we do on private wikis, except there we talk
directly to Parsoid instead of RESTBase). After I463a84de63, that
returns the etag as part of the payload rather than HTTP headers,
and should pass unharmed through whatever is mangling the data.

Also compare and log the two etags.

Bug: T233320
Change-Id: I2ef0ca872597566f74b650aea71bf3f15747a6d7
2019-10-16 19:53:43 +02:00
Translation updater bot bae38531bd Localisation updates from https://translatewiki.net.
Change-Id: I03dbafb688c8af17cdad08d67ad30da560793ca0
2019-10-16 10:41:39 +02:00
Translation updater bot a586842339 Localisation updates from https://translatewiki.net.
Change-Id: I570c7b1354e83e43732b482d5284b72f7cc5aab1
2019-09-16 09:58:20 +02:00
Translation updater bot 8dc9650510 Localisation updates from https://translatewiki.net.
Change-Id: I01dcda8d4557a1575fbb14fe8586805087782d2d
2019-09-04 10:16:23 +02:00