Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the display of Total Contributors "for all time" to the main stats page #3499

Closed
ebarry opened this issue Sep 26, 2018 · 0 comments
Closed
Labels
break-me-up break up for cleaner code separation, discrete tests, and, easier and iterative collaboration help wanted requires help by anyone willing to contribute Ruby

Comments

@ebarry
Copy link
Member

ebarry commented Sep 26, 2018

Reposting a cleaned up issue for @kryptc ! Taken from #3152 and part of broader project at #3498

The https://publiclab.org/stats page shows a lot of wonderful information such as

5170 research notes have been posted by 1261 contributors since almost 8 years ago

I would like to see the total number of unique contributors for all time. Exactly as is shown https://publiclab.org/stats/range/1-1-2011/25-07-2018

But as the default view at https://publiclab.org/stats

IMPORTANT: it's a big query, so we'll need to do a weekly cache of this data so it's only generated weekly. See how caching works here:

Rails.cache.fetch("front-activity", expires_in: 30.minutes) do

Please show us where to look

The stats page takes logic from:

https://github.com/publiclab/plots2/blob/master/app/controllers/stats_controller.rb

Please feel free to ask for any doubt or help.

Thank you

@jywarren jywarren added help wanted requires help by anyone willing to contribute break-me-up break up for cleaner code separation, discrete tests, and, easier and iterative collaboration Ruby labels Sep 26, 2018
@ghost ghost mentioned this issue Oct 13, 2018
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
break-me-up break up for cleaner code separation, discrete tests, and, easier and iterative collaboration help wanted requires help by anyone willing to contribute Ruby
Projects
None yet
Development

No branches or pull requests

3 participants