Thiemo Kreuz
8c24751491
Split validation and HTML formatting into separate services
...
No functional change was made to the code. It was only moved from one
place to another. Note there are a lot of tests that cover this code.
The tests haven't been touched on purpose. Splitting these as well
is something for a later patch.
Bug: T260980
Change-Id: I9fa0fa87768f2560b83a1b5f3d39211ea9d6cfad
2022-02-01 15:47:52 +01:00
Thiemo Kreuz
c6822649d5
Replace effectively unused $paramNames array
...
All this effectively does is counting the number of properties in the
$data->params object.
Change-Id: I92fff1f70b4f583c27c0e0ba7e4d7239e7790ee3
2022-02-01 15:45:33 +01:00
Translation updater bot
f421e4951d
Localisation updates from https://translatewiki.net .
...
Change-Id: I4850db9250c053023f10f0b2f758a7c0910a8336
2022-02-01 08:27:34 +01:00
Translation updater bot
59ebd83170
Localisation updates from https://translatewiki.net .
...
Change-Id: I291526038f454c6e1bfee2b16392f5ce6f32038a
2022-01-31 08:22:38 +01:00
WMDE-Fisch
8c36f324e1
Fix use of errorbox in TemplateData
...
Bug: T300349
Change-Id: Ic4dbc1235887f29cb7737c0e1d4a3efe047c719b
2022-01-28 15:17:07 +01:00
Translation updater bot
5d643de66e
Localisation updates from https://translatewiki.net .
...
Change-Id: I31347da0474f25cc8eafef8349e9cb091b0b83b7
2022-01-28 08:34:32 +01:00
jenkins-bot
cd2484bec6
Merge "Localisation updates from https://translatewiki.net ."
2022-01-27 01:05:51 +00:00
Translation updater bot
c596db6882
Localisation updates from https://translatewiki.net .
...
Change-Id: I50186affd0b064f19836b49893c9015fceb2fb6d
2022-01-26 08:25:35 +01:00
Translation updater bot
2743704d3f
Localisation updates from https://translatewiki.net .
...
Change-Id: I673688076fb29249f2a6ae2c55a458cc57f8cb72
2022-01-25 08:33:21 +01:00
Translation updater bot
0678b39f39
Localisation updates from https://translatewiki.net .
...
Change-Id: If921cf3207f338eab8729b269ef5b02ad9adbc68
2022-01-20 09:18:12 +01:00
Translation updater bot
748385bfb0
Localisation updates from https://translatewiki.net .
...
Change-Id: Ifb851275b8261ecac761277e8c2d2171e8bc24c6
2022-01-19 08:24:27 +01:00
Translation updater bot
72acb5fe93
Localisation updates from https://translatewiki.net .
...
Change-Id: I524a96915f47167f3186c9da3d02fd8a6457e92e
2022-01-18 08:11:20 +01:00
jenkins-bot
c8537793c1
Merge "Fix and update type hints in JSDoc comments"
2022-01-17 17:11:19 +00:00
Translation updater bot
400ca82c9b
Localisation updates from https://translatewiki.net .
...
Change-Id: I215afff889d2296556e7aa7a4c8b026f61ae1c61
2022-01-17 08:13:05 +01:00
jenkins-bot
ddc0f91eff
Merge "Passing a string to ParserOutput::addModules()/addModuleStyles() is deprecated"
2022-01-12 14:27:03 +00:00
Translation updater bot
9478f40638
Localisation updates from https://translatewiki.net .
...
Change-Id: Ia6e2e0bd6809f834232091be138006b92ac5fb4f
2022-01-12 08:25:38 +01:00
C. Scott Ananian
0a3b28d3de
Passing a string to ParserOutput::addModules()/addModuleStyles() is deprecated
...
Bug: T296123
Change-Id: I9b7fe5acee73c3a378153c0820b46816164ebf21
2022-01-11 17:02:39 -05:00
Thiemo Kreuz
5f749c6418
Allow aliases to be integers in addition to strings
...
Parameter names in a template can be numeric. While it makes a lot of
sense to force a specific format in the TemplateData JSON (i.e. only
strings), it's inconvenient and confusing if numbers are rejected for
being "invalid".
Effects of this patch:
* The incoming JSON is allowed to contain numbers in the aliases
array.
* However, the API normalizes these and forces all aliases to be
strings, as it was always documented.
* The editor component accepts anything in the aliases array, but
forces all aliases to be strings. Again, as documented.
* Note that it was never possible to use numeric keys in the `params`
list. This patch is only about aliases.
At the moment this is a somewhat "hidden" feature. We might or might
not update the documentation to officially allow numeric aliases.
Bug: T298795
Change-Id: I32ea296b4520e7f21b03a1f6390db4f43b613bdd
2022-01-10 13:33:27 +01:00
Thiemo Kreuz
e79f19f09c
Fix and update type hints in JSDoc comments
...
Change-Id: Ib38d3c4eff7630bd3aed04beee33adc5ae2101f3
2022-01-10 11:48:42 +01:00
Translation updater bot
e296c87ad2
Localisation updates from https://translatewiki.net .
...
Change-Id: Ib26fedc0182efd5178631db1e12cfabde34b8854
2022-01-06 08:32:09 +01:00
Translation updater bot
79a986fc5b
Localisation updates from https://translatewiki.net .
...
Change-Id: Ib88a59d8e0291e1ec7cf8c08ed5c13f04d96f844
2022-01-05 08:16:31 +01:00
Translation updater bot
15dca97d2f
Localisation updates from https://translatewiki.net .
...
Change-Id: I2a74f09dbb716b77847162bca66a0fab3a5b854d
2022-01-04 08:28:20 +01:00
Translation updater bot
2c61d90f3e
Localisation updates from https://translatewiki.net .
...
Change-Id: Ie5cdf341680805969836ec3f32c116c074fcb1ee
2021-12-31 09:42:24 +01:00
Translation updater bot
3f6cb26b10
Localisation updates from https://translatewiki.net .
...
Change-Id: Ie713f50c9b4708b5c493bafcea4e53649cb802f6
2021-12-30 09:38:10 +01:00
Translation updater bot
905f7f7c2a
Localisation updates from https://translatewiki.net .
...
Change-Id: Ic6565e5b24be31d34db5010624f883c9f3dcd6d4
2021-12-27 09:31:06 +01:00
Translation updater bot
7abf7efbe2
Localisation updates from https://translatewiki.net .
...
Change-Id: I806485e1b7beb2b509530809b0f72fdb3d6b8527
2021-12-24 09:09:59 +01:00
Translation updater bot
2b96e1e9ae
Localisation updates from https://translatewiki.net .
...
Change-Id: I3d95a23a0a69dcaafff7019b2194e160c0d5d02f
2021-12-23 08:38:32 +01:00
Translation updater bot
e1e11b8839
Localisation updates from https://translatewiki.net .
...
Change-Id: Ib67f0a1631ed5aa8051838509c76566fb6a70be5
2021-12-20 08:21:44 +01:00
Adam Wight
709c89909f
Remove comma-delimiting code
...
No longer needed as of I9450f70e705d9596c7e0d7545f9b5505fc4aae04
Change-Id: I342db496a1e3e0b6c4466dbdd62ee0d8d21258c0
2021-12-17 12:08:10 +01:00
Thiemo Kreuz
f7771a22a6
Edit aliases via a proper widget instead of comma-separated
...
Bug: T285284
Change-Id: I9450f70e705d9596c7e0d7545f9b5505fc4aae04
2021-12-17 11:50:27 +01:00
Translation updater bot
070f26eed1
Localisation updates from https://translatewiki.net .
...
Change-Id: Ifd45ed8dbcb2513cb841b734bd2ea234f3827415
2021-12-16 08:30:15 +01:00
jenkins-bot
ffa54d4ca5
Merge "Add missing validation for aliases and suggestedvalues"
2021-12-15 12:39:50 +00:00
jenkins-bot
44b4204962
Merge "Fix serialization adding empty autovalue when not needed"
2021-12-15 12:14:45 +00:00
Translation updater bot
4b353825a4
Localisation updates from https://translatewiki.net .
...
Change-Id: I55bccfbb34a45c206baa713543638465f6a7f91b
2021-12-13 08:22:15 +01:00
Translation updater bot
7958460cae
Localisation updates from https://translatewiki.net .
...
Change-Id: I14be604403124effb32b60daf94a60428d6b55b6
2021-12-10 09:19:48 +01:00
Translation updater bot
3544f590e3
Localisation updates from https://translatewiki.net .
...
Change-Id: I058da9ce5ef49f08b2f08ea30cbb1361227488bb
2021-12-10 08:25:02 +01:00
Thiemo Kreuz
e83e3f2661
Add missing validation for aliases and suggestedvalues
...
This is not new. This was always documented to not accept anything
but strings.
Let's apply the same fix to aliases while we are here.
Bug: T297386
Change-Id: I57e18779f28802816d5adb66cc4067df4e58b26e
2021-12-09 14:40:36 +01:00
Translation updater bot
3fd6b8aa61
Localisation updates from https://translatewiki.net .
...
Change-Id: Ic3b46928ff7c11913012ca325535b2bce4c82a01
2021-12-08 08:12:54 +01:00
Translation updater bot
1f0a5ca72a
Localisation updates from https://translatewiki.net .
...
Change-Id: If606d92b8feb8fc337bb1c3a05161cc0a8ef4deb
2021-12-06 08:20:18 +01:00
jenkins-bot
6e4a3788b5
Merge "Namespace extension"
2021-11-29 14:28:28 +00:00
Thiemo Kreuz
2b2033c6ec
Fix serialization adding empty autovalue when not needed
...
The autovalue field appears to be the only one with this edge-case.
This is because all other fields are either multi-lingual and
processed by the `….allowLanguages` code path above, or because
of other special-case handling somewhere else.
The idea is:
* Non-empty values are always added.
* When the property (in this case `"autovalue": "…"` existed
before, it's kept, even if it's now empty.
Bug: T295074
Change-Id: Ie4d9825b89edb4bbbbc4283dc48e9113e537869a
2021-11-29 10:53:35 +01:00
Translation updater bot
baaaa4209c
Localisation updates from https://translatewiki.net .
...
Change-Id: I27dd377564719d86a5b356fe9df2f70c5f65a73a
2021-11-29 08:12:33 +01:00
Reedy
166812da07
Namespace extension
...
Change-Id: I779e97e512ec0c4f74fb6a4b706772fb1428e40f
2021-11-25 22:53:34 +00:00
Translation updater bot
d3875a7272
Localisation updates from https://translatewiki.net .
...
Change-Id: I77ef96e57cd7d599bfb5d0cfd3818144ebcaf52b
2021-11-24 08:22:32 +01:00
Translation updater bot
49d7510c69
Localisation updates from https://translatewiki.net .
...
Change-Id: I9ae4f307f84ab5a2c797c93455fef8566157c28c
2021-11-22 09:03:49 +01:00
Translation updater bot
7d8ce6a0e5
Localisation updates from https://translatewiki.net .
...
Change-Id: I39b04ade04464f8ab7a731fc78db64b0b721733f
2021-11-19 08:28:29 +01:00
Translation updater bot
36de81376f
Localisation updates from https://translatewiki.net .
...
Change-Id: Ia95086f15f479b79ffd7e647b7c01eba8a53803e
2021-11-09 07:29:49 +01:00
Translation updater bot
9bf37c8c12
Localisation updates from https://translatewiki.net .
...
Change-Id: Ia2aef26479dff5ce78db019dd95f0915c56ee7d8
2021-11-08 08:17:30 +01:00
Translation updater bot
cd7ff4096d
Localisation updates from https://translatewiki.net .
...
Change-Id: I7a8feecdee5da07e54bab12931ecbda9a96a0e88
2021-11-05 08:17:31 +01:00
Translation updater bot
af9716423f
Localisation updates from https://translatewiki.net .
...
Change-Id: I2997077265554e601bfcf22be380866c3ade8e08
2021-11-03 08:21:20 +01:00