Jump to content

Schema:EchoPrefUpdate

PHP logging

EventLogging::logEvent( 'EchoPrefUpdate', 5488876, $event );

extension.json setup for JavaScript logging

{
	"attributes": {
		"EventLogging": {
			"Schemas": {
				"EchoPrefUpdate": 5488876
			}
		}
	}
}

JavaScript logging

mw.track( 'event.EchoPrefUpdate', { /* ... */ } );
From Meta, a Wikimedia project coordination wiki
Revision 5488876
description"Logs changes in Echo preferences as stored by the user. Each event represents a change to a row in the user_properties table."
properties
version
type"string"
requiredtrue
description"Current version of Echo, example: 1.1. Any change in default preferences should be reflected in a new version."
saveTimestamp
type"string"
requiredtrue
description"A timestamp representing when a set of updates is made. This field is useful for grouping pref updates into a single changeset."
userId
type"integer"
requiredtrue
description"user ID"
property
type"string"
requiredtrue
description"The name of the property that changed."
value
type"string"
requiredtrue
description"The new value that the property is set to. When a preference is reverted to system default (and the record removed from user_properties), the relevant default value will be logged in this field and isDefault set to true."
isDefault
type"boolean"
requiredtrue
description"True if the new value represents a system default"