<?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>10289</bug_id>
          
          <creation_ts>2016-09-16 11:18:54 +0000</creation_ts>
          <short_desc>Deleting a project while a build is in progress causes the &quot;all builds&quot; page to error</short_desc>
          <delta_ts>2016-10-06 14:17:28 +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>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>GUI design pending</status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.2 M4</target_milestone>
          
          <blocked>10286</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Belen Barros Pena">belen.barros.pena</reporter>
          <assigned_to name="Michael Wood">michael.g.wood</assigned_to>
          <cc>belen.barros.pena</cc>
    
    <cc>jessica.zhang</cc>
    
    <cc>stanciux.mihail</cc>
          
          <qa_contact name="Libertad">libertad.gonzalez.de.la.cruz</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>66240</commentid>
    <comment_count>0</comment_count>
    <who name="Belen Barros Pena">belen.barros.pena</who>
    <bug_when>2016-09-16 11:18:54 +0000</bug_when>
    <thetext>Steps to reproduce:

1. Create a Toaster project
2. Start a build
3. Go back to the project configuration page and click the &quot;delete project&quot; link
4. Confirm that you want to delete the project
5. When the deletion is done, click on the &quot;All builds&quot; link in the global navigation

The page shows this error:

&apos;InvalidString&apos; object has no attribute &apos;is_default&apos;

If a user tries to delete a project that has a build in progress, we should:

1. Tell users about it in the delete confirmation dialog, and warn them that the build in progress will be cancelled

2. Cancel the build in progress before deleting the project

The project deletion should also be a modal process, which is convered in bug 10286</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>66985</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Wood">michael.g.wood</who>
    <bug_when>2016-10-06 14:17:28 +0000</bug_when>
    <thetext>
http://git.yoctoproject.org/cgit/cgit.cgi/poky/atom/fffce32ebd8712e29cc6f9c4a7a97ce40f9916ee
Before we finally delete any project make sure we send the cancel command to
any in-progress builds. This ensures that an inaccessible build doesn&apos;t block
up the system and that we don&apos;t get errors after deletion.

[YOCTO #10289]

(Bitbake rev: 263762a01a6460332ef0cfea5df1e5b81c086df4)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>