Bug 12004 - Views: Edit Columns button is not alphabetically ordered
Summary: Views: Edit Columns button is not alphabetically ordered
Status: RESOLVED FIXED
Alias: None
Product: Toaster
Classification: Build System, Metadata & Runtime
Component: toaster (show other bugs)
Version: 2.5
Hardware: x86 Multiple
: Medium normal
Target Milestone: 2.4 M4
Assignee: David Reyna
QA Contact: Libertad
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2017-08-30 14:41 UTC by Libertad
Modified: 2017-09-07 04:36 UTC (History)
2 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Yes (doc changes required)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Libertad 2017-08-30 14:41:17 UTC
DESCRIPTION:

If you navigate through the views of the Toaster UI you can see an "Edit Columns" button which holds all selectable columns of each table displayed on each view. Well this testcase was written when a requirement said that this had to be listed alphabetically.

NONE of the columns shown in the "Edit Columns" are alphabetically ordered.

Please notify me if requirement was changed. I did not find documentation that said other wise. 



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 "Recipes", "Tasks", "Packages", "Time", "CPU","Disk I/O", " link in the left sidebar.

3. In the "Edit columns" menu, table columns appear listed alphabetically.
In the table itself, the default order of columns is as follows:
(1) Dependencies (2) Layer (3) Layer branch (4) Layer commit (5) License (6) Recipe (7) Recipe file (8) Recipe version (9) Reverse dependencies (10) Section

The minimum table is made of the 2 columns that provide the information needed to identify a target: Recipe and Recipe version.

EXPECTED OUTCOME:
Columns alphabetically ordered.
Comment 1 Libertad 2017-08-30 14:41:46 UTC
In General if you go to any given view that holds a table this problem is present.
Comment 2 David Reyna 2017-09-03 05:39:23 UTC
Looking at the current Toaster I observe that the "Edit Columns" items are in column order and not in alphabetical order, as this defect observed.

I looked at the original design documents from Belen and I observe that at that time the columns where indeed in alphabetical order. I suspect that the change happened when the code moved to the newer "toaster tables".
Comment 3 David Reyna 2017-09-03 20:25:18 UTC
I have updated the Toaster Table javascript code to sort the Edit Table entries.
Comment 4 David Reyna 2017-09-07 04:36:03 UTC
commit 749513169f9e04835e8429b8e5a96ba6aefc7247