Bug 13110 - Add "release" records to product records
Summary: Add "release" records to product records
Status: RESOLVED FIXED
Alias: None
Product: Security Response Tool
Classification: Yocto Project Subprojects
Component: General (show other bugs)
Version: 2.7
Hardware: x86 Multiple
: Medium enhancement
Target Milestone: 2.7 M2
Assignee: David Reyna
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2018-12-29 09:45 UTC by David Reyna
Modified: 2019-01-12 18:28 UTC (History)
1 user (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 2018-12-29 09:45:32 UTC
Add a new table for "Releases".

class Release:
  name = models.CharField(max_length=63)
  product = models.ForeignKey(Product,related_name="release2product",on_delete=models.CASCADE,)

* Each Product (e.g. "YP-2.6") can can multiple Releases (e.g. "YP-2.6", "YP-2.6.1", "YP-2.6.2", ...)

* This can be used to match CPEs to specific releases

* This can be used to match CVE defects to releases

* Thia can be used to map defects for CVEs to releases, useful for when/where they are fixed.