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

Wiki index ordering #5317

Open
grvsachdeva opened this issue Mar 31, 2019 · 13 comments
Open

Wiki index ordering #5317

grvsachdeva opened this issue Mar 31, 2019 · 13 comments
Labels
bug the issue is regarding one of our programs which faces problems when a certain task is executed help wanted requires help by anyone willing to contribute HTML Ruby

Comments

@grvsachdeva
Copy link
Member

Our wiki page (https://publiclab.org/wiki) has various sorting options but not all of them work well. So, we need help with fixing this page.

Also, I think we can do some fix to the design of the page too, not major changes but some minor fixes like controlling width. etc so the column headings don
t take another row.

Screenshot from 2019-03-31 13-42-00

Only edits and likes sorting is working fine and other options need to be fixed.

Here's the controller method: https://github.com/publiclab/plots2/blob/master/app/controllers/wiki_controller.rb#L299-L324

And, here the view file: https://github.com/publiclab/plots2/blob/master/app/views/wiki/index.html.erb

@grvsachdeva grvsachdeva added bug the issue is regarding one of our programs which faces problems when a certain task is executed help wanted requires help by anyone willing to contribute Ruby HTML labels Mar 31, 2019
@GettyOrawo
Copy link
Contributor

GettyOrawo commented Mar 31, 2019

Hey @gauravano . Need help with this? Would love to take it up

@grvsachdeva
Copy link
Member Author

That would be great @GettyOrawo!

@GettyOrawo
Copy link
Contributor

😄 Alright, on it. I'll update on my progress,

@ananyaarun
Copy link
Member

@gauravano , there is something wrong with the ordering of notes and wikis as pointed out.
I found these bugs too #5170
#5076
and while fixing them i observed some inconsistencies in their codes especially wrt acs and desc order for both wikis and notes. It seems to work the reverse way of what is expected.
Here is the PR for reference #5088

Could this be related somehow ? since i see the same approach in code for sorting notes and wikis accordingly.

@GettyOrawo
Copy link
Contributor

GettyOrawo commented Apr 1, 2019

@ananyaarun thanks! From the referenced issues, those were mostly targeting the notes section, specifically code in the notes_controller.rb but this particular one is for the wikis page https://publiclab.org/wiki targeting the wikis_controller.rb

Yes the approach could be the same though when it comes to the sorting bug.

@GettyOrawo
Copy link
Contributor

GettyOrawo commented Apr 1, 2019

Then @gauravano I was wondering for the design being enhanced a little, do we actually need the wiki url besides the wiki title yet when you click on the wiki title it takes you to the same url.. maybe we could do away with the url column which will in turn create enough room for the other column titles not to spill to the next line. What do you think?

like this..

Screenshot from 2019-04-01 11-39-13

@jywarren
Copy link
Member

jywarren commented Apr 1, 2019 via email

@GettyOrawo
Copy link
Contributor

It's interesting that the project uses Drupal. What is the main reason for this @jywarren or @gauravano ? I personally haven't worked with Drupal before.

@GettyOrawo
Copy link
Contributor

The PR is up would love your reviews. Thanks. #5326 🎉

@alonpeer
Copy link
Contributor

Ordering by views count will get fixed once these PRs are merged: #5338 and #5307.

@alonpeer
Copy link
Contributor

@GettyOrawo I don't have a lot of context on the Drupal choice, however the README says:

Originally a Drupal site, it was rewritten in 2012 in Ruby on Rails and has since extended but not entirely replaced the legacy Drupal data model and database design.

So this was originally a Drupal project, and the DB schema was kept when it was rewritten in Rails. AFAIK there's no more Drupal code around (which makes sense, since it's PHP, and probably hard to run in parallel to Ruby).

@jywarren
Copy link
Member

jywarren commented Apr 10, 2019 via email

@GettyOrawo
Copy link
Contributor

oh yes, makes sense now.. Thank you.

@stale stale bot added the stale label Oct 7, 2020
@publiclab publiclab deleted a comment from stale bot Oct 8, 2020
@stale stale bot removed the stale label Oct 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug the issue is regarding one of our programs which faces problems when a certain task is executed help wanted requires help by anyone willing to contribute HTML Ruby
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants