<?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>5836</bug_id>
          
          <creation_ts>2014-02-18 03:35:56 +0000</creation_ts>
          <short_desc>Target model needs table for image names and sizes</short_desc>
          <delta_ts>2014-03-20 09:39:04 +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>1.6</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>needs data completion test</status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.6 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="David Reyna">david.reyna</reporter>
          <assigned_to name="Alexandru Damian">alexandru.damian</assigned_to>
          <cc>alexandru.damian</cc>
    
    <cc>andreea.b.proca</cc>
    
    <cc>belen.barros.pena</cc>
    
    <cc>cristiana.voicu</cc>
    
    <cc>jessica.zhang</cc>
          
          
          <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>40400</commentid>
    <comment_count>0</comment_count>
    <who name="David Reyna">david.reyna</who>
    <bug_when>2014-02-18 03:35:56 +0000</bug_when>
    <thetext>The Target table has the members &quot;file_name&quot; and &quot;file_size&quot; for its image file(s). However, a target can and mostly likely will have multiple generated images, and while the name will be the same (modulo the file name extensions from Build.image_fstypes) each image will have a different file size.

The requirement is to create a new table of Target image names and sizes, keyed to the parent Target pk.

For example:

  class Target_Image_File(models.Model):
    target = models.ForeignKey(Target,related_name=&apos;target_image&apos;)
    file_name = models.FilePathField(max_length=255, blank=True)
    file_size = models.IntegerField()</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40477</commentid>
    <comment_count>1</comment_count>
    <who name="Alexandru Damian">alexandru.damian</who>
    <bug_when>2014-02-20 11:12:42 +0000</bug_when>
    <thetext>Added, data is not collected yet.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41068</commentid>
    <comment_count>2</comment_count>
    <who name="Alexandru Damian">alexandru.damian</who>
    <bug_when>2014-03-11 12:46:17 +0000</bug_when>
    <thetext>Database change merged into toaster/master.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41498</commentid>
    <comment_count>3</comment_count>
    <who name="Andreea Brandusa Proca">andreea.b.proca</who>
    <bug_when>2014-03-20 09:39:04 +0000</bug_when>
    <thetext>Verified in master:ac4ff568f5b2ad4f50a1b7b60797e7b797c314bb</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>