[Libreoffice-commits] dev-tools.git: esc-reporting/qa-tools.py
Xisco Fauli
anistenis at gmail.com
Wed Dec 7 11:46:06 UTC 2016
esc-reporting/qa-tools.py | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
New commits:
commit c624eefa1d2a831c0596df3341093e048a476763
Author: Xisco Fauli <anistenis at gmail.com>
Date: Wed Dec 7 12:43:53 2016 +0100
Add the total number of unconfirmed bugs to the weekly report
diff --git a/esc-reporting/qa-tools.py b/esc-reporting/qa-tools.py
index 7249c52..e2f06e9 100755
--- a/esc-reporting/qa-tools.py
+++ b/esc-reporting/qa-tools.py
@@ -179,7 +179,9 @@ def analyze_bugzilla(statList, bugzillaData, cfg):
for key in bugzillaData['bugs']:
row = bugzillaData['bugs'][key]
- if not row['summary'].startswith('[META]'):
+ #Ignore META bugs and deletionrequest bugs.
+ if not row['summary'].startswith('[META]') \
+ and row['component'] != 'deletionrequest':
creationDate = datetime.datetime.strptime(row['creation_time'], "%Y-%m-%dT%H:%M:%SZ")
if creationDate < statOldDate:
statOldDate = creationDate
@@ -369,7 +371,8 @@ def util_print_QA_line(fp, statList, string, number, tuple, action):
elif action == 'keyword_removed':
print((' * \'' + string + '\' has been removed from {} bugs.').format(number), file=fp)
elif action == 'created':
- print((' * {} have been created, of which, {} are still unconfirmed.').format(number[0], number[1]), file=fp)
+ print((' * {} have been created, of which, {} are still unconfirmed ( Total Unconfirmed bugs: {} )').format(
+ number[0], number[1], number[2]), file=fp)
else:
print((' * {} ' + auxString + ' been changed to \'' + string + '\'.').format(number), file=fp)
@@ -514,7 +517,8 @@ def QA_Report(statList) :
print(file=fp)
util_print_QA_line(fp, statList, '',
- [statList['detailedReport']['created_count'],statList['detailedReport']['unconfirmed_count']],
+ [statList['detailedReport']['created_count'], statList['detailedReport']['unconfirmed_count'],
+ statList['data']['bugs']['all']['status']['UNCONFIRMED']],
[statList['detailedReport']['lists']['unconfirmed']], 'created')
print(' * {} comments have been written.'.format(statList['detailedReport']['comments_count']), file=fp)
More information about the Libreoffice-commits
mailing list