<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>4625</bug_id>
          
          <creation_ts>2013-06-07 10:52:55 +0000</creation_ts>
          <short_desc>Delete build information</short_desc>
          <delta_ts>2014-03-26 11:09:14 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>Toaster</product>
          <component>toaster</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>1.6 M5</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Belen Barros Pena">belen.barros.pena</reporter>
          <assigned_to name="Alexandru Damian">alexandru.damian</assigned_to>
          <cc>bluelightning</cc>
    
    <cc>david.reyna</cc>
    
    <cc>jessica.zhang</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Done (doc changes complete)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>33688</commentid>
    <comment_count>0</comment_count>
    <who name="Belen Barros Pena">belen.barros.pena</who>
    <bug_when>2013-06-07 10:52:55 +0000</bug_when>
    <thetext>I want to delete information stored for a certain build(s). 

The minimum unit of deletion is a build (I can not delete part of the information for a single build), and it was also suggested to provide date-based deletion (delete data for builds started / completed between this day and this day). 

The question was raised of what&apos;s deleted: the information in the database only, or the build output as well? No conclusive answer yet.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35460</commentid>
    <comment_count>1</comment_count>
    <who name="Alexandru Damian">alexandru.damian</who>
    <bug_when>2013-08-07 11:07:14 +0000</bug_when>
    <thetext>The ugly workaround is to erase and recreate the database.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40461</commentid>
    <comment_count>2</comment_count>
    <who name="Belen Barros Pena">belen.barros.pena</who>
    <bug_when>2014-02-19 17:39:02 +0000</bug_when>
    <thetext>Alex has suggested to add a command to Django through manage.py to avoid any security issues (the GUI has no authentication built in).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40464</commentid>
    <comment_count>3</comment_count>
    <who name="Alexandru Damian">alexandru.damian</who>
    <bug_when>2014-02-19 18:36:45 +0000</bug_when>
    <thetext>This should be solved with a bldviewer command addition for manage.py:

- listbuilds :should get a user-readable tabbed list of build ids and identification information
- deletebuild id  :should delete the build with the specified id AND ALL related information (traversing the ForeignKey relationships recursively) from the database.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41444</commentid>
    <comment_count>4</comment_count>
    <who name="Belen Barros Pena">belen.barros.pena</who>
    <bug_when>2014-03-19 16:36:29 +0000</bug_when>
    <thetext>This was merged sometime</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41450</commentid>
    <comment_count>5</comment_count>
    <who name="Belen Barros Pena">belen.barros.pena</who>
    <bug_when>2014-03-19 16:45:41 +0000</bug_when>
    <thetext>mmm, maybe I spoke too soon. Running 

./manage.py buildslist 

returns an error saying

DatabaseError: no such table: orm_build

This is on master:ac4ff568f5b2ad4f50a1b7b60797e7b797c314bb</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41619</commentid>
    <comment_count>6</comment_count>
    <who name="Belen Barros Pena">belen.barros.pena</who>
    <bug_when>2014-03-24 12:08:49 +0000</bug_when>
    <thetext>Scott has already provided the content relevant to this issue, which will be published in the Yocto Project wiki for 1.6 release.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41750</commentid>
    <comment_count>7</comment_count>
    <who name="Belen Barros Pena">belen.barros.pena</who>
    <bug_when>2014-03-26 11:08:40 +0000</bug_when>
    <thetext>my bad: this is working, but if you are using the standard configuration you need to issue the commands from the /poky/build directory.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41751</commentid>
    <comment_count>8</comment_count>
    <who name="Belen Barros Pena">belen.barros.pena</who>
    <bug_when>2014-03-26 11:09:14 +0000</bug_when>
    <thetext>verified in master:39846ddbce87d26eb68870914bf86a8ce5e86e5c</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>