-
Notifications
You must be signed in to change notification settings - Fork 308
advertise size of community on homepage #703
Comments
Is this still relevant? I'd like to start helping and this seems like sufficiently little thing to get started :) |
@zwn Thanks for jumping in! Be sure to check out the info here: https://www.gittip.com/for/contributors/ If you're comfortable with IRC then it'd be great to chat in #gittip on Freenode. To dive in here the next step would be a sketch (paper or pixels) of how we would implement this info on the homepage. |
I tried to look around the codebase first before discussing the homepage pixels. I think I know how the simplates are setup and I think the info I need is in the 'tips' table. Where/how should I setup the variables for the counts to have it accessible in base.html? Should I create another inbound hook? |
|
Thanks @whit537. I see I was getting ahead of myself while trying to understand the structure of the code base. While diving in it appeared to me it'd be nice to have this info on all pages and not just on the homepage. Could it fit in nicely somewhere close to "DISTRIBUTED GENIUS GRANTS"? That would give it some kind of a measure, like what is meant by that. If it should be only on the homepage then maybe under "Inspiring Generosity" could be the right place. But having seen gittip just about two weeks ago for the first time I am not sure. How it should be decided? I am willing to implement it (I'll go and try my first fork on github :)). |
@zwn The metric I usually use is "{number of weekly active} active users exchanging {dollar volume} per week." For this ticket, let's replace the "Distributed genius grants" text with that. Weekly active users should include anyone who either gave or received money on Gittip during the last payday. This means getting start/end timestamps from the |
See #858 for tightening up the computation of weekly active users on the stats page. |
I have gone over the payday.py really quickly to learn about the start/end timestamps. While there I've noticed nparticipants and transfer_volume in the paydays table. Isn't it exactly what we want? AFAIU it is the number of participants in a given payday and the amount of money transferred. |
|
I like the idea of having the number precomputed in payday. I am looking at
run right before the Now I see similar queries mentioned in #219 - I should have looked at the stats page earlier :). |
@zwn I like this approach, too. Active users include people who give or receive or both. It's not enough to just count givers. At the same time, we don't want to double-count people who both give and receive. It might be best to do this as a query after the fact, but that goes against the grain of how we're tallying the other aggregates now: incrementing as we loop. Can we increment as we loop in this case? |
I was trying to find a place but I do not know how not to double-count. Actually the way the code is structured now I do not know how to count the receivers, no matter the double counting. It lends itself to counting the givers easily. I guess we would need a flag for each user to keep track who has been counted already which looks kind of silly since the info can be easily queried later without additional code. I would go with precomputing the number of active users with the query above and storing that with the payday in |
Well, I tried to create something. I am not that familiar with a proper github work flow but hopefully my commit should be accessible for review. Feel free to comment on the code and/or the work flow. https://github.com/zwn/www.gittip.com/commit/4cd3ae20389f82620c7180f243aed588a6fa531b |
One consideration is that during payday the charts page includes the current payday as it is running. We're not showing active users there yet but I'd like to (instead of just givers). If we don't compute active users inline during payday then we'll want to tweak the charts to only include paydays that have completed. That's okay, I guess. |
I can tweak the stats and charts next. |
Reticketed from #634 per @MikeFair.
The text was updated successfully, but these errors were encountered: