Plots2: Pagination broken at /research

Created on 6 Feb 2018  Â·  22Comments  Â·  Source: publiclab/plots2

The pagination is in accordance to the research section always. It does not change to the events section pagination on clicking on the events.
image
Eventhough we have only 3 events it showed us n pages because here n pages are required for r research notes.

JavaScript Ruby help wanted

Most helpful comment

Hi, I have resolved the issue in this PR: https://github.com/publiclab/plots2/pull/4042 Could you review please?

All 22 comments

Added to GCI dashboard

It hasn't still been claimed by any student maybe because they are finding it hard. Should it be simplified ?

We would be happy if you can help

Hi.. where can I view the problem and also where is the code file ? Pls share it.. Thanks

This issue is still open right? I'd like to work on it

Go-ahead

On Tue, Nov 13, 2018, 3:07 PM Oorjit Chowdhary notifications@github.com
wrote:

This issue is still open right? I'd like to work on it

—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
https://github.com/publiclab/plots2/issues/2258#issuecomment-438199515,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AUACQ_IfBxMRXGGOqZ9NsCwxN2mLk2Vdks5uupK-gaJpZM4R7cSE
.

Hi.. where can I view the problem and also where is the code file ? Pls share it.. Thanks

@SidharthBansal

I am right now busy. Sorry. Someone from @publiclab/mentors will help.

On Tue, Nov 13, 2018, 3:15 PM Oorjit Chowdhary notifications@github.com
wrote:

Hi.. where can I view the problem and also where is the code file ? Pls
share it.. Thanks

@SidharthBansal https://github.com/SidharthBansal

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/publiclab/plots2/issues/2258#issuecomment-438202259,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AUACQ3egKI1bALXFW6tg-UBXDgbwMlz7ks5uupTOgaJpZM4R7cSE
.

@SidharthBansal Oh okay no prblem.. Really sorry to disturb you

No problem going for a viva. In exam hall. Hope you will understand

On Tue, Nov 13, 2018, 3:24 PM Oorjit Chowdhary notifications@github.com
wrote:

@SidharthBansal https://github.com/SidharthBansal Oh okay no prblem..
Really sorry to disturb you

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/publiclab/plots2/issues/2258#issuecomment-438205042,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AUACQ8oBDJ9-gtRnmo2Fw0Lpj1m3t7drks5uupbagaJpZM4R7cSE
.

Yes yes ... All the best 💯

Hi.. where can I view the problem and also where is the code file ? Pls share it.. Thanks

@publiclab/mentors where can I find it?

Hi, I believe this ends up using this template: https://github.com/publiclab/plots2/blob/master/app/views/notes/_notes.html.erb

To display on this page: https://publiclab.org/research

I hope that helps! Can you upload a screenshot of the page as it is now? I would guess that Sidharth means when viewing just the questions. This might end up being a bit complicated...

screenshot 19
This is the page as of now

Hi, I believe this ends up using this template: https://github.com/publiclab/plots2/blob/master/app/views/notes/_notes.html.erb

To display on this page: https://publiclab.org/research

I hope that helps! Can you upload a screenshot of the page as it is now? I would guess that Sidharth means when viewing just the questions. This might end up being a bit complicated...

I couldn't exactly get you

@SidharthBansal @jywarren Any idea... I really want to solve this

screenshot 29
When opening publiclab.org/research, it redirects to publiclab.org/dashboard and the pagination here is correct

@oorjitchowdhary
I believe what @SidharthBansal is referring to is the fact that if you only select some of the options from the dropdown, such as only events, the pagination is broken.
image

For example, once you select events, there are still 173 pages despite there being far fewer items. I think what is happening now is that all items that are not events are being removed while the events still stay on their same pages (like if you click page 173 there is an event from 8 years ago on it).

I think the tasks asks you to fix it so that it paginates correctly, with each page being filled with events.

Hope this helps.

@jywarren, can you check https://github.com/publiclab/plots2/issues/4026? I think it is indirectly related to this.

Hi, I am a GCI participant and have studied this task for very long. I have to filter the notes in the home controller, but I don't know by which index should I filter which type of note. How can I filter Questions, Events and Comments in the controller during the database query? What are the db indexes for every one of the type? Thanks.

Hi, I have resolved the issue in this PR: https://github.com/publiclab/plots2/pull/4042 Could you review please?

https://github.com/publiclab/plots2/issues/2258#issuecomment-439768310 correct.
Sorry for late replies. I was busy with my university work.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

noi5e picture noi5e  Â·  3Comments

first-timers[bot] picture first-timers[bot]  Â·  3Comments

milaaraujo picture milaaraujo  Â·  3Comments

jywarren picture jywarren  Â·  3Comments

keshavsethi picture keshavsethi  Â·  3Comments