Analytics/ReportCard

Report Card
This wiki documents the (so far very manual process) to get the report card data to display at: http://reportcard.wmflabs.org/. Consumers of this document are internal members of analytics team.

Steps
1. Get data files.

2. Clone github repo reportcard data: git clone ssh://nuria@gerrit.wikimedia.org:29418/analytics/reportcard/data.git

3. Run ./run.sh on depot

Watch out for a stack trace there, if source files are wrong somehow they would cause a stack trace to display

4.You need a local instance of limn running 4.1 clone limn depot: git clone https://github.com/wikimedia/limn.git. Make sure to use the develop branch 4.2 run >npm install and npm start 4.3 for some reason you need to have on limn/var/config.json the following file:

After making sure limn starts link the processed dataset for the reportcard with your localinstance to make sure it all looks good: Suposing you are on the limn directory and that the reportcard data is at: /workplace/reportcard-data you need to run:

coke --vardir ./var --data /workplace/reportcard-data/ --to rc link_data

5. Clone limn-deploy: https://github.com/wikimedia/limn-deploy

6. You would need fabric (a python deployer) installed. Do >pip install -e. to get all you need on limn-deploy directory

7.Run fab to deploy first to the sandbox instance fab test_reportcard

and later deploy.only_data

This would ssh to a machine specified in stages.py and download the data. The data will be visible here: http://test-reportcard.wmflabs.org/

8. Once is all good you can use fab to deploy to prod: fab prod deploy.only_data

It would update: http://reportcard.wmflabs.org/