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.
In General if you go to any given view that holds a table this problem is present.
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".
I have updated the Toaster Table javascript code to sort the Edit Table entries.
commit 749513169f9e04835e8429b8e5a96ba6aefc7247