Bug 5778 - Enable package file table sorts by file size in the package detail views
Summary: Enable package file table sorts by file size in the package detail views
Status: VERIFIED FIXED
Alias: None
Product: Toaster
Classification: Build System, Metadata & Runtime
Component: toaster (show other bugs)
Version: 1.6
Hardware: All Multiple
: Medium enhancement
Target Milestone: 1.6 M4
Assignee: Dave Lerner
QA Contact: Yuan Sun
URL:
Whiteboard: GUI design available
Depends on:
Blocks:
 
Reported: 2014-01-31 01:13 UTC by Dave Lerner
Modified: 2014-04-24 03:02 UTC (History)
6 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments
Sorting the tables in detail pages (717.19 KB, application/pdf)
2014-03-11 16:01 UTC, Belen Barros Pena
no flags Details
screenshot (158.88 KB, image/png)
2014-04-11 06:45 UTC, Yuan Sun
no flags Details

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