plots2 icon indicating copy to clipboard operation
plots2 copied to clipboard

Planning for expanded community stats system

Open jywarren opened this issue 8 years ago • 44 comments

We are preparing this for a project proposal with Outreachy.org for this winter. It's a work in progress, but we're happy to answer questions below! 😄

This project builds on the existing community metrics system viewable at http://publiclab.org/stats, which provides statistics and insights into community trends and activity, similarly to GitHub Pulse (https://github.com/publiclab/plots2/pulse/). We’ve collected a preliminary planning issue to organize this here.

The project involves both back-end Ruby on Rails functions to efficiently collect aggregate statistical information about different types of activity from the database, to answer pragmatic questions like “how many people posted this month?” or “how many questions got answered in our Q&A system this week?”. The project also includes front-end development of views/templates in Ruby on Rails to display this information in a rich and useful way on the website, including in graphs.

Our statistics system is already quite powerful, and many of these tasks address consolidating different features which were added at different times over the years, resulting in a messy interface. Others address the concern of performance with basic caching. A new system we propose as part of this project will display the same kind of data that’s currently available, but filtered by topic, using our site’s tagging system.

Finally, this project will include better user interfaces for selecting specific date ranges, as well as better display of data in graphs, especially when viewing specific selected date ranges (currently this data is shown only numerically).

Many of these projects will be solvable in relatively small, stand-alone pieces, ideal for a weekly cycle of proposing new code changes, getting feedback, and publishing the results. It should be fun!

Back-end projects

  • [x] downloadable data from stats pages: https://github.com/publiclab/plots2/issues/963 (break-me-up issue)
  • [x] statistics on questions answered versus asked (from https://publiclab.org/questions/) #4137
  • [x] caching of data weekly (noting this in interface so people know) to reduce load #4138
  • [x] consolidation/standardization of "range pages" like https://publiclab.org/stats/range/10-05-2015/10-05-2016/ with main stats page at https://publiclab.org/stats?time=September%2026,%202017%2022:43 #4577
  • [x] tags most used in this period (linking into per-tag stats, below) #4539
  • [x] Add display of Total Contributors "for all time" as default for main /stats - https://github.com/publiclab/plots2/issues/3499

Stats per tag

  • [x] subscribers for each tag: https://publiclab.org/stats/subscriptions #4541
  • [x] closer mirroring between stats pages and tag pages #4540
  • [x] stats as above, but per-tag? #4140
  • [x] script to go back through posts and tag first-timer posts with first-time-poster tag, retroactively so they show up at https://publiclab.org/tag/first-time-poster, to improve stats on first-time posting

Interface design projects

  • [x] small "bar graph" icons around site which lead to appropriate pages in the stats system (using https://fontawesome.com/v4.7.0/) - see #4646
  • [x] date range selector for stats ranges (calendar or draggable date ranges like https://github.com/publiclab/plots2/graphs/contributors?from=2013-11-07&to=2016-11-18&type=c
  • [x] ability to click bar graphs to open that actual collection of items in a view such as https://publiclab.org/tag/mobius

... @ebarry?

Stretch goals

  • [ ] make statistics system compatible with GrimoireLab using https://github.com/chaoss/grimoirelab-perceval (see below)
  • [x] retroactively apply the first-time-poster tag (https://publiclab.org/tag/first-time-poster) to previous posts so that we can retroactively graph newcomer posting rate over time
  • [x] Graphs to track subscription rates i.e. overall subscriptions count, and per topic, so we see how interest in a tag grows over time.

We would like to know if a “DevOps for open communities”-style platforms like https://github.com/chaoss/grimoirelab is appropriate for and could be used by a multi-channel community like ours. (via @ebarry )

jywarren avatar Sep 26 '18 22:09 jywarren

Yes, we can definitely be flexible, and this is more of a giant grab-bag list of ideas for what we'd like, that doesn't all have to fit in this winter's project. I think we can work together to organize it according to what makes sense to implement first, second, third, and then also think about how to break down the bigger tasks into smaller parts that'll make it easier to implement.

Finally, I think we can think through some of the ramifications of the changes listed and flesh out any parts we've overlooked or any prerequisites to doing some of the bigger parts. I hope this helps!

jywarren avatar Oct 22 '18 13:10 jywarren

Yes, we can definitely be flexible, and this is more of a giant grab-bag list of ideas for what we'd like, that doesn't all have to fit in this winter's project. I think we can work together to organize it according to what makes sense to implement first, second, third, and then also think about how to break down the bigger tasks into smaller parts that'll make it easier to implement.

Finally, I think we can think through some of the ramifications of the changes listed and flesh out any parts we've overlooked or any prerequisites to doing some of the bigger parts. I hope this helps!

On Mon, Oct 22, 2018 at 1:58 AM Quinn [email protected] wrote:

So is the goal to try and get all of this done in the 3 month internship and our proposal is a sort of workflow-order? I don't feel like I have the experience to know how I should expect to set my pacing in my proposal. Is it expected that we may have to adjust our timeline as we progress through the internship?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/publiclab/plots2/issues/3498#issuecomment-431746269, or mute the thread https://github.com/notifications/unsubscribe-auth/AABfJ9o3yYBORxt_nbZj79ILwgSra_9Aks5unV59gaJpZM4W7nq7 .

jywarren avatar Oct 22 '18 17:10 jywarren

Woops, Github was being finicky yesterday and I ended up asking basically the same question here and in the other thread (it wasn't showing me that the post went through).

Thanks for the response! What is the best way to submit a proposal work-in-progress? Email to you and the other mentors, posting it here, something else? Through the Outreachy site directly?

quinn-codes-synthesis avatar Oct 23 '18 07:10 quinn-codes-synthesis

HI :smile: ! You can post your work-in-progress on publiclab.org !

sagarpreet-chadha avatar Oct 23 '18 09:10 sagarpreet-chadha

Hi, everyone! I'm sorry there was some confusion -- since, unlike in our other Summer of Code programs, we have a single project we've submitted, we weren't sure we needed a call for proposals page. But although we'd love to see group discussion and collaboration around refining the proposals, it does seem helpful to ask each applicant to post a draft proposal (in addition to the one you'll send to Outreachy.org).

So I've posted a call for proposals here, where I'd like to ask each of you to open a draft proposal and get some comments on it! Thank you!!

https://publiclab.org/notes/warren/10-23-2018/call-for-outreachy-2018-19-proposals

jywarren avatar Oct 23 '18 17:10 jywarren

Adding: script to go back through posts and tag first-timer posts with "first-time-poster" tag, retroactively so they show up at https://publiclab.org/tag/first-time-poster, to improve stats on first-time posting !!

jywarren avatar Oct 31 '18 13:10 jywarren

@jywarren I wanted to confirm some things about GrimoireLab. Earlier I didn't research whole GrimoireLab repositories properly, I only checked grimoirelab-perceval. Basically, perceval allows fetching data from different websites in JSON format. I thought since I'll be converting data fetch step to JSON APIs, it would automatically be supported by perceval. But seems like GrimoireLab is much more than that. So before thinking about other ideas, I wanted to know what's the use case of adding support for GrimoireLab. @ebarry May be you can shed some light here ?

Radhikadua123 avatar Nov 05 '18 13:11 Radhikadua123

Adding in some screenshots and stuff that could be used to break out the "calendar selector" task in the Interface section:

If you go to this page: https://publiclab.org/questions/new?legacy=true, you can see a calendar selector already in the codebase. There may be other ones that can do range selections too, generally using Bootstrap and jQuery:

image

image

jywarren avatar Dec 10 '18 16:12 jywarren

Hi @cesswairimu sorry I was busy with the exams but now available for help. I saw that you created a milestone for your project, that's nice. Could you also keep updating the issue checklist with relevant issue number or PR no. so that we all would be in sync.

I would be available for review and discussion from Sunday, till then I have to go through all the work done so that I can help you better. Also, are you following any schedule like specific work hours for Outreachy project so that I can keep some time for your project accordingly on my schedule.

Thanks!

grvsachdeva avatar Dec 13 '18 23:12 grvsachdeva

okay, in checklist issues are mentioned against some items, any particular order you are following while taking issues?

grvsachdeva avatar Dec 13 '18 23:12 grvsachdeva

screencapture-app-moqups-cessmbuguar-gmail-com-wzagurbx4h-view-page-a526cc314-2019-01-04-18_29_39

A redesign for https://publiclab.org/stats. Criticism, inputs and ideas are welcome. Thanks :smiley:

cesswairimu avatar Jan 04 '19 15:01 cesswairimu

Hi @cesswairimu wow this is amazing! I really like it. I'd like to get input from @ebarry @steviepubliclab @publiclab/community-reps but just a note that @ebarry is off today and likely won't be able to respond until Monday.

For my part, a few small things - i know this is a mockup and just wanted to note that we should stick as much as we can to the Bootstrap UI library when it starts getting coded - i think i can see a number of Bootstrap-like elements already there so we should be good. The arrows, for example, could be a standard bootstrap button-bar with Fontawesome icons inside. Rad!

2nd, I wonder if line graphs might make it easier to track each type? with 3 colored lines?

3rd, i think it'll be important to be able to hover over data points to get specific values too. But this looks awesome!!

jywarren avatar Jan 04 '19 15:01 jywarren

Hi Cess! so exciting to see the advances on https://publiclab.org/stats/range!!!! It looks great!

I'll share how i experienced the information on publiclab.org/stats/range and look forward to your guidance :) So, when i opened it i saw:

  • a large font displaying a 13 month period
  • a drop down menu that says "view stats in the past", to which i'd assume "yes all stats are of the past," so I didn't realize i needed to select something. (Perhaps something like "Choose a date range to view statistics for" might be clearer?) The drop down does offer week | month | year as options, which is good.
  • The "Start" and "End" text box range encompasses approximately one week, and then immediately below the stats results are shown, but i'm not sure what period the stats results for, because the page is also displaying the 12 month period at the top.

Looking forward to your input! Thank you so much!!!

ebarry avatar Jan 04 '19 20:01 ebarry

Thanks so much @ebarry for the feedback. I will change the text in the select section. As for the start and end section, by default we have the start as 1 week ago, end as the date today. Maybe you have some suggestions of how that should be or maybe I should have them as blank? The text as the top changes according to the range selected(If you select a range from the calendar you will see the dates you selected on the top i..basically it shows the start date and the end date you have selected and the stats at the bottom shows the stats between your dates selected. Hope this makes sense and please let me know of any other changes you would like to change so i can work on them as I change the select prompt text. Thanks again

cesswairimu avatar Jan 04 '19 20:01 cesswairimu

Hi @cess, you have been doing awesome work till now. I read the theme for this week's blog post and it was really nice. @cess in all the projects whether it's a GSoC project or RGSoC, we try to break some part of our project for the newcomers or other contributors to solve to encourage collaboration among community and flow of new ideas.

The challenge is that you have to guide them to solve those issues to completion and as contributors can take time so it's advisable to choose those tasks where little delay can be compensated.

It's just an idea, it's totally upto you and your plan if it can have some minor changes. Thanks!

grvsachdeva avatar Jan 06 '19 10:01 grvsachdeva

@gauravano thanks so much, I love the idea I try and break down some issues and I guess other fixes like the one @ebarry was talking about above could make for good first-timer issues. Thanks again.

cesswairimu avatar Jan 07 '19 15:01 cesswairimu

Hi @cesswairimu !! I was thinking of a potential task we could add to the end of the list, if you have time at the end, or if people joining in later may want to carry your work forward;

We're starting to really accelerate getting people to subscribe to different tags. These are with tag_selection and are via the "Subscribe" links everywhere. What if we made a graph of the rate of subscribers 1. overall, i.e. overall subscriptions count, and 2. per topic, so we see how interest in a tag grows over time?

  1. could become part of the per-tag stats views.

This need not add to the pile of tasks that we're aiming to complete but I wanted to see what you thought? @SidharthBansal and @ebarry may like this one!

jywarren avatar Jan 14 '19 20:01 jywarren

I really loved the idea Jeff. :heart: :tada: You can start with this Cess.

SidharthBansal avatar Jan 14 '19 20:01 SidharthBansal

Great! Just want to note that this wasn't part of the orig proposal so I don't want Cess to feel pressured. Just something to bear in mind and maybe add to the end of the list under "stretch goals" - and we have a big community now so perhaps others are interested in getting involved too. Thanks!

On Mon, Jan 14, 2019 at 3:57 PM Sidharth Bansal [email protected] wrote:

I really loved the idea Jeff. ❤️ 🎉 You can start with this Cess.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/publiclab/plots2/issues/3498#issuecomment-454158370, or mute the thread https://github.com/notifications/unsubscribe-auth/AABfJ5IHJ-ZQ3WX5bX4PVxnHCsu6-JXrks5vDO8OgaJpZM4W7nq7 .

jywarren avatar Jan 14 '19 21:01 jywarren

@jywarren I love the idea and with the graphs am working with I am already excited about this. I will add it in the stretch goals. Thanks

cesswairimu avatar Jan 15 '19 17:01 cesswairimu