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

Paginate not used in following and followers #8115

Closed
Tlazypanda opened this issue Jul 6, 2020 · 11 comments
Closed

Paginate not used in following and followers #8115

Tlazypanda opened this issue Jul 6, 2020 · 11 comments
Labels
bug the issue is regarding one of our programs which faces problems when a certain task is executed

Comments

@Tlazypanda
Copy link
Collaborator

Please describe the problem (or idea)

While checking the pagination codes, came across this anomaly where paginate was used in the users_controller (methods following and followers) but the will_paginate code was not present in show_follow html file.

This leads to only load the first 24 followers/following for the users and not showing any pagination for the rest.

For example - warren follows liz but https://publiclab.org/people/liz/followers doesn't display warren.

Please show us where to look

https://publiclab.org/people/liz/followers
https://publiclab.org/people/liz/following

Thank you!

@Tlazypanda Tlazypanda added the bug the issue is regarding one of our programs which faces problems when a certain task is executed label Jul 6, 2020
@Tlazypanda
Copy link
Collaborator Author

@ebarry @jywarren can you confirm this behaviour? 😅 sorry for stalking xD i wasn't sure whose profile to look for proof 😂

@ebarry
Copy link
Member

ebarry commented Jul 7, 2020

wow deep catch @Tlazypanda ! I haven't seen this format of page in a looooong time. Glad you've chased it down and are starting to sort it out!
Good spotting of the missing pagination code.
Adding this would be helpful!

I'll ask another question as well tho, because these pages are not standard with our style guide—What would it be like to remove this custom display of followers and following that lacks interactivity and instead use the same table as the "People who are following" table on the /contributors pages? For example, the farthest right hand table on https://publiclab.org/contributors/water-quality.

What do you think?

@Tlazypanda
Copy link
Collaborator Author

Yes, I think we should move to this styling as well to have consistency across our pages ✌️ Thanks @ebarry for the research and the suggestion ❤️ What do you think? @jywarren 😅

@jywarren
Copy link
Member

jywarren commented Aug 4, 2020

Agree! Sorry for slow reply here, but this sounds great, thank you for the catch @Tlazypanda

As to the restyling, I think that could work too but perhaps that splits this into 2 issues? Thank you!

@Tlazypanda
Copy link
Collaborator Author

@jywarren @ebarry Just a heads up created an issue for the design part of it here #8270

We can keep this one open for later implementing the pagination task ✌️

@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
@RuthNjeri
Copy link
Contributor

Hi @cesswairimu, if this is still valid, can you assign it to me?

@cesswairimu
Copy link
Collaborator

Hi @RuthNjeri, looks like @renugasaraswathy fixed this one too while updating the designs #8372 🎉 This can be seen at https://publiclab.org/people/liz/followers

@RuthNjeri
Copy link
Contributor

oh alright @cesswairimu, I'll keep looking..if you happen to find one that I could work on that's not a First-time issue, feel free to tag me.

@cesswairimu
Copy link
Collaborator

Maybe we can discuss on ways to improve this further maybe order the page, maybe order the list in asc or maybe load 15 or 20 per page in a new issue?

@RuthNjeri
Copy link
Contributor

Thanks, I'll join the discussion in the new issue

@cesswairimu
Copy link
Collaborator

Created a follow-up here #8542. Closing this, thanks all

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
Projects
None yet
Development

No branches or pull requests

5 participants