Commit graph

17370 commits

Author SHA1 Message Date
jenkins-bot a4d1863a80 Merge "Use standard search API when searching for templates" 2021-05-03 08:12:35 +00:00
Translation updater bot ee2f55d14d Localisation updates from https://translatewiki.net.
Change-Id: I63d01d86369e3e3bd292df0114bc1a6bf7e3b35f
2021-05-03 08:38:34 +02:00
jenkins-bot 8878570696 Merge "Update VE core submodule to master (831a75cdb)" 2021-04-30 20:35:20 +00: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
jenkins-bot 6e6adb5508 Merge "Replace usage of deprecated User watchlist methods" 2021-04-30 18:41:16 +00:00
Bartosz Dziewoński ae3deddaaf Update VE core submodule to master (831a75cdb)
New changes:
a85c06b05 Localisation updates from https://translatewiki.net.
6684a0a40 build: Re-disable Firefox testing
233c55730 Update UnicodeJS to v13.0.3
831a75cdb Localisation updates from https://translatewiki.net.

Bug: T240955
Bug: T264904
Change-Id: Icc7d9240f03f03a7f11661a1dbb4572f86a74443
2021-04-30 19:23:27 +02:00
Thiemo Kreuz 6e08a27fc7 Use standard search API when searching for templates
Bug: T274903
Change-Id: I7de8f6cc55ab678ed741ae5ebbaad608b9a9b0db
2021-04-30 12:52:45 +00:00
jenkins-bot 4dec01cf05 Merge "Update more test code to use ES6 syntax" 2021-04-30 12:38:48 +00:00
Thiemo Kreuz 346216c050 Update more test code to use ES6 syntax
This patch is mostly about the arrow syntax.

Some places can not be updated because the arrow syntax also
changes the meaning of `this.…`, but some code relies on that.

Change-Id: Ida3ab0e0950a428fbd1a85f281013778ee879df4
2021-04-30 10:08:45 +00:00
jenkins-bot bbd80ea563 Merge "Update all tests in the ve-mw module to use ES6 syntax" 2021-04-30 09:00:33 +00:00
Thiemo Kreuz 2611f907a9 Update all tests in the ve-mw module to use ES6 syntax
Change-Id: I75f8864c66c9b2a78c683d425d54a94515b74f24
2021-04-30 08:07:54 +00:00
libraryupgrader 710e75dfb0 build: Updating composer dependencies
* mediawiki/mediawiki-codesniffer: 35.0.0 → 36.0.0
* php-parallel-lint/php-parallel-lint: 1.2.0 → 1.3.0

Change-Id: Iae29334b618b3f3758cb048394f85c0aca81b42c
2021-04-29 19:18:20 +00:00
Cindy Cicalese 442f5da371 Replace usage of deprecated User watchlist methods
This bumps the MediaWiki requirement to 1.37.

Bug: T281187
Change-Id: Iddcd1cbf67ad1f8e918c1da07347dd19e5f6f7d9
2021-04-29 09:32:22 -07:00
Translation updater bot b9d9c8564d Localisation updates from https://translatewiki.net.
Change-Id: Ic3837bc7681d0a8f2256accac18301ec6df9037e
2021-04-29 08:55:03 +02:00
jenkins-bot f98219b8d0 Merge "Drop Ruby testing entry point" 2021-04-29 01:54:44 +00:00
DannyS712 67a03105e0 ApiVisualEditor: remove call to deprecated User::isIP
Bug: T281401
Change-Id: I913e1ecaeadb2b36227b2dd205869db5f9a07691
2021-04-28 18:50:18 +00:00
Translation updater bot d54b3ccb77 Localisation updates from https://translatewiki.net.
Change-Id: Id6902000bebb90d023ca6cb473dda817134922da
2021-04-28 16:43:23 +02:00
Translation updater bot c00ab89290 Localisation updates from https://translatewiki.net.
Change-Id: I51e9f87c36f0af58d209be0114ea47e844d7afdd
2021-04-28 08:49:54 +02:00
Translation updater bot 2300a77001 Localisation updates from https://translatewiki.net.
Change-Id: Ied8256afbb54cfdd85dbf5ba82b7d577e493f6cc
2021-04-27 08:39:10 +02:00
jenkins-bot 1486e5f038 Merge "Localisation updates from https://translatewiki.net." 2021-04-26 07:17:09 +00:00
Translation updater bot 21a536676e Localisation updates from https://translatewiki.net.
Change-Id: Icf91121d01b64bb0376d0324ebf4c074c7eeed32
2021-04-26 09:11:07 +02:00
Translation updater bot 51cedeb9de Localisation updates from https://translatewiki.net.
Change-Id: Ibed58b3fe62a6329f7ea50e864902ad84ecae376
2021-04-26 08:58:24 +02:00
James D. Forrester 2b7ab7b479 Drop Ruby testing entry point
Never called any more.

Change-Id: Ic799a9cf2e576151077d4a8b0767f0f246849684
2021-04-23 12:05:25 -07:00
Translation updater bot 788b168073 Localisation updates from https://translatewiki.net.
Change-Id: Icefa5c0035c1f39e9c63d54f15dce401e317d323
2021-04-23 08:37:42 +02:00
jenkins-bot 1f853bb33d Merge "Fix ve.init.mw.MobileArticleTarget.save return value" 2021-04-22 16:33:01 +00:00
Gergő Tisza b902b09784 Fix ve.init.mw.MobileArticleTarget.save return value
Like its parent method, ve.init.mw.MobileArticleTarget.save
should return a promise.

Change-Id: Ic3b390e613aa71aea4e7375a1f6e421cbd4f854c
2021-04-22 14:58:59 +00:00
Translation updater bot 41153a73b1 Localisation updates from https://translatewiki.net.
Change-Id: Ic5281dff4b47a56c93bb406e2499372565d287bb
2021-04-22 09:32:36 +02:00
jenkins-bot 6a08f4b839 Merge "Increase space between fields when using inline descriptions" 2021-04-21 11:33:48 +00:00
Translation updater bot 8a1b127cae Localisation updates from https://translatewiki.net.
Change-Id: Ia0d5f37678266c4204469b01ba23ea6a000fd5e7
2021-04-21 08:53:33 +02:00
WMDE-Fisch e3197a82ff Increase space between fields when using inline descriptions
Bug: T273425
Change-Id: I3bf31622dbf794e1de1fa69b4fac68114c5689f7
2021-04-20 18:27:03 +02:00
WMDE-Fisch 2920c68adf Use verbose label for the example
Bug: T273425
Change-Id: Ia56aa35f98f31859e48781848b7481ebd5e2bd1c
2021-04-20 10:34:52 +00:00
Translation updater bot 6ccda1d394 Localisation updates from https://translatewiki.net.
Change-Id: I03dcffff87e1086b007baeca2d4ae59b793236c1
2021-04-20 08:48:51 +02:00
Translation updater bot 59d5d3721a Localisation updates from https://translatewiki.net.
Change-Id: I090d239b806fb1fe1d3992246b9059dea93d447a
2021-04-19 08:52:09 +02:00
jenkins-bot fd3b938d8e Merge "Relocate parameter descriptions in the transclusion dialog" 2021-04-16 10:00:52 +00:00
Translation updater bot 44f17da3c3 Localisation updates from https://translatewiki.net.
Change-Id: I39281edcb991d51f4f442084bfb588cb887475ef
2021-04-16 09:51:16 +02:00
Andrew Kostka 3c2db5fba9 Relocate parameter descriptions in the transclusion dialog
Bug: T273425
Change-Id: I2044b65ba88ae00e394fb84cb8e96a218995918a
2021-04-15 13:08:53 +02:00
Translation updater bot 60f4429e43 Localisation updates from https://translatewiki.net.
Change-Id: I4a2fe820554817c417664a33797b590af291fb2f
2021-04-15 08:44:26 +02:00
Bartosz Dziewoński c832df5d3a api: Better error when a page with the given title can't exist
Bug: T279711
Change-Id: Icd7e7564bbbca47ea53dfe72c5f34ffa69ff3389
2021-04-14 16:11:18 +02:00
Bartosz Dziewoński aec35a67d0 api: Better error when 'wikitext' parameter is required
Bug: T280072
Change-Id: Ibd03aa2a527ac2d27ef7c3dbaf25df74a2a0fdc5
2021-04-14 16:10:26 +02:00
Andrew Kostka 43c1ec5f42 Add filtering for the suggested values combo box
Bug: T271898
Change-Id: Ifb0deb117fbe40bd43c62d8be235a239a2b37f25
2021-04-14 14:11:50 +02:00
Bartosz Dziewoński dbb71845cf Update VE core submodule to master (ef0a3a720)
New changes:
7eade8d47 Avoid unnecessary wikitext conversion when inserting NBSP in source mode

Bug: T279600
Change-Id: If85b99b69269e44b1c62865960dd85fd33bfc264
2021-04-13 21:59:42 +02:00
jenkins-bot 7ce573802a Merge "Add command to insert non-breaking space" 2021-04-13 19:05:43 +00:00
James D. Forrester c113495445 Update VE core submodule to master (408012182)
New changes:
c3d3de18e Localisation updates from https://translatewiki.net.
1392c51ee build: Update eslint-config-wikimedia to 0.20.0
f76d6a862 Localisation updates from https://translatewiki.net.
f34c09d04 Add extra test coverage for ve.dm.TextStyleAnnotation
a90e5fc98 build: Update devDependencies

Change-Id: Ifbae847bf1cdc15f003eb0f97c1f85568468e71d
2021-04-13 08:11:51 -07:00
Translation updater bot 9ef7814937 Localisation updates from https://translatewiki.net.
Change-Id: Iac896498559626e755ee2bb7b9755aa5c9b8968b
2021-04-13 09:22:10 +02:00
Translation updater bot 1b1913ccbf Localisation updates from https://translatewiki.net.
Change-Id: I98a4122abe86ca34ba279698d42c5bd865605aa1
2021-04-12 08:39:20 +02:00
jenkins-bot 1e4de0e464 Merge "Add a combo box for suggested values in the transclusion dialog" 2021-04-09 10:40:33 +00:00
Translation updater bot bb8d598272 Localisation updates from https://translatewiki.net.
Change-Id: I6992ae8f53822d3b38c21fc04da0b30031e28412
2021-04-09 08:59:43 +02:00
Bartosz Dziewoński 1b34b59aa7 SECURITY: Act like users don't exist if hidden from viewer (VE edit notices)
Applying the changes from the MediaWiki core patch for T120883
(Ife272a0eb1f3322bc8eb30ca803bd21801acba3e) to our duplicated
code implementing the same functionality.

Bug: T270453
Change-Id: I1b2de322aa0c69eb6d3b3ffadaed3fbaa3a58bca
2021-04-08 20:40:08 +01:00
jenkins-bot 2571123285 Merge "Revert incorrect changes to ve.ui.MWBackCommand that made it stop working" 2021-04-08 15:07:14 +00:00
Andrew Kostka de2f5b3055 Add a combo box for suggested values in the transclusion dialog
Bug: T271898
Change-Id: Ic637eea2cac45f79234b62c787e1b76d68b61570
2021-04-08 16:10:22 +02:00