mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/WikiEditor
synced 2024-11-24 08:14:33 +00:00
Merge "Hooks: Use $revId of -1 for ::logEvent() calls"
This commit is contained in:
commit
77cf5ea0aa
|
@ -162,7 +162,10 @@ class Hooks implements
|
|||
$data['user_class'] = 'IP';
|
||||
}
|
||||
|
||||
return EventLogging::logEvent( 'EditAttemptStep', 18530416, $data );
|
||||
// NOTE: The 'EditAttemptStep' event was migrated to the Event Platform and is no longer
|
||||
// using the legacy EventLogging schema from metawiki. $revId is actually overriden by
|
||||
// the EventLoggingSchemas extension attribute in WikimediaEvents/extension.json.
|
||||
return EventLogging::logEvent( 'EditAttemptStep', -1, $data );
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -209,7 +212,11 @@ class Hooks implements
|
|||
$data['bucket'] = $bucket;
|
||||
}
|
||||
|
||||
return EventLogging::logEvent( 'VisualEditorFeatureUse', 21199762, $data );
|
||||
// NOTE: The 'VisualEditorFeatureUse' event was migrated to the Event Platform and is no
|
||||
// longer using the legacy EventLogging schema from metawiki. $revId is actually
|
||||
// overridden by the EventLoggingSchemas extension attribute in
|
||||
// WikimediaEvents/extension.json.
|
||||
return EventLogging::logEvent( 'VisualEditorFeatureUse', -1, $data );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue