Bug 6776

Summary: breadcrumb change in analysis pages
Product: [Build System, Metadata & Runtime] Toaster Reporter: Alexandru Damian <alexandru.damian>
Component: toasterAssignee: Alexandru Damian <alexandru.damian>
Status: VERIFIED FIXED QA Contact: Mihail Stanciu <stanciux.mihail>
Severity: normal    
Priority: Medium+ CC: alexandru.c.georgescu, alexandru.damian, belen.barros.pena, bluelightning, cristiana.voicu
Version: 1.8   
Target Milestone: 1.8 M1   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)
Attachments:
Description Flags
screenshot1.png
none
screenshot2.png none

Description Alexandru Damian 2014-09-30 10:13:44 UTC
This is a separate bug to track breadcrumb changes in analysis pages when toaster is  running in "managed" mode.

The design is documented here

https://bugzilla.yoctoproject.org/attachment.cgi?id=2135
Comment 1 Alexandru Damian 2014-09-30 12:03:23 UTC
Pushed for review on poky-contrib:toaster/master
Comment 2 Belen Barros Pena 2014-10-24 11:03:49 UTC
The breadcrumb seems to be working, but I've found 2 problems in the 'all builds' page:

1. when I start Toaster in interactive mode using the database I created while in managed mode, the 'latest builds' information shows the project name. It shouldn't: as far as the interactive mode is concerned, projects do not exist (see attached screenshot1.png).

2. The 'run again' button displays, but Toaster in interactive mode cannot run builds: when you click the 'run again' button, Toaster throws an error (see attached screenshot2.png). The 'run again' button needs to disappear from the interactive mode.

We can either deal with the above as part of this issue or I can open a separate one: just let me know what you prefer.

Just a note about how to test this: Toaster in managed mode creates the toaster.sqlite file in the root checkout directory. Toaster in interactive mode creates the toaster.sqlite file in the /build directory. So to test this (for whenever it hits poky/master) this is what I did:

1. I started Toaster in managed mode, created a project and ran a couple of builds

2. Stopped Toaster in managed mode

3. Copied the toaster.sqlite file from the root checkout directory to the build directory

4. In a clean terminal, I started Toaster in interactive mode.
Comment 3 Belen Barros Pena 2014-10-24 11:04:08 UTC
Created attachment 2209 [details]
screenshot1.png
Comment 4 Belen Barros Pena 2014-10-24 11:04:26 UTC
Created attachment 2210 [details]
screenshot2.png
Comment 5 Alexandru Damian 2014-11-25 11:24:52 UTC
Pushed for review on toaster/master.
Comment 6 Belen Barros Pena 2014-11-25 17:05:09 UTC
This is still happening:

1. when I start Toaster in interactive mode using the database I created while in managed mode, the 'latest builds' information shows the project name. It shouldn't: as far as the interactive mode is concerned, projects do not exist (see attached screenshot1.png).

2. The 'run again' button displays, but Toaster in interactive mode cannot run builds: when you click the 'run again' button, Toaster throws an error (see attached screenshot2.png). The 'run again' button needs to disappear from the interactive mode.

We can either deal with the above as part of this issue or I can open a separate one: just let me know what you prefer.
Comment 7 Belen Barros Pena 2014-11-25 17:11:28 UTC
(In reply to comment #6)
> This is still happening:
> 
> 1. when I start Toaster in interactive mode using the database I created
> while in managed mode, the 'latest builds' information shows the project
> name. It shouldn't: as far as the interactive mode is concerned, projects do
> not exist (see attached screenshot1.png).
> 
> 2. The 'run again' button displays, but Toaster in interactive mode cannot
> run builds: when you click the 'run again' button, Toaster throws an error
> (see attached screenshot2.png). The 'run again' button needs to disappear
> from the interactive mode.
> 
> We can either deal with the above as part of this issue or I can open a
> separate one: just let me know what you prefer.

Never mind this: I didn't realise this is in toaster/master
Comment 8 Belen Barros Pena 2014-11-25 19:04:23 UTC
This seems to be working in toaster/master:351c068bea1e5d0a7c11bcdd7b56ec6743cf9d8d 

There is only a small problem with the .alert class padding in interactive mode. There is patch for that here:

http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/commit/?h=bbarrosp/padding-fix&id=88c2a1e16f50b7b69db08ed430c9711aea37d8fc
Comment 9 Alexandru Damian 2014-12-04 12:03:44 UTC
All patches merged to master.
Comment 10 Mihail Stanciu 2015-02-16 15:10:14 UTC
Verified on master: 6ae933b75c1c34a9d39e1aff0a0cb26a7ce4677f