Bug 5778

Summary: Enable package file table sorts by file size in the package detail views
Product: [Build System, Metadata & Runtime] Toaster Reporter: Dave Lerner <dave.lerner>
Component: toasterAssignee: Dave Lerner <dave.lerner>
Status: VERIFIED FIXED QA Contact: Yuan Sun <Yuan.Sun2>
Severity: enhancement    
Priority: Medium CC: alexandru.damian, belen.barros.pena, cristiana.voicu, david.reyna, jessica.zhang, Yuan.Sun2
Version: 1.6   
Target Milestone: 1.6 M4   
Hardware: All   
OS: Multiple   
Whiteboard: GUI design available
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)
Attachments:
Description Flags
Sorting the tables in detail pages
none
screenshot none

Description Dave Lerner 2014-01-31 01:13:43 UTC
On the package detail views, on either the 'built but not included' 'Generated Files' tab, or on the the 'included' 'files in root file system' tab, the pages show a table of a package's component file names and file sizes.  
If file size is a field of interest, then it is also probably interesting to be able to quickly see the largest file, or even large lists of small files, to facilitate different types of optimizations (image footprint, image loading).
Currently this table, based on specs in bugzilla 4328, only is sorted alphabetically by file name.
Comment 1 Belen Barros Pena 2014-01-31 10:13:15 UTC
Taking this one, since it requires design changes
Comment 2 Belen Barros Pena 2014-03-11 16:01:34 UTC
Created attachment 1807 [details]
Sorting the tables in detail pages
Comment 3 Dave Lerner 2014-03-25 16:58:38 UTC
Steps to reproduce:
for machine qemux86
1) bitbake core-image-minimal core-image-sato
2) select core-image-minimal
3) show the paths noted by Belen in original defect.  

The query counting children isn't constrained by 'target' which is the image number, so counting children (for opening acation) of core-image-minimal /boot is getting the results from core-image-sato as well - trivial fix.
Comment 4 Dave Lerner 2014-03-25 16:59:51 UTC
REMOVE PREVIOUS COMMENT - bugzilla fooled me and my comment was for previously edited bugzilla entry.
Comment 5 David Reyna 2014-04-09 23:13:07 UTC
commit d3e5632efb1f10143c748c169f6439f39eb3cf21
Comment 6 Yuan Sun 2014-04-11 06:45:10 UTC
Created attachment 1910 [details]
screenshot
Comment 7 Yuan Sun 2014-04-11 06:45:50 UTC
Hi Dave,
  The size column in packages tab of a recipe page should be sortable. But in fact, it isn't. See page 7 of the attached "Sorting the tables in detail pages" document.
  May I file a defect against the issue?
Comment 8 Belen Barros Pena 2014-04-11 09:12:59 UTC
(In reply to comment #7)
> Hi Dave,
>   The size column in packages tab of a recipe page should be sortable. But
> in fact, it isn't. See page 7 of the attached "Sorting the tables in detail
> pages" document.
>   May I file a defect against the issue?

We decided to make it not sortable in order to fix bug 6061
Comment 9 Belen Barros Pena 2014-04-11 14:45:11 UTC
The fix did not implement the sorting in the Packages tab of the recipe details page. I've opened bug 6154 for that.
Comment 10 Yuan Sun 2014-04-17 02:09:05 UTC
Verified.