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

How are the questions sorted on the 'Unanswered' tab? (autoposted via PublicLab.org) #2037

Closed
jywarren opened this issue Jan 17, 2018 · 4 comments
Labels
enhancement explains that the issue is to improve upon one of our existing features help wanted requires help by anyone willing to contribute

Comments

@jywarren
Copy link
Member

(This issue was auto-generated from http://ift.tt/2B8W2Ma -- please help to flesh it out and explore the issue, and respond to the original author!) by http://ift.tt/2BcbKGm Read more and ask the original author for details at: http://ift.tt/2DmabeX ****

Please describe the problem (or idea)

What happened just before the problem occurred? Or what problem could this idea solve? I went to search for unanswered questions on Public Lab here: http://ift.tt/2BbRWTf but I was confused by the way these questions were sorted. Is there a way to make that more clear? Maybe these should be sorted by most recent unanswered questions first?

What's your PublicLab.org username?

Stevie

**** (via **Research tagged 'question:website'** at http://ift.tt/2B9Mfpe at January 17, 2018 at 04:42PM)
@jywarren
Copy link
Member Author

It seems to be sorted by "node id" (nid), descending:

@questions = @user.user.questions
.order('node.nid DESC')
.paginate(:page => params[:page], :per_page => 24)

We could try modifying this to sort answered ones to the top... we'd have to think through how to do that sorting. Do you like sorting by:

  1. whether its been answered, and THEN
  2. recency

?

@jywarren jywarren added enhancement explains that the issue is to improve upon one of our existing features help wanted requires help by anyone willing to contribute labels Jan 17, 2018
@SidharthBansal
Copy link
Member

I will like to try this.

@ebarry
Copy link
Member

ebarry commented Jan 25, 2018

This would be really helpful. I am trying to sort by recently asked but unanswered questions, and the unanswered tab gives me results from 4 years ago.

@jywarren
Copy link
Member Author

jywarren commented Dec 1, 2020

This was resolved, thank you!!!

@jywarren jywarren closed this as completed Dec 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement explains that the issue is to improve upon one of our existing features help wanted requires help by anyone willing to contribute
Projects
None yet
Development

No branches or pull requests

3 participants