Go to file
Sam Smith f39dddaee5 ext.wikiEditor: Also log EditAttemptStep events via Metrics Platform
The EditAttemptStep 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 (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 via the
mw.eventLog.Schema defaults mechanism 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/T309013#7953227

Bug: T309013
Bug: T320281
Change-Id: Ia08bac484fb3a2209879531def859a01290120fd
2022-11-14 08:40:35 +00:00
.phan Realtime Preview: add as a Beta Feature 2022-04-06 13:45:44 -04:00
i18n Localisation updates from https://translatewiki.net. 2022-11-09 08:59:58 +01:00
includes Hooks: Use $revId of -1 for ::logEvent() calls 2022-10-19 14:10:09 +00:00
modules ext.wikiEditor: Also log EditAttemptStep events via Metrics Platform 2022-11-14 08:40:35 +00:00
tests/qunit tests: Remove use of QUnit 1.x setup()/teardown() 2022-05-03 01:22:12 +02:00
.eslintrc.json build: Update eslint-config-wikimedia to 0.21.0 2022-02-07 17:27:27 +00:00
.gitignore Add JSDoc configuration and test 2022-05-03 15:28:02 +08:00
.gitreview Whoops, track not trace 2016-10-24 17:04:09 -07:00
.phpcs.xml Fix excluded phpcs rules 2021-11-02 13:48:27 +08:00
.stylelintrc.json Update stylelint-config-wikimedia 2021-06-15 15:14:04 +01:00
CODE_OF_CONDUCT.md build: Updating mediawiki/phan-taint-check-plugin to 1.3.0 2018-08-19 17:48:56 +00:00
composer.json build: Updating mediawiki/mediawiki-phan-config to 0.12.0 2022-10-09 12:28:27 +00:00
COPYING Add COPYING 2014-01-22 22:11:36 +00:00
extension.json Realtime Preview: add mediawiki.storage module dependency 2022-07-11 05:51:51 +00:00
Gruntfile.js Add JSDoc configuration and test 2022-05-03 15:28:02 +08:00
jsdoc.json Add JSDoc configuration and test 2022-05-03 15:28:02 +08:00
package-lock.json build: Updating minimatch to 3.0.8 2022-10-22 01:00:25 +00:00
package.json build: Updating grunt-banana-checker to 0.10.0 2022-10-06 09:47:44 +00:00
README Remove out-of-date version requirement from README 2021-10-04 10:34:13 +08:00

WikiEditor provides enhancements to the MediaWiki edit page

For installation, once the code is copied into your extensions directory, you can load it for your
wiki by adding to LocalSettings.php the line:

	wfLoadExtension( 'WikiEditor' );

By default, when installed this extension will be available to all users, and logged-in users can
disable it from their preferences. If you wish all users to have it, and be unable to disable it,
add it to $wgHiddenPrefs in your LocalSettings.php:

	$wgHiddenPrefs[] = 'usebetatoolbar';

More can be found on the extension's page: https://www.mediawiki.org/wiki/Extension:WikiEditor