Bug 8206 - Most built recipes section shows extra checkbox in the UI for same image built
Summary: Most built recipes section shows extra checkbox in the UI for same image built
Status: VERIFIED FIXED
Alias: None
Product: Toaster
Classification: Build System, Metadata & Runtime
Component: toaster (show other bugs)
Version: 1.9
Hardware: x86 Multiple
: Medium normal
Target Milestone: 2.0
Assignee: Sujith H
QA Contact: Alexandru Roman
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2015-08-25 11:13 UTC by Sujith H
Modified: 2015-11-06 12:15 UTC (History)
4 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Don't know


Attachments
This is the screenshot where user can see an extra check box near console-image (179.73 KB, image/png)
2015-08-25 11:13 UTC, Sujith H
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sujith H 2015-08-25 11:13:04 UTC
Created attachment 2679 [details]
This is the screenshot where user can see an extra check box near console-image

When tried building console-image ( from meta-mentor ), toaster UI shows an extra check box in : Most built recipes section.

How to reproduce:

1) Build console-image ( or any other image )
2) You can break the build ( Ctrl + C ) or wait till the image gets finished.
3) Verify "All Projects" page. User can see one check box followed by console-image in the Most built recipes section.
4) Continue step 1 to step 2
5) Verify "All Projects" page. User can see an extra check box followed by console-image in the Most built recipes section.
Comment 1 Sujith H 2015-08-25 11:14:46 UTC
Re-assigning to myself.
Comment 2 Sujith H 2015-08-26 14:58:03 UTC
There is an issue I have noticed in the table bldcontrol_brtarget. When user tries to build an image/recipe lets say, console-image ( from meta-mentor ) the table is updated properly. That is:
1|1|console-image|

Second time when user selects console-image and triggers build by clicking "Build selected recipes", the table gets updated as:

1|1|console-image|
2|2|console-image|
3|2||


And third time when same process is repeated:

1|1|console-image|
2|2|console-image|
3|2||
4|3|console-image|
5|3||

I am not able understand in which part of code updates the brtarget. Though a small work around I have is:

a) fix in the projectpage.js by removing empty string in the recipes variable.
b) Make req_id as primary key?

It would be helpful if I can get some pointers to figure out how brtarget is getting updated when "Build selected recipes" button gets clicked.
Comment 3 Sujith H 2015-09-03 14:41:15 UTC
Marking this task as resolved. The changes got merged to bitbake repo: http://git.openembedded.org/bitbake/commit/?id=742d15beaf7e2bb8b61ed61b1a26909d16de0eac
Comment 4 Alexandru Roman 2015-11-06 12:15:45 UTC
Verified on master: fc45deac89ef63ca1c44e763c38ced7dfd72cbe1