Jump to content

Schema:TaskRecommendation

PHP logging

EventLogging::logEvent( 'TaskRecommendation', 9266319, $event );

extension.json setup for JavaScript logging

{
	"attributes": {
		"EventLogging": {
			"Schemas": {
				"TaskRecommendation": 9266319
			}
		}
	}
}

JavaScript logging

mw.track( 'event.TaskRecommendation', { /* ... */ } );
From Meta, a Wikimedia project coordination wiki
Revision 9266319
description"Logs the generation of a task recommendation. Note that there may be multiple task recommendations in a set. Also note that an event may be recorded for tasks that are not viewed since tasks may be hidden behing pagination until the user requests them."
properties
setId
type"string"
requiredtrue
description"An identifier for a recommendation set. The string in this field will be unique and consistent for the set of tasks that are generated together."
pageId
type"integer"
requiredtrue
description"The ID of the recommended page."
offset
type"integer"
requiredtrue
description"The offset of this particular recommendation in the list. The first item has a zero offset."