-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
wiki index sorting bug and styling #5326
Conversation
Generated by 🚫 Danger |
|
@jywarren, @gauravano the PR is ready for reviews though I can't seem to reproduce the bug for sorting by last-edited locally. It works fine on my end yet I can't tell why it breaks in production... |
Hey @GettyOrawo, I am getting unsorted result for page views Checking code now.. |
app/controllers/wiki_controller.rb
Outdated
order_string = 'views DESC' | ||
elsif sort_param == 'likes' | ||
when 'page_views' | ||
order_string = 'node.vid DESC' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think here's the issue.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @gauravano , the GIF is broken so I can't see the behavior but let me give this a second look.
Hey @gauravano can you try now? Seems to be working okay on my local. |
Sorry, is this still pending? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Hi all! This also looks good to me, but what is the default sorting that we fall back to? I wonder if plain /wiki is getting sorted oddly due to whatever the default sorting is? But I defer to @gauravano on this one. Thank you so much!!! |
And many apologies for slow response on this one! We appreciate your help!!!! |
The default is |
It's working good in development but in production, many sorting options don't work right 😕. Try on https://unstable.publiclab.org/wiki?sort=last_edited @jywarren @alonpeer @GettyOrawo thoughts? |
Can you please tell me a bit more about the |
Yes @alonpeer and @gauravano I would also find it a lot easier to test this on unstable environment. How do I push to unstable? And do I need to be authorized.. I once tried and failed for not having rights. |
We use unstable to test changes. Only some people have push access but if you want to test your PR there, you can ask in Gitter channel and someone else can do it for you.
It's another database with a copy from production data.
I think, it's not possible. Although, @icarito can better answer that. |
How is it going here? |
hey @SidharthBansal this is one of those "It works on my machine and not in production" kind of bugs. Didn't try pushing to unstable though. |
Please resolve the conflicts and try to push it on unstable |
As the person is inactive for more than a month, I am closing the PR. In case you want to push changes please feel free to open a new PR OR reopen this PR and add additional changes to it. |
Fixes #5317
Managed
Peculiar
Make sure these boxes are checked before your pull request (PR) is ready to be reviewed and merged. Thanks!
rake test
@publiclab/reviewers
for help, in a comment belowThanks!