Test Statistics Dashboard
Test the devhub statistics dashboard locally with bigquery credentials.
Steps
Setup bigquery credentials
Enable a local addon to read from bigquery dev database
Only a subset of addons in dev push data to bigquery. In order to read from bigquery your local addon will need to use a matching guid.
Open a django shell make djshell and run the following:
pk: the database id of the addon you want to use
guid: the guid from the list you want to use (e.g.
@contain-facebook)
addon = Addon.objects.get(pk=<pk>)
addon.update(guid=<guid>)
addon.addonguid.guid = <guid>
addon.addonguid.save() # Need to trigger post-save to update hashed_guid.
Run the statistics dashboard
Open your addon <http://olympia.test/en-US/firefox/addon/<pk>/statistics/>
You should see the default overview chart. It should look like this:
