| Summary: |
Target model needs table for image names and sizes |
| Product: |
[Build System, Metadata & Runtime] Toaster
|
Reporter: |
David Reyna <david.reyna> |
| Component: |
toaster | Assignee: |
Alexandru Damian <alexandru.damian> |
| Status: |
VERIFIED
FIXED
|
QA Contact: |
|
| Severity: |
normal
|
|
|
| Priority: |
Medium
|
CC: |
alexandru.damian, andreea.b.proca, belen.barros.pena, cristiana.voicu, jessica.zhang
|
| Version: |
1.6 | |
|
| Target Milestone: |
1.6 M4 | |
|
| Hardware: |
All | |
|
| OS: |
Multiple | |
|
| Whiteboard: |
needs data completion test |
|
OS type for building Yocto:
|
---
|
Type of Regression:
|
---
|
|
Verified:
|
|
Documentation change:
|
No (bug/feature does not impact docs)
|
The Target table has the members "file_name" and "file_size" 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='target_image') file_name = models.FilePathField(max_length=255, blank=True) file_size = models.IntegerField()