Bug 7165

Summary: build lists for managed mode missing functionality
Product: [Build System, Metadata & Runtime] Toaster Reporter: Alexandru Damian <alexandru.damian>
Component: toasterAssignee: Alexandru Damian <alexandru.damian>
Status: VERIFIED FIXED QA Contact: Cristina Agurida <cristina-danielax.agurida>
Severity: minor    
Priority: Medium+ CC: alexandru.c.georgescu, alexandru.damian, belen.barros.pena, bluelightning, cristiana.voicu, cristina-danielax.agurida
Version: 1.8   
Target Milestone: 1.9   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)
Bug Depends on:    
Bug Blocks: 7196    

Description Alexandru Damian 2015-01-16 12:35:13 UTC
The build lists (in All builds, and Project builds pages) are missing functionality.
This is what is not working:

* Sorting by timespent does not work

* Filtering by successful builds doesn't work

* Filtering by builds with/without errors throws an error

The reason is that we collate BuildRequests and Build objects in the same table. An acceptable solution is to create a spoof Build object for a BuildRequest that failed, and fill it up with information derived from the failed BuildRequest (e.g. start date, end date, timespent, no of errors and warnings, etc).

This would also allow displaying a build dashboard for failed build requests.
Comment 1 Alexandru Damian 2015-01-23 17:50:04 UTC
Pushed for review on 

poky-contrib:adamian/20150123-review
Comment 2 Alexandru Damian 2015-01-30 13:32:01 UTC
merged in master
Comment 3 Cristina Agurida 2015-05-12 11:29:26 UTC
Verified on master: 4a711028c709d4bb1421e1637ae3fb0ac404fb45