Bug 9831 - Pagination widget does not have the next and previous button for Packages, Tasks and Recipes pages
Summary: Pagination widget does not have the next and previous button for Packages, Ta...
Status: VERIFIED NOTABUG
Alias: None
Product: Toaster
Classification: Build System, Metadata & Runtime
Component: toaster (show other bugs)
Version: 2.2
Hardware: x86 Multiple
: Low normal
Target Milestone: 2.2
Assignee: Belen Barros Pena
QA Contact: Libertad
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2016-06-27 16:57 UTC by Libertad
Modified: 2016-07-19 20:53 UTC (History)
3 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Don't know


Attachments
Snapshots of the interfaces not showing the next and previous buttons (343.44 KB, application/zip)
2016-06-27 16:57 UTC, Libertad
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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.