Bug 6239 - Toaster utility commands for shared databases
Summary: Toaster utility commands for shared databases
Status: VERIFIED NOTABUG
Alias: None
Product: Toaster
Classification: Build System, Metadata & Runtime
Component: toaster (show other bugs)
Version: 1.7
Hardware: x86 Multiple
: Medium enhancement
Target Milestone: Future
Assignee: David Reyna
QA Contact: Alexandru Roman
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2014-04-25 07:30 UTC by David Reyna
Modified: 2015-12-04 13:31 UTC (History)
6 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Yes (doc changes required)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Reyna 2014-04-25 07:30:42 UTC
This is the enhancement of the Toaster start-up and configuration scripts to make it easy to 

  (a) separately start and stop the Web service, and 

  (b) easily attach and detach builds or projects to that shared database and initializing a new database as appropriate.
Comment 1 Alexandru Damian 2014-08-29 16:53:59 UTC
I am not sure what we actually need here -

the bitbake/bin/toaster script, in execute (i.e. not sourced) mode, is just the combination of existing modular commands that django provides, for starting and stopping the web server, or for updates to the database


I am not sure what "attach and detach builds or projects" implies.
Comment 2 Belen Barros Pena 2014-11-05 17:26:54 UTC
David Reyna has mentioned this is no longer required for M1: moving to 1.8 so that he can give it a new milestone.
Comment 3 David Reyna 2014-12-10 15:44:29 UTC
Alex asks: "I am not sure what "attach and detach builds or projects" implies."

* Here is the "attach" scenario:

  (1) User creates or has existing projects that were not started with Toaster running.

  (2) User wishes to start tracking data on those projects with Toaster. 

  (3) The issue is that those "outside" projects do not have a Toaster conf file, and thus will not add their build data to the Toaster database by bitbake.

How can a user bring "outside" projects into Toaster, and thus "attach" them to Toaster? Is there a formal command?

* Here is the "detach" scenario:

  (1) User has a project being tracked by Toaster

  (2) User wishes to stop tracking that project by Toaster

Is there a formal command? Presumably the manual command is to delete that projects Toaster conf file?
Comment 4 Belen Barros Pena 2015-01-05 11:26:33 UTC
The importing projects functionality (bug 6603) could somehow cover the 'attach' scenario. The 'detach' scenario could be covered as part of the delete functionality (bug 6238), or as part of some archive / restore functionality.

In any case, I am not sure we'll get to this as part of 1.8.
Comment 5 David Reyna 2015-06-10 05:14:50 UTC
I am withdrawing this defect because the team agrees that it is covered by bugs
6603 and bug 6238, as per Belen's comments.
Comment 6 Alexandru Roman 2015-12-04 13:31:21 UTC
Verified.