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

Calculate "answered" rate for questions posted in a certain time period, by tag #2120

Closed
ebarry opened this issue Jan 25, 2018 · 12 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 metrics helping to understand our community Ruby
Milestone

Comments

@ebarry
Copy link
Member

ebarry commented Jan 25, 2018

THIS ISSUE IS PARTIALLY COMPLETE THANKS TO @cesswairimu -- PLEASE READ ALL THE WAY THROUGH TO SEE WHAT IS REMAINING:

What problem could this idea solve?

How can we know how many questions posted on publiclab.org are answered? Related: over in #2037 we're working on sorting the display of unanswered questions by recency of posting. But what is our overall answer rate in a period?

this snippet https://gist.github.com/jywarren/fd31cb03abfac4012362109b4cc47573 shows this calculation for the entire year 2017.

Next Steps

  • We should display this number on /questions, perhaps with a dropdown menu to choose year, like 2017, 2016, 2015. I think this would be very motivating to people, to answer more questions and get our rate closer to 100%!
  • DONE! We should also work in % answered rate to the time bounded stats pages, for instance it should appear here https://publiclab.org/stats/range/1-1-2017/31-12-2017/, and be updated for whatever date range is chosen in the URL
  • We should also consider showing this on question pages by tag, for instance https://publiclab.org/questions/tag/water-quality - so that we can see for a given topic area what the rate of answered questions is. This will help us target our outreach efforts.

What did you expect to see that you didn't?

I just couldn't find what our "answer rate" was for a given time period. That's what i was looking for.

Please show us where to look

https://publiclab.org/stats/range/1-1-2017/31-12-2017/
https://publiclab.org/questions
https://publiclab.org/questions/tag/water-quality

@ebarry ebarry added fto-candidate issues which are meant to be solved by first timers but aren't well-formatted yet more-detail-please issue lacks proper description and perhaps needs code links or the location of the problem labels Jan 25, 2018
@ebarry ebarry changed the title Add calculation for % of questions asked in a year that have been answered Add calculation for % of questions asked in a time period that have been answered Jan 25, 2018
@ebarry ebarry changed the title Add calculation for % of questions asked in a time period that have been answered Calculate "answered" rate for questions posted in a certain time period Jan 25, 2018
@jywarren jywarren added break-me-up break up for cleaner code separation, discrete tests, and, easier and iterative collaboration and removed fto-candidate issues which are meant to be solved by first timers but aren't well-formatted yet more-detail-please issue lacks proper description and perhaps needs code links or the location of the problem labels Jan 25, 2018
@jywarren
Copy link
Member

This sounds great -- it seems it could be broken into a few separate issues, one for each of the pages Liz points to. Thanks!

For the /questions pages, it could be for "all time" while on the "stats/range" page, we could use the start and end time periods from that page to set the range:

<p>From <%= @start.to_formatted_s(:long) %> to <%= @end.to_formatted_s(:long) %></p>

Thanks!

@jywarren jywarren added help wanted requires help by anyone willing to contribute Ruby labels Jan 25, 2018
@ryzokuken
Copy link
Member

This sounds like a nifty addition indeed, and I would love to add this feature to the codebase.

@jywarren @ebarry help me make a list of things to do/add?

@ryzokuken
Copy link
Member

ryzokuken commented Jan 25, 2018

TODO

  • Display the stats on /questions
  • Use a starting and ending datepicker
  • Display the percentage on /range pages.
  • Also display a percentage for a particular tag on the tag's tag page.
  • Add tests for the same
  • Make it default to no time bounds

@jywarren
Copy link
Member

jywarren commented Jan 25, 2018 via email

@ebarry ebarry added the metrics helping to understand our community label Mar 7, 2018
@ebarry
Copy link
Member Author

ebarry commented May 3, 2018

Hi! Lost track of this for a minute, coming back to it now as it's one of the few very tangible ways to measure "exchanges"

It would also be a cool way to incentivize Answering!

IS there any more information i could provide on this to make it doable?
I would like to be able to say a sentence like "During 2017, X questions were posted, and Y% of them were answered within Z days"

@ebarry
Copy link
Member Author

ebarry commented Sep 11, 2018

hi @publiclab/soc , could we bump up this issue for the Google Code In? It's nice and discreet.

@Souravirus
Copy link
Member

Yeah sure @ebarry

@ebarry
Copy link
Member Author

ebarry commented Nov 16, 2019

UPDATE: I just updated the initial issue as the second of three feature requests has been implemented!!! Now, the /stats page does have a date picker, and a bar graph that seems to show the ratio of asked questions to answered questions in that period. See https://publiclab.org/stats?start=01-08-2019&end=31-10-2019 and experiment with the dates either in the URL or from the date picker:
Screen Shot 2019-11-16 at 3 18 16 PM

Based on this success, at the next time we rotate through this "metrics" functions on the website, let's look into the first and third idea above, which are:

@ebarry ebarry added this to the Metrics milestone Nov 16, 2019
@ebarry ebarry changed the title Calculate "answered" rate for questions posted in a certain time period Calculate "answered" rate for questions posted in a certain time period, by tag Nov 16, 2019
@cesswairimu
Copy link
Collaborator

cesswairimu commented Nov 17, 2019

Hey @ebarry, I created the issue for adding the status bar on tag page #6790 ..I think it would be best if it goes to this the tag stats page https://publiclab.org/tag/community/stats. thoughts?. On the questions page I remember I implemented the logic some time back #4256 but it wasn't published(it wasn't well implemented though just had a text displaying questions asked vs answered).. I think we opted to just have the bar on the '/stats' page or maybe @jywarren might remember the reason more clearly...Just checking to make sure we also need it on the questions page too. Thanks

@ebarry
Copy link
Member Author

ebarry commented Nov 17, 2019 via email

@jywarren
Copy link
Member

With #6790 are we done here? Great work everyone!

@cesswairimu
Copy link
Collaborator

I believe this feature has been live for a while now. Closing this

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 metrics helping to understand our community Ruby
Projects
None yet
Development

No branches or pull requests

6 participants