Bug 9831

Summary: Pagination widget does not have the next and previous button for Packages, Tasks and Recipes pages
Product: [Build System, Metadata & Runtime] Toaster Reporter: Libertad <libertad.gonzalez.de.la.cruz>
Component: toasterAssignee: Belen Barros Pena <belen.barros.pena>
Status: VERIFIED NOTABUG QA Contact: Libertad <libertad.gonzalez.de.la.cruz>
Severity: normal    
Priority: Low CC: belen.barros.pena, jessica.zhang, stanciux.mihail
Version: 2.2   
Target Milestone: 2.2   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: Don't know
Attachments:
Description Flags
Snapshots of the interfaces not showing the next and previous buttons none

Description Libertad 2016-06-27 16:57:55 UTC
Created attachment 3253 [details]
Snapshots of the interfaces not showing the next and previous buttons

DESCRIPTION:

Once in the packages, tasks and recipes pages I do not see the Next and Previous button at the bottom of the page. 


BUILD: 2.2_M1.rc2: 6f0c5537e02c59e1c8f3b08f598dc049ff8ee098
ENVIRONMENT: Debian 4.3.0-0.bpo.1-amd64
STEPS TO REPRODUCE: 

1. Start with a default Yocto project (qemux86), start the Toaster, and build "bitbake core-image-minimal".
 
2. In Toaster, select the build, and select the "Packages" link in the left sidebar.


3. Observe that the pagination widget is made of:
- A "Previous" button
- A "Next" button
- A maximum of 5 page buttons. 

4. See the pagination function of "Tasks", "Recipes" links according to steps 2-3.

EXPECTED OUTCOME: 

In step 3 and 4 I was expecting the Previous and Next buttons to appear in the pagination widget.
Comment 1 Belen Barros Pena 2016-07-01 13:57:07 UTC
Hi Libby,

Sorry about this. Here comes some history on that pagination widget :)

The original design called for 5 pages shown (contextual to your page location), plus a previous and a next button. When we created the tables.py component to handle the Toaster tables, that original design was lost, and instead we have one without previous and next buttons. So any tables that are created using tables.py will show a pagination widget without previous and next buttons.

When we moved Toaster to Boostrap 3, we also moved the Packages, Recipes and Tasks tables to tables.py, that's why the pagination widget in those tables no longer has previous / next buttons.

Although I agree the design of that widget could definitely be improved, I would not consider it a bug: it is more like a feature request. I will close this as resolved - not a bug. I hope that's ok.
Comment 2 Libertad 2016-07-19 20:53:15 UTC
I have changed the TC 945 that checks for pagination widget to have "Previous and Next" buttons, it now advises that this widget is changed after bootstrap 3 changes.