Reading/Web/Projects/Edit based trending service

The reading web team is building a trending service which responds to edit activity from our users, with the purpose of notifying users of interesting content.

This is an initiative to build upon the experiments of Pushipediaand Weekipediato process edit activity.

Use cases
The main immediate use case is push notifications, which will drive new traffic to newly created and relevant pages.

On the long term it is also hoped to be used to power lists of pages that have been relevant during a period of time, for example a week.

Implementation
The API endpoint is provided by the mediawiki services api. Code lives in the mediawiki services trending repository. Bugs and feature requests are tracked in Phabricator.

Currently the service is only possible on the English Wikipedia due to the higher amount of edit traffic. Edit activity is subscribed to and processed. Although edits are the main driver of the trending algorithm, on the long term as APIs are made available, it will make use of other indicators such as page views.

Instructions for testing on vagrant

 * 1) Clone the repo inside your vagrant instance.
 * 2) Ensure Vagrant is setup with the eventbus role.
 * 3) Run `npm install` inside there to confirm you can make use of kafka
 * 4) Run `npm test` to verify the install worked correctly
 * 5) Configure `config.dev.yaml` like so:
 * 6) Verify eventbus is on and working:
 * 7) Download and execute the simulation script Debugging: If you do not see a response with pages populated, please debug event bus.