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

Fix paging issue with tabular view #141

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

szechyjs
Copy link
Contributor

Fix the problem that occurs when the previous page from the history is
reapplied and the number of items has changed to something smaller than
the desired page.

Fixes #129

Fix the problem that occurs when the previous page from the history is
reapplied and the number of items has changed to something smaller than
the desired page.

Fixes simile-widgets#129
@karger
Copy link
Member

karger commented Dec 9, 2015

So I was working on this issue at the same time as you, which led me to a related issue involving the view rendering itself twice when it only needed to render itself once. I've pushed commits which fix both problem and, I think, make your pull request redundant. But it would be great if you could take a look and see if I missed anything.

@szechyjs
Copy link
Contributor Author

szechyjs commented Jan 5, 2016

The only difference I see is my changes set the page to the last page and yours sets to the first page.

My thoughts; if the user is looking at data towards the end of the dataset and they change the facet they may still be interested in that data towards the end so put the user on the last page.

Ultimately both solutions prevent a blank page.

@karger
Copy link
Member

karger commented Jan 5, 2016

I chose to set the first page because that is what people expect when they jump to an entirely new page/query, so it seemed appealing to be consistent with that. There's actually a deeper problem here that hasn't been solved yet because I'm still pondering what the right solution is. I've written some about the issue in #130 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants