Bug 983782

Summary: Filtering that drops the last page causes unexpected behaviour
Product: [Retired] Zanata Reporter: Damian Jansen <djansen>
Component: UsabilityAssignee: Alex Eng <aeng>
Status: CLOSED CURRENTRELEASE QA Contact: Damian Jansen <djansen>
Severity: low Docs Contact:
Priority: unspecified    
Version: developmentCC: aeng, zanata-bugs
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-11-27 03:32:40 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 978656    

Description Damian Jansen 2013-07-12 00:41:36 UTC
Description of problem:
Scenario -
* User has a filter in place
* Filter shows 2 (or more) pages of results
* User is on second last page
* User edits enough items on the current page such that there are no valid rows for the last page

Version-Release number of selected component (if applicable):
Dev

How reproducible:
Moderate, but consistent

Steps to Reproduce:
1. Have a doc with untranslated items
2. Click Incomplete filter - > Untranslated
3. Go to last page, take note of how many (number of items) items are on last page
4. Go to second last page
5. Translate (number of items) and save them as fuzzy
6. Press the next page button
7. No content page appears, with e.g. 3/2 pages and an available Next button
8. Press the Next page button
8. Goes to Page 1

Actual results:
Current page is higher than the total number of pages, next page wraps to page one

Expected results:
If the current page would be higher than total number of pages, then go to last page

Additional info:

Comment 1 Damian Jansen 2013-07-12 00:44:12 UTC
I'm going to add it as a block to 978656, but it's reasonably trivial and may not be directly related to the new filtering.

Comment 3 Damian Jansen 2013-07-21 22:32:17 UTC
Tested at df00dc1cab4e993a5f0d98cf84faacb8f60f6381
Looks good.

Comment 4 Sean Flanigan 2013-11-27 03:32:40 UTC
Closing VERIFIED bugs which predate Zanata 3.1.2.