Implement monthly stats #56

Merged
merged 1 commit into from Feb 4, 2013

Projects

None yet

2 participants

@brianloveswords

Issue #55

This implements a fake model that aggregates statistics about badge
issuances and exposes that information at /admin/stats. Right now
the information given is low fidelity -- it only gives a total count of
badges per month, not a breakdown of total per badge. We could improve
upon this later if needed.

@brianloveswords brianloveswords Implement monthly stats [closes #55]
This implements a fake model that aggregates statistics about badge
issuances and exposes that information at `/admin/stats`. Right now
the information given is low fidelity -- it only gives a total count of
badges per month, not a breakdown of total per badge. We could improve
upon this later if needed.
568333a
@brianloveswords

Page is super spartan:

Imgur

@cmcavoy take a look and if that's the idea, feel free to merge. We'll also have to work with @simonwex to get this deployed.

@cmcavoy cmcavoy commented on the diff Feb 4, 2013
@@ -69,6 +70,9 @@ app.configure('production', function () {
app.get('/admin/config', admin.configure);
app.post('/admin/config', issuer.update);
+app.get('/admin/stats', [stats.monthly], admin.stats);
@cmcavoy
cmcavoy Feb 4, 2013

I'd really like to document this pattern somehow...I like it, it keeps the actual routes clean, but it took me a while to figure out. Is there a name for it? We need a Node styleguide.

@cmcavoy cmcavoy merged commit 5253e69 into development Feb 4, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment