Commit graph

19940 commits

Author SHA1 Message Date
csimiyu 4bdb4917f0 Remove usage of User::isBlockedGlobally and User::getGlobalBlock
Bug: T318898
Change-Id: I727cda9008866b665395cd0e9969c920dc9c28d6
2022-11-16 17:22:17 +03:00
jenkins-bot f805005145 Merge "Collect timing metrics for ParsoidClient" 2022-11-15 13:50:04 +00:00
Translation updater bot 62a93b066a Localisation updates from https://translatewiki.net.
Change-Id: I011e4e5bde6112f0dd809d27e358f4382a630150
2022-11-15 08:24:50 +01:00
daniel 7da2df9724 Collect timing metrics for ParsoidClient
We want to be able to measure how backend performance changes
when we switch from RESTbase to calling Parsoid directly.
We expect to see a performance boost, in particular for
html/to/wikitext, since we avoid the network overhead.

Since we will make the switch by wiki, we need to be able to compare
the metric before vs. after for a single wiki. So, this adds the
wiki ID as a prefix to all existing metrics. Once fully rolled out,
we should get rid of the wiki prefix.

We will need to update the dashboard found at this url:
https://grafana.wikimedia.org/d/000000249/edit-stash?orgId=1

Change-Id: Iac9070b27f4b0d25b0e31c9fad38abc08c433a28
2022-11-15 01:15:28 +00:00
jenkins-bot b9e38dab69 Merge "build: Update mediawiki/mediawiki-codesniffer" 2022-11-14 22:19:34 +00:00
Umherirrender 2ea2796605 build: Update mediawiki/mediawiki-codesniffer
Apply the latest version to libup-canary repo

Change-Id: Ifd3f356f713cc70257c88e7ec6fb8ff608f5f4a9
2022-11-14 22:43:38 +01:00
Umherirrender 4f4549c438 build: Update stylelint-config-wikimedia
Apply the latest version to libup-canary repo

Change-Id: I20fa0d8f30c27e73e90273cb405c5e048d46d927
2022-11-14 22:34:01 +01:00
Translation updater bot 9d8772b07d Localisation updates from https://translatewiki.net.
Change-Id: Iabc7cd99af4fddb799ac35eae1436d867446e8ef
2022-11-14 08:11:33 +01:00
Translation updater bot d47a0b7c3f Localisation updates from https://translatewiki.net.
Change-Id: I7aa5fd1ec34dd787a6e7bf05117ea92096bba43f
2022-11-11 08:42:47 +01:00
Translation updater bot d584c5414a Localisation updates from https://translatewiki.net.
Change-Id: Ib80991107be4535df64d183d40ceec44bb8addf3
2022-11-10 08:13:00 +01:00
Translation updater bot 60227b0b4e Localisation updates from https://translatewiki.net.
Change-Id: Ia39b26cad63b0ada5f433bf85d50d5bf27a1ce26
2022-11-09 08:59:54 +01:00
Translation updater bot c137b51e39 Localisation updates from https://translatewiki.net.
Change-Id: I4631e29409fc513a8f891a6eb329ce2337b41a57
2022-11-08 08:21:47 +01:00
jenkins-bot 82c845d30d Merge "Always allow switching to visual when using DirectParsoidClient." 2022-11-07 23:04:10 +00:00
daniel ea62ee6b19 Always allow switching to visual when using DirectParsoidClient.
When using DirectParsoidClient, switching should be lossless.

Depends-On: I86c611fa0b717ef619e5ffe550b6c2be49a28c99
Change-Id: Ie30ccbc8c12ce48f481b9f727f28e60d21ee37b9
2022-11-07 21:25:27 +01:00
Translation updater bot 1e9a456365 Localisation updates from https://translatewiki.net.
Change-Id: Id2e137fa1b4ed1de20b5f55008a54a309cf60aa6
2022-11-07 08:36:20 +01:00
jenkins-bot 2b5aeaf649 Merge "Improve smooth scroll to section with visual section editing on desktop" 2022-11-06 22:53:44 +00:00
jenkins-bot a46d76bc1e Merge "Platform: Handle invalid JSON in the other path in #getUserConfig" 2022-11-06 22:47:50 +00:00
Bartosz Dziewoński 288159d65c Platform: Handle invalid JSON in the other path in #getUserConfig
I discovered recently that I had 64 KB of text stored in the
'visualeditor-findAndReplace-findText' preference.

I must have accidentally copy-pasted a whole page into the "Find"
field, the JSON that VisualEditor tried to save became invalid after
MySQL chopped off the string after 64 KB, and since then VisualEditor
was unable to update the find-and-replace dialog preferences.

Change-Id: Ib1d853263d873d969c7b015b3842524e1f7fc351
2022-11-06 22:40:40 +01:00
jenkins-bot 74bc24d362 Merge "Use setters to initialize helpers" 2022-11-04 21:20:02 +00:00
jenkins-bot 9cf8d8d205 Merge "Don't log errors due to missing edit buttons" 2022-11-04 19:41:39 +00:00
Bartosz Dziewoński d2bbd0ed76 Improve smooth scroll to section with visual section editing on desktop
Follow-up to 8101b6511e.
$toolbarPlaceholder.outerHeight() only needs to be added when not
using visual section editing.

Change-Id: Idc7d9d59dea9eacbb8ee584c69e6bc4798562ea1
2022-11-04 19:53:43 +01:00
jenkins-bot a013b8c292 Merge "api-testing: Add test for switching from source to visual mode" 2022-11-04 17:10:47 +00:00
daniel bb66502100 Use setters to initialize helpers
Use setters instead of constructing fake request data.

Depends-On: I18c8bc6f5aa7c204f0faa56919bfe64026761bd4
Change-Id: I8d778c6e5d0b21f8615e3f330f63675cf51eee94
2022-11-04 13:18:56 +00:00
msantos 72b4f8cdbb Rename HTMLTransform related classes
* Rename imported classes in VE that will be renamed in core
* Re-enable tests that would fail when the core patch is merged

Depends-On: I506f3303ae8f9e4db17299211366bef1558f142c
Change-Id: I59ebeb24fa0de5f10d1501cc0830c7e4805e1003
2022-11-04 11:43:36 +00:00
Translation updater bot 97c506d028 Localisation updates from https://translatewiki.net.
Change-Id: I165f8aef3df7a34bf9874164d7aaf4f939bb6eda
2022-11-04 10:19:16 +01:00
Translation updater bot d3196b7b7f Localisation updates from https://translatewiki.net.
Change-Id: I2eaff7b85e77652694c11ebf1c263206fe4dd808
2022-11-04 09:04:26 +01:00
Translation updater bot 17b983a20b Localisation updates from https://translatewiki.net.
Change-Id: I0bedef6844fabd5496d45ef9fa6918a1cbaadb68
2022-11-03 08:25:45 +01:00
Jon Robson 282d075e0c Don't log errors due to missing edit buttons
There's nothing we can do about missing edit buttons - they are likely
being scrubbed by some script or gadget, so let's not report the error.

Bug: T314952
Change-Id: Icf778074026a24561c228cbf11e583062571d0cb
2022-11-03 02:22:54 +00:00
jenkins-bot 2972e744cc Merge "Skip tests while renaming HTMLTransform" 2022-11-02 16:34:34 +00:00
jenkins-bot 4191ac2a20 Merge "Add HtmlTransformFactory as depdendency for HtmlOutputRendererHelper" 2022-11-01 19:48:39 +00:00
daniel 1a5a52440c api-testing: Add test for switching from source to visual mode
Bug: T321862
Depends-On: Id611e6e022bf8d9d774ca1a3a214220ada713285
Change-Id: I685e4bcef9b1c398265afdf375b478643ab74cdd
2022-11-01 13:22:51 +00:00
Translation updater bot ce93f4c577 Localisation updates from https://translatewiki.net.
Change-Id: If75cc6447015398c79a284c13ee92b1cdce687dc
2022-11-01 08:55:38 +01:00
Translation updater bot b0c98cfaef Localisation updates from https://translatewiki.net.
Change-Id: I9056cb8779beeb4a2958c4fa04210170eda1b564
2022-10-31 09:47:10 +01:00
Translation updater bot d800ed737a Localisation updates from https://translatewiki.net.
Change-Id: I9a5691314c598ea17b92754b32bf320b1df5c1e8
2022-10-27 08:56:38 +02:00
Jon Robson 99f8a7275a wgAction is not a number
Follow up to Icd227fc54f3bc16d5ce84c419b69344ca0d21f28
Currently showing up in logs as "NaN" but logged elsewhere
so not needed.

Bug: T314952
Change-Id: I0bf0d428384aa35bd43be026d451d62a2c237267
2022-10-26 19:39:43 +00:00
jenkins-bot b0cdf612a3 Merge "Allow more 'rel' values on external links in Parsoid output" 2022-10-26 16:44:19 +00:00
jenkins-bot b81e8e3e2e Merge "ve.dm.MWMagicLinkNode: Fix matching RFC magic links" 2022-10-26 16:44:16 +00:00
Translation updater bot 71fed9ac51 Localisation updates from https://translatewiki.net.
Change-Id: Ibee77b9aa9a373ccda651f0d566fd0fec49f09c0
2022-10-26 08:20:40 +02:00
Bartosz Dziewoński 56195923d8 Allow more 'rel' values on external links in Parsoid output
Follow-up to I4070b3b16c8b2b76a0e7a67599efd914cbde63aa.

Bug: T321437
Change-Id: I4917c208251b4bcf1d31b07e717266970cb1516d
2022-10-26 01:07:08 +02:00
Bartosz Dziewoński f1df46d6cf Update VE core submodule to master (d1bc0e528)
New changes:
8823a8f6e Localisation updates from https://translatewiki.net.
d1bc0e528 ve.init.Target: Make sure surface exists before setting padding

Bug: T321604
Change-Id: Ic6886f04509540e2eed45f0e35856e75a9eb394d
2022-10-26 00:59:09 +02:00
Translation updater bot acb3ef1227 Localisation updates from https://translatewiki.net.
Change-Id: Id6d1aa62f4b9b6b430d68066913d2b7e593658b5
2022-10-25 08:25:12 +02:00
Jon Robson 131d6a247d Add further debugging information
I would really like to get to the bottom of this :)

Bug: T314952
Change-Id: Icd227fc54f3bc16d5ce84c419b69344ca0d21f28
2022-10-25 00:45:44 +00:00
Bartosz Dziewoński 0a2db9c1e9 ve.dm.MWMagicLinkNode: Fix matching RFC magic links
We need to strip the protocol on both sides. This might have been broken
by Ic00b38b04ce78178c64c13bab7f1b2e4b6c5b803 in MediaWiki core.

Bug: T321437
Change-Id: I11903b767aebfdb189a8d54fbf6fb7f8ce9ffb6a
2022-10-24 17:18:05 +00:00
Bartosz Dziewoński fdb7390d27 Allow 'nofollow' on external links in Parsoid output
Bug: T321437
Change-Id: I4070b3b16c8b2b76a0e7a67599efd914cbde63aa
2022-10-24 18:49:58 +02:00
jenkins-bot e115c05504 Merge "logger: Also log VisualEditorFeatureUsage events via Metrics Platform" 2022-10-24 13:07:29 +00:00
Translation updater bot 11a6fe2bb5 Localisation updates from https://translatewiki.net.
Change-Id: Id6301e2e7e0fe02f347ba3d6d064fa3e78061df8
2022-10-24 08:24:00 +02:00
msantos 1647a0ae89 Skip tests while renaming HTMLTransform
HTMLTransform is being renamed at I506f3303ae8f9e4db17299211366bef1558f142c.
This is a temporary measure to allow CI to succeed in the core patch

Change-Id: Id11068e34d4b3ed6ccc210c91e449656e74138a2
2022-10-22 19:55:55 +00:00
Bartosz Dziewoński 5804e07221 Update VE core submodule to master (65c6a2ff5)
New changes:
65c6a2ff5 Only inspect data when it is actually available

Bug: T321372
Change-Id: Ib45ea11a792fc02d5ce4b63c7d5be77cb276dbf9
2022-10-22 04:38:10 +02:00
Arlo Breault c1afc62040 Bump requested Parsoid HTML version to 2.6.0
Change-Id: I544d31ca6ea6186a4ddaf7ef25fdea899f454c58
2022-10-20 17:01:17 -04:00
Bartosz Dziewoński f69c187d6c Update VE core submodule to master (8fd8d1451)
New changes:
67c844d73 Localisation updates from https://translatewiki.net.
8e850303c Fix typo in unit tests
9d3ed760c Localisation updates from https://translatewiki.net.
ba0714b07 Verify key before removing node from InternalList
4f76184fa Revert "Verify key before removing node from InternalList"
09036aadf Localisation updates from https://translatewiki.net.
8fd8d1451 Add setTimeout to re-focus when opening SpecialCharacterDialog

Bug: T318720
Change-Id: I798445a46852fd03230b0532f2a792f41ee8107c
2022-10-20 21:16:08 +02:00