mediawiki-extensions-Visual.../modules/ve-mw
Timo Tijhof fda2729ebc trackSubscriber: Migrate away from deprecated 'schema.' modules
The EventLogging extension no longer uses these internal modules.
They were phased out as part of last year's "lightweight EventLogging"
project (detailed at T187207). Migration notes at T205744.

VisualEditor has migrated already, mostly. It still depended
on the existence of these module names for some condition guards.

* The subscriber for 'mwTimingHandler' was guarded by 'schema.EditAttemptStep',
  but did not emit events of that schema. What 'mwTimingHandler' really
  needs is the '*SamplingRate' variable for its call to 'inSample()'.
  This previously worked because the variable and the schema are both
  provided by the WikimediaEvents extension.

* The subscriber for 'activityHandler' had a separate schema guard. This
  might suggest an intent for the code to silently degrade if WikimediaEvents
  were to be changed to no longer supply the second schema, or for the code
  to work for third-parties without WikimediaEvents if they register only
  the schema. However, this subscriber too calls 'inSample()' and needs those
  variables.

I've assumed for now that it is okay for these to all be guarded together.
Even if the schemas were to be removed and we were to forget updating this
code, the new EventLogging client degrades gracefully from this (no errors).

Bug: T221281
Change-Id: I260c25752c3becfe6e499813197fbf7a3dba88c3
2019-06-13 18:28:49 +00:00
..
ce Merge "Fix inheritance of isResizable" 2019-05-13 18:11:44 +00:00
dm MWInternalLinkAnnotation: handle non-internal links that say they're mw:WikiLink 2019-05-14 14:35:39 -05:00
init trackSubscriber: Migrate away from deprecated 'schema.' modules 2019-06-13 18:28:49 +00:00
tests Store 'canEdit' property when auto-saving or switching editors 2019-05-24 23:15:38 +02:00
themes ve.ui.MWSaveDialog: Fix border radius styles after changes in OOUI 2019-04-16 17:35:56 +02:00
ui Remove switch confirm dialogs 2019-06-11 22:35:34 +02:00
ve.MWutils.js eslint: Enable valid-jsdoc 2019-04-17 17:13:39 +01:00