Commit graph

20658 commits

Author SHA1 Message Date
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
jenkins-bot 02a4cfa424 Merge "Pick ParsoidClient implementation based on etag." 2022-10-20 18:14:38 +00:00
daniel adc017f73f Pick ParsoidClient implementation based on etag.
When receiving HTML from a VE session, process it with the same kind of
ParsoidClient that was originally used to generate the HTML. If we were
to use a different implementation, the ETag wouldn't match, so we would
fail to find the stashed data-parsoid map, and the edit would fail.

Bug: T320704
Change-Id: I3b73431fccacecb4ad88b82f8f5675b1042e03ce
2022-10-20 08:52:20 +00:00
Translation updater bot fc6c025e02 Localisation updates from https://translatewiki.net.
Change-Id: I5a390dddbdb50fc5a77e7402462c9130d46f7499
2022-10-20 08:32:33 +02:00
Sam Smith ddb5ac3a14 logger: Also log VisualEditorFeatureUsage events via Metrics Platform
The VisualEditorFeatureUsage instrument is a candidate for migration to
the Metrics Platform [0]. The first step of the migration is to log
events both using the Event Platform directly (i.e. via
mw.eventLog.submit()) and using the Metrics Platform client (i.e. via
mw.eventLog.dispatch()).

The Metrics Platform Client can mix in additional information -
so-called context attributes [1] - based on the stream configuration.
The majority of the default values mixed into each event are already
known to the Metrics Platform Client.

Note well that the Metrics Platform client will not log an event without
one or more streams being configured to receive that event. Therefore,
this change is a NOP.

An example stream configuration is given in [2].

[0] https://wikitech.wikimedia.org/wiki/Metrics_Platform
[1] https://gerrit.wikimedia.org/g/mediawiki/libs/metrics-platform/
+/aed6738b845/js/src/StreamConfig.d.ts#31
[2] https://phabricator.wikimedia.org/T309602#7973206

Bug: T309602
Change-Id: If40fcc6cae371788b98365953218300a5c0b3ca1
2022-10-19 22:53:47 +00:00
jenkins-bot 925183f904 Merge "Use wgWMESchemaVisualEditorFeatureUseSamplingRate config variable" 2022-10-19 19:35:14 +00:00
Sam Smith 75dc014db9 Use wgWMESchemaVisualEditorFeatureUseSamplingRate config variable
... for the sampling rate for the VisualEditorFeatureUse schema.

Bug: T312016
Depends-On: I259757db0c4441a3fcfce505d5bc82dcf2acf58c
Change-Id: I4e03b442568ed695a14d280b0e8dd92e22616426
2022-10-19 07:46:18 -06:00
Esther Akinloose b96f0bc411 selenium: Toolbar should open switch editor
Bug: T296187
Change-Id: Ife5b833acc39596b7e40a2c5a5512a6fd61150af
2022-10-19 13:08:55 +00:00
jenkins-bot e49765d418 Merge "selenium: Content editable should insert a table" 2022-10-19 12:53:54 +00:00
Translation updater bot 2130737dde Localisation updates from https://translatewiki.net.
Change-Id: I3bcc180c3fa645ef0da220367ebbd6ffec1ada23
2022-10-19 08:21:15 +02:00
Translation updater bot a763ee7086 Localisation updates from https://translatewiki.net.
Change-Id: I1447ff7962f7a281f3a1680509425ffd200c1ad2
2022-10-18 08:23:39 +02:00
jenkins-bot 6f024f6566 Merge "GalleryContextItem: Only count image node children" 2022-10-17 14:51:26 +00:00
Translation updater bot 59f476dd8e Localisation updates from https://translatewiki.net.
Change-Id: I953297a88dfaede07a41fc1d6ebc7ede0b63fd1f
2022-10-17 08:22:54 +02:00
Ed Sanders 2a4b4f6b96 GalleryContextItem: Only count image node children
Bug: T320874
Change-Id: I524901619820482c7152d7c7b9bc4a2b9f6ee3ca
2022-10-16 00:03:26 +01:00
jenkins-bot bf1bacfce1 Merge "Remove AutoConfig setting" 2022-10-14 15:59:07 +00:00
jenkins-bot 669cbcea37 Merge "Use RevisionLookup methods instead of ApiParsoidTrait methods" 2022-10-14 14:16:46 +00:00
Abijeet a9a4d9eab0 Add HtmlTransformFactory as depdendency for HtmlOutputRendererHelper
Bug: T317019
Depends-On: I5e11452f1c531a757e8d860f9c727b5810406bce
Change-Id: Ib4262e95cc333d008b083f74c88919441095f446
2022-10-14 15:47:31 +05:30
daniel 92e52d0bad Remove AutoConfig setting
AutoConfig was used to set VE to call internal REST API endpoints exposed by the parsoid extension.
With DirectParsoidClient available, this is no longer needed.

NOTE: this causes all wikis that do not have a RESTbase backend
configured to start using DirectParsoidClient. This is true in
particular for officewiki and labswiki.

Bug: T320704
Change-Id: Ia4c6184dd75a653c3202ea160b6605335f36f6eb
2022-10-14 10:55:53 +02:00
Translation updater bot 307f5c376b Localisation updates from https://translatewiki.net.
Change-Id: I66c92f482653fa924ef4d0e9cc18f8944316f377
2022-10-14 08:43:25 +02:00
daniel 07afdba500 Don't try to contact RESTbase directly when in PHP direct mode.
If VE is configured to call parsoid directly in PHP, the client
should not try to fetch HTML from restbase. Doing so will
lead to inconsistencies, and may cause edits to fail.

Bug: T320704
Bug: T320703
Change-Id: I98bfdd305dcd188d91db6a8fe5885156cdeca7db
2022-10-13 11:22:52 +00:00
Translation updater bot 09555e4315 Localisation updates from https://translatewiki.net.
Change-Id: I4834936506b2b9e511a2e4da1a10ef287a201a9b
2022-10-13 08:10:11 +02:00
jenkins-bot a87f9882c0 Merge "Local implementation of ParsoidClient (DirectParsoidClient)" 2022-10-12 20:50:20 +00:00
Željko Filipin e63bedb988 selenium: Content editable should insert a table
Bug: T296187
Change-Id: Ic0395637690a40a9b6f889072f80b56e5f02390c
2022-10-12 16:00:25 +02:00
jenkins-bot a34d75f633 Merge "selenium: Move code to beforeEach and afterEach hooks" 2022-10-12 11:42:23 +00:00
daniel 35cb550747 Local implementation of ParsoidClient (DirectParsoidClient)
* DirectParsoidClient makes use of parsoid directly for performing
transformations on both wikitext and/or HTML contents.

* Also, it's used to fetch HTML from parsoid's parser cache. Before,
this operation was done via RESTBase but now it's being fetched in
core's parsoid parser cache.

* This patch also enables VE clients to transform HTML to
Wikitext when switching from HTML to source mode on. It
makes use of the HtmlInputTransformHelper to perform this
transformation.

* Now, VE client can make use of core code for switching
between HTML to source mode and back without RESTBase.

Change-Id: I5c7cfcc4086d8da7905897194d8601aa07418b59
2022-10-11 18:34:06 +01:00
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
Esther Akinloose 529f004fc6 selenium: Move code to beforeEach and afterEach hooks
Bug: T296187
Change-Id: Iad8482e432491895eac070692fd3448e6362e4ce
2022-10-10 14:36:33 +01:00
Translation updater bot 7b1a6c987c Localisation updates from https://translatewiki.net.
Change-Id: I3789a38b0117a506953adee06c69cb4af131684d
2022-10-10 10:21:38 +02:00
Daimona Eaytoy 16ae2da19a build: Update mediawiki/mediawiki-phan-config to 0.12.0
Change-Id: Ib527ec60ac7894d28e330b7080f0e3b0a2b3ddfc
2022-10-08 02:45:31 +02:00
Bartosz Dziewoński 2b37b479ea Update VE core submodule to master (5dcc0f107)
New changes:
878ebf301 Localisation updates from https://translatewiki.net.
b56ad2792 Localisation updates from https://translatewiki.net.
a3a861bae Localisation updates from https://translatewiki.net.
754ee73dd Fix transformStyleAttributes tests on Firefox on Windows
5dcc0f107 build: Upgrade various devDependencies to latest and make pass

Bug: T319520
Change-Id: I3fa0175b69b6a97835c7edb856e4ab0af4cb61cc
2022-10-07 11:16:24 +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
daniel 7f9573f994 api-testing: Add assertions to e2e tests
This adds assertions for the return values of the following pactions:
metadata, parse, parsefragment.

It also adds a test that asserts that edits are not possible with
an invalid token.

Change-Id: Idb453d3561a46930afb5366c1a96787895fc8e40
2022-10-04 19:36:39 +00:00