The trending service use Kafka to subscribe to events.
(This has changed from the original Public EventStreams decision. As such we need to review what events will look like)
The trending service should be provided access to all the data specified in the event's schema.
A sample event:
{ "comment": "", "database": "enwiki", "meta": { "domain": "en.wikipedia.org", "dt": "2016-09-14T14:49:42+00:00", "id": "788516b6-7a8a-11e6-9a2d-b083fecf1287", "request_id": "f9db46d3-c3d7-420f-bf23-cab88bfde5ff", "schema_uri": "mediawiki/revision/create/1", "topic": "mediawiki.revision-create", "uri": "https://en.wikipedia.org/wiki/Cry_to_Me_%28album%29" }, "page_id": 37643813, "page_is_redirect": false, "page_namespace": 0, "page_title": "Cry_to_Me_(album)", "performer": { "user_groups": [ "extendedconfirmed", "*", "user", "autoconfirmed" ], "user_id": 4363489, "user_is_bot": false, "user_text": "Night Time" }, "rev_content_format": "wikitext", "rev_content_model": "wikitext", "rev_id": 739412400, "rev_len": 3748, "rev_minor_edit": true, "rev_parent_id": 739411852, "rev_sha1": "q090ey5jtsmplmqiqz2oytx0s96cj1u", "rev_timestamp": "2016-09-14T14:49:42Z" }
To prove this is working we will only expose pages from the endpoint which have more than 20 edits in the last hour.