Bug 9833

Summary: There can be a Task and Recipes table of 0 columns when deselecting them on the "Edit Columns" button
Product: [Build System, Metadata & Runtime] Toaster Reporter: Libertad <libertad.gonzalez.de.la.cruz>
Component: toasterAssignee: Elliot Smith <elliot.smith>
Status: RESOLVED FIXED QA Contact: Libertad <libertad.gonzalez.de.la.cruz>
Severity: normal    
Priority: Medium CC: belen.barros.pena, jessica.zhang, ross.burton, stanciux.mihail
Version: 2.2   
Target Milestone: 2.2 M3   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: Don't know
Attachments:
Description Flags
snapshot of a task table with 0 columns none

Description Libertad 2016-06-27 19:27:13 UTC
Created attachment 3254 [details]
snapshot of a task table with 0 columns

DESCRIPTION:

When clicking on the Edit Columns button from both Tasks and Recipes tables, I can deselect all the fields leaving the table with 0 columns. Or better said eliminating the table. 

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 "Tasks" link in the left sidebar 

3. Columns 
 

  * Observe that the default columns are:  
   
    "Order, Recipe, Task, Executed, Outcome, Cache attempt" 
 
  * Click the "Edit Columns" button. 
   
  * Observe that the fields are sorted as follows (with the indicated items greyed) 
 
    [ ] CPU usage 
    [x] Cache attempt 
    [ ] Disk I/O (ms) 
    [x] Executed 
    [x] Order            {greyed} 
    [x] Outcome 
    [x] Recipe           {greyed} 
    [ ] Recipe version 
    [x] Task             {greyed} 
    [ ] Time (secs)  
 
  * For each of the greyed items, attempt to click them. Observe that they do not change. 
 
  * For each of the non-greyed items, attempt to click them. Observe that the respective column dynamically appears when checked and disappears when un-checked. 
 
 
4. Check the Recipe table and  see that you can deselect all columns.
 

 
EXPECTED OUTCOME:

In the past the fields marked as gray could not be unselected therefore the table would always have columns.
Comment 1 Elliot Smith 2016-07-18 11:02:53 UTC
Submitted to Toaster mailing list for review:
https://lists.yoctoproject.org/pipermail/toaster/2016-July/005000.html
Comment 2 Ross Burton 2016-07-26 16:35:04 UTC
These have now been merged to master:

bitbake: toaster-tests: add tasks and recipes sub-page tests
Bitbake cecee440a76950f2824ea34b88e84185be493337
bitbake: toaster: set non-hideable columns for built recipes table
Bitbake 3abd0ac300462e6d1335018cf2d0420de7cc8b76
bitbake: toaster: set non-hideable columns for build tasks table
Bitbake dc1781e3783724823fd6b0c2d65f6b2771e8d0be

Is this fixed now?