aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Reyna <David.Reyna@windriver.com>2020-01-21 22:36:29 -0800
committerDavid Reyna <David.Reyna@windriver.com>2020-01-21 22:36:29 -0800
commitf7f3e8df7b1d6ad4c549d7cf86e45c7b33070eda (patch)
treed5be82ab360b2f91a1dfc0307d9f405d843f753a
parent075e2c4dd23a665b8c5434d155b02a754ed1a61c (diff)
downloadsrtool-f7f3e8df7b1d6ad4c549d7cf86e45c7b33070eda.zip
srtool-f7f3e8df7b1d6ad4c549d7cf86e45c7b33070eda.tar.gz
srtool-f7f3e8df7b1d6ad4c549d7cf86e45c7b33070eda.tar.bz2
srtool: publish leave product empty if not investigation
In the summary publish report, leave the product cell blank if there is no Investigation. Signed-off-by: David Reyna <David.Reyna@windriver.com>
-rw-r--r--lib/srtgui/reports.py14
-rw-r--r--lib/srtgui/templates/publish.html8
2 files changed, 11 insertions, 11 deletions
diff --git a/lib/srtgui/reports.py b/lib/srtgui/reports.py
index c207bd8..a1f0de0 100644
--- a/lib/srtgui/reports.py
+++ b/lib/srtgui/reports.py
@@ -1965,7 +1965,7 @@ class PublishSummaryReport(PublishListReport):
product_top_defect = []
# Default all product status to the CVE's status
for product in product_list:
- status_table[product.key] = SRTool.status_text(SRTool.NOT_VULNERABLE)
+ status_table[product.key] = ''
# Set the specific status for the child investigations
for cv in cve.cve_to_vulnerability.all():
#status_text = cv.vulnerability.get_status_text
@@ -2028,19 +2028,19 @@ class PublishSummaryReport(PublishListReport):
writer = None
# Assemble the header
- text_format = '%-18s,%16s,%-8s,%-8s,%-15s,%-15s,%-30s,%-25s,%15s,%15s,%20s,'
+ text_format = '%-18s,%16s,%-11s,%-8s,%-11s,%-8s,%-30s,%-25s,%15s,%15s,%11s,'
header = [
'CVE Number',
'Status',
- 'CVSSv2_Severity',
- 'CVSSv2_Score',
- 'CVSSv3_Severity',
- 'CVSSv3_Score',
+ 'V2_Severity',
+ 'V2_Score',
+ 'V3_Severity',
+ 'V3_Score',
'CVE Description',
'YP Comments',
'Created Date',
'Modified Date',
- 'YP Acknowledged Date',
+ 'YP Ack Date',
]
# Assemble the product column namess
for product in product_list:
diff --git a/lib/srtgui/templates/publish.html b/lib/srtgui/templates/publish.html
index b22445f..0e7f58e 100644
--- a/lib/srtgui/templates/publish.html
+++ b/lib/srtgui/templates/publish.html
@@ -30,13 +30,13 @@
</tr>
<tr>
- <td><a class="btn btn-info btn-lg" href="{% url 'publish_diff_snapshot' %}">Difference Snapshots [UNDER DEVELOPMENT]</a></td>
- <td>Difference Report via Snapshots</td>
+ <td><a class="btn btn-info btn-lg" href="{% url 'publish_diff_snapshot' %}">Difference Snapshots</a></td>
+ <td>Difference Report via Snapshots [UNDER DEVELOPMENT]</td>
</tr>
<tr>
- <td><a class="btn btn-info btn-lg" href="{% url 'publish_diff_history' %}">Difference History [UNDER DEVELOPMENT]</a></td>
- <td>Difference Report via History</td>
+ <td><a class="btn btn-info btn-lg" href="{% url 'publish_diff_history' %}">Difference History</a></td>
+ <td>Difference Report via History [UNDER DEVELOPMENT]</td>
</tr>
</table>