Commit graph

1269 commits

Author SHA1 Message Date
Bartosz Dziewoński d2e49b16f7 Use RevisionLookup methods instead of ApiParsoidTrait methods
Part of my secret plan to delete ApiParsoidTrait.

* Inject RevisionLookup into ApiVisualEditor
* Use RevisionLookup::getRevisionById instead of ApiParsoidTrait::getValidRevision
* Use RevisionLookup::getRevisionByTitle instead of ApiParsoidTrait::getLatestRevision
* Use standard MediaWiki error messages
* Delete unused ApiParsoidTrait::getValidRevision
* Delete unused ApiParsoidTrait::getLatestRevision

Depends-On: I7244ee4916fb011fad5faa1d9f837e83f6ac2dc1
Change-Id: I8089c0c516d9dba52e931a0a80740c0361216dbd
2022-10-11 14:54:40 +00:00
Translation updater bot 80504b2c03 Localisation updates from https://translatewiki.net.
Change-Id: Ife6a6cf66ded6188dc69455a3ce887105f2b7da9
2022-10-11 09:17:46 +02:00
Translation updater bot 7b1a6c987c Localisation updates from https://translatewiki.net.
Change-Id: I3789a38b0117a506953adee06c69cb4af131684d
2022-10-10 10:21:38 +02:00
Translation updater bot 2c7876eeb1 Localisation updates from https://translatewiki.net.
Change-Id: I4614e2bb87d3b372a1816878de707b80e839856b
2022-10-06 08:16:32 +02:00
Translation updater bot 78612067c1 Localisation updates from https://translatewiki.net.
Change-Id: If2ea8076d668f76d00b34da72c6732480ca46e91
2022-10-05 08:25:26 +02:00
Translation updater bot 1de359e7eb Localisation updates from https://translatewiki.net.
Change-Id: Iab6b37758543ee81cadb6cbc3c39f5431c501e81
2022-10-04 08:30:22 +02:00
Translation updater bot 5c5673bc2b Localisation updates from https://translatewiki.net.
Change-Id: I6fc288a7b158f9d5ca463d5b32a279af9f1ae8ef
2022-10-03 09:46:46 +02:00
Translation updater bot a509020bee Localisation updates from https://translatewiki.net.
Change-Id: If9817782dfbd79ec98cde40ee8c7d3069063c30a
2022-09-30 08:55:15 +02:00
Translation updater bot ba17184845 Localisation updates from https://translatewiki.net.
Change-Id: I459fcd72595dc72c3b38926ca1df46d33882385f
2022-09-29 08:28:30 +02:00
Translation updater bot 50c6aa8c01 Localisation updates from https://translatewiki.net.
Change-Id: I570e749eee9827e540bb1aa1d9e55c7b9cbc37d0
2022-09-28 08:23:17 +02:00
Thiemo Kreuz 4ca12d6555 Use same formatting for "Parameters:" in qqq.json
Change-Id: I236a8c360a141e68a079f9dd6878e930332ed856
2022-09-27 16:49:13 +00:00
Translation updater bot fc265cef49 Localisation updates from https://translatewiki.net.
Change-Id: If77c6f4664af13e977035761f9f6698573970d27
2022-09-27 08:32:55 +02:00
Translation updater bot 571b2a2cba Localisation updates from https://translatewiki.net.
Change-Id: Ib577f29030525d628bc0c629e50c2ee2b80c78b8
2022-09-26 08:16:44 +02:00
Translation updater bot 944a2b3cf1 Localisation updates from https://translatewiki.net.
Change-Id: I865f2f749a9065448ba5036d1668c605311b37ab
2022-09-23 08:30:29 +02:00
Translation updater bot 62fa3a1903 Localisation updates from https://translatewiki.net.
Change-Id: I53228cb2c3236df742edf70af600b5110a02fa13
2022-09-22 08:47:41 +02:00
Translation updater bot 095d462165 Localisation updates from https://translatewiki.net.
Change-Id: Iceccacde27b4a33554e9a817cb9c873a656588fd
2022-09-21 08:30:02 +02:00
Translation updater bot cd913b4f18 Localisation updates from https://translatewiki.net.
Change-Id: I884506f98bb22eb0c3ac46884482c6df6edbd440
2022-09-20 08:35:03 +02:00
Translation updater bot 185bdb1371 Localisation updates from https://translatewiki.net.
Change-Id: I5cb12b5423304482ec3aa3a51a7cd70a6a1e9693
2022-09-19 08:26:12 +02:00
Translation updater bot 26bc9756fe Localisation updates from https://translatewiki.net.
Change-Id: I3f0cb4841f3673c74c2f871a9f43a39b2898a15b
2022-09-15 09:55:52 +02:00
Translation updater bot c09f6b2d03 Localisation updates from https://translatewiki.net.
Change-Id: I2268528fbe3f561afc6bd40fd06c5d4ab384b6a5
2022-09-14 10:32:15 +02:00
Translation updater bot 4ebdbc2487 Localisation updates from https://translatewiki.net.
Change-Id: Id72f24e0900fc2bc35f18b9f4fb1fcabb2d0101f
2022-09-13 09:26:31 +02:00
Translation updater bot 60e69a0841 Localisation updates from https://translatewiki.net.
Change-Id: I6e831c93427a76ba49188f173fad9f8a4a0c2317
2022-09-12 09:37:23 +02:00
Translation updater bot 6c31c28a11 Localisation updates from https://translatewiki.net.
Change-Id: I8f2be21444913f86be49f7136151281f419b63ab
2022-09-09 10:11:04 +02:00
jenkins-bot ee9866bfc9 Merge "Make "(undocumented parameter)" part of the parameter label" 2022-09-08 11:52:52 +00:00
Translation updater bot bd173ad476 Localisation updates from https://translatewiki.net.
Change-Id: I37351c6027bc65b7400bcfee32fd02f653c3cfa9
2022-09-08 10:00:12 +02:00
Translation updater bot 948773fd15 Localisation updates from https://translatewiki.net.
Change-Id: I3f3acd353c4cfcc1ba484374a17f7f7e25341bb7
2022-09-07 09:55:25 +02:00
jenkins-bot 47cba98037 Merge "Improve some API param docs and validation" 2022-09-06 22:40:13 +00:00
Translation updater bot df2309bd9f Localisation updates from https://translatewiki.net.
Change-Id: I85d94f1eb1aab3293c3da1ed220bc24bbfabcbeb
2022-09-05 10:12:21 +02:00
Bartosz Dziewoński 6f3de6d7f0 Improve some API param docs and validation
Change-Id: Ic1319f82e581b1a3c2108ab32449ce75aa187831
2022-09-02 04:20:41 +02:00
Translation updater bot 3b0a4c60ae Localisation updates from https://translatewiki.net.
Change-Id: I86ceeb77df14a063f764ef6c0918ea8c55526468
2022-09-01 09:35:09 +02:00
Translation updater bot 5eef7c3036 Localisation updates from https://translatewiki.net.
Change-Id: Ic25644afabb8deb1993c36c83fc29896fa99b1de
2022-08-31 09:36:04 +02:00
Translation updater bot 75ba4b9bcd Localisation updates from https://translatewiki.net.
Change-Id: Ifda2701f04d66e4eea570b50d3b4799ceacfc303
2022-08-30 09:31:00 +02:00
Thiemo Kreuz 299738307e Make "(undocumented parameter)" part of the parameter label
This makes it possible to click on "(undocumented parameter)"
to focus the input field – the same effect as when clicking the
parameter name.

This also lower-cases the initual "(U…". This is not the beginning of
a sentence.

Change-Id: Ibfa5bbaee39c2b3a4fefbcee33102b85ca3ba9c0
2022-08-29 17:00:23 +02:00
Translation updater bot dc70a0e599 Localisation updates from https://translatewiki.net.
Change-Id: I5174c709e38f5be173c144a2d0eaba31fdf33bb5
2022-08-29 09:16:16 +02:00
jenkins-bot 9ac8195013 Merge "Improve error messages for RESTBase errors" 2022-08-26 18:41:17 +00:00
Translation updater bot 47d0d5075d Localisation updates from https://translatewiki.net.
Change-Id: Iad9c2b4db5bdfb665f92cc860e487659e62ea39e
2022-08-26 08:23:43 +02:00
Translation updater bot 5a8aadae90 Localisation updates from https://translatewiki.net.
Change-Id: I86064a9ace9b729c122800d7bed755bb07e0dbc1
2022-08-25 08:27:27 +02:00
Translation updater bot 607e031d85 Localisation updates from https://translatewiki.net.
Change-Id: I84436595a4a4fb2327cc6f67c46644a1427e8687
2022-08-24 08:25:18 +02:00
Translation updater bot 31ecd99b94 Localisation updates from https://translatewiki.net.
Change-Id: I0f742133413485003aadedf9f839c29062bfa6a9
2022-08-23 08:11:32 +02:00
Translation updater bot e51c055a8e Localisation updates from https://translatewiki.net.
Change-Id: I0ab0a136de50bf078343139d7593140bccaca92a
2022-08-22 08:24:24 +02:00
Bartosz Dziewoński f2df5dc7b9 Improve error messages for RESTBase errors
For error responses, the response body should be JSON containing a
'detail' key with a human-readable error message.

Remove old debug logging for T233320, it's no longer needed and it
stopped working on WMF wikis anyway (again, previously it was broken
due to T234564).

Change-Id: I64d0b934c90c7e9582e5433ae7a1b9ed2bc0c9a2
2022-08-19 21:13:35 +00:00
Translation updater bot c10a63e23b Localisation updates from https://translatewiki.net.
Change-Id: I505f770e39fb1fcf9e40dcf01d118a753460ce9b
2022-08-19 08:30:56 +02:00
Translation updater bot 45049b4507 Localisation updates from https://translatewiki.net.
Change-Id: Id358f0ae5fc406b0edd8808987eb1884b946319f
2022-08-18 08:39:56 +02:00
Translation updater bot e9560b58b9 Localisation updates from https://translatewiki.net.
Change-Id: Ide31402c2270f6158503829cf6f0e9ecb5eb6edd
2022-08-17 08:25:32 +02:00
Translation updater bot 1c90c8150f Localisation updates from https://translatewiki.net.
Change-Id: I4fdd541d50613ee8a8b2cb4e8594a14196cabeab
2022-08-16 08:35:12 +02:00
Translation updater bot f1c257d590 Localisation updates from https://translatewiki.net.
Change-Id: I7eb99309da43cef286f0a6b4a8710e510ec37419
2022-08-15 08:27:32 +02:00
Translation updater bot 57c8f01b7b Localisation updates from https://translatewiki.net.
Change-Id: I18ba55242d9a97efa35d029409fee01945815d52
2022-08-12 08:44:28 +02:00
jenkins-bot efdde38f85 Merge "Create Parsoid helper for use outside of action API" 2022-08-11 13:39:29 +00:00
Bartosz Dziewoński 8d735bbd9e Create Parsoid helper for use outside of action API
ApiParsoidTrait depends on some ApiBase methods, which is inconvenient
when one wishes to access Parsoid HTML outside of the action API. Move
the bulk of the code into a new class ParsoidHelper, which doesn't.

Replace the uses of methods:
* dieWithError: throw a different kind of exception where it makes
  sense, or change the method to return a StatusValue instead of
  throwing where it doesn't
* getPageLanguage: use Title::getPageLanguage() or pass as parameter
* getConfig: pass to constructor
* getLogger: pass to constructor
* getRequest: pass the only required part to constructor,
  leave some other API-specific code using it in ApiParsoidTrait

Bug: T314565
Change-Id: I90656cc74bb1cb1f2f3c82ad51cfb164cb8a4a4b
2022-08-10 23:20:59 +00:00
Translation updater bot 2154e6d39e Localisation updates from https://translatewiki.net.
Change-Id: Id2833a6e2ca1af8bee95a1542b8821110bae63cf
2022-08-10 08:24:31 +02:00