department-of-veterans-affairs / gi-bill-comparison-tool

Rails delivered version of the GI Comparision Tool.
7 stars 9 forks source link

SEARCH RESULTS - Pagination #36

Closed rickleegit closed 8 years ago

rickleegit commented 8 years ago

Need a way to paginate the search results. A few considerations:

jeffmaher commented 8 years ago

Will start on first thing Friday morning (10/30)

rickleegit commented 8 years ago

@emilyville - we are fortunate enough to have some Jeff time!! Based on Marc's needs and the fact that we may need to resolve this with some back-end filtering/sorting, it made sense to ask Jeff to take this on. But there is plenty that we could use your help with. When you are ready to get started, let's chat. I know you said you have a busy morning, so maybe later this afternoon?

@mphprogrammer - Please work with Jeff to resolve the BE/FE dilemma ASAP. The only wish I have for this would be to consider any possible performance issues with our rudimentary db. The filtration/sort can be a reload, but it needs to be quick. We will lose much of the comparison functionality if the latency is too great. Maybe it won't be a problem, but I wanted to make sure that is on the radar.

Thanks all!!!

Rick

mphprogrammer commented 8 years ago

Had some thoughts on pagination, sorting, and filtering. If you want to do both on the front end, apply the filtering first on the set of schools returned from the search this will mark schools as visible or not. Then, apply the sorting criteria to the set of visible schools, and lastly apply a separate pagination "filter" to the set of sorted visible schools. Take whatever schools are left visible and display. Just my 2 cents.

The DB is rudimentary yet, but, its small - about 33K records in the institution table. It wouldn't take terribly long for the back end to do this either.

I am not a front end coding pro by a long shot, I leave it to your expertise, Jeff!! Thanks!!!!!

jeffmaher commented 8 years ago

Tasks I'm working on:

jeffmaher commented 8 years ago

@rickleegit : Do you have any mockups for how you'd like the pagination to look?

rickleegit commented 8 years ago

Sorry for the delay on this. Was on a call.

I am not terribly particular. Looking for standard pagination features:

That said, If any of that is more difficult or less efficient to implement, we will take what we can get. :-)

Thanks!!

rickleegit commented 8 years ago

This might work but it is messing with the filters pretty severely. I am hoping that we haven't created some sort of filter loop-ish thing.

The pagination should only be effected by the filters. Not a duplex thing. As it is, the filters respond to the itms on the page. So they change as I navigate through the pages, which we do not want.

THANKS FOR DOING THIS! If we can get that behavior fixed it, will be fine!

westurner commented 7 years ago

From https://veterans.uservoice.com/forums/330333-vets-gov/suggestions/17635243-fix-pagination-n-divmod-n-per-page

BUG: GI Bill Comparison Tool: search result pagination is off.

Search query: "Omaha"

First it shows 5 results pages for 67 results, Then when I click on 5 (for things starting with University), It shows 1, 2 and Next. Next works, but the pagination is off.

To clarify, this is w/ Android 6 Chrome 55

Should I create a new issue?

ayaleloehr commented 7 years ago

A separate issue would be great @westurner ! thanks!

westurner commented 7 years ago

@ayaleloehr I've created a new issue: https://github.com/department-of-veterans-affairs/gi-bill-comparison-tool/issues/455