[Libreoffice-commits] dev-tools.git: 2 commits - qa/bugzillaChecker.py qa/bugzillaDataAnalyzer.py
Xisco Fauli
xiscofauli at libreoffice.org
Tue Apr 10 14:22:26 UTC 2018
qa/bugzillaChecker.py | 7 +++++++
qa/bugzillaDataAnalyzer.py | 2 +-
2 files changed, 8 insertions(+), 1 deletion(-)
New commits:
commit 657862f7b1622cc79a402a4c982dd6764c0cdd37
Author: Xisco Fauli <xiscofauli at libreoffice.org>
Date: Tue Apr 10 16:18:48 2018 +0200
QA: Accept an argument as the number of days we want to highlight
This is good to highlight changes over the weekend
diff --git a/qa/bugzillaChecker.py b/qa/bugzillaChecker.py
index ea0731f..3211b37 100755
--- a/qa/bugzillaChecker.py
+++ b/qa/bugzillaChecker.py
@@ -8,6 +8,7 @@
#
import common
+import sys
import datetime
import re
import colorama
@@ -431,6 +432,12 @@ def runCfg():
if __name__ == '__main__':
print("Reading and writing data to " + common.dataDir)
+ if len(sys.argv) > 1:
+ try:
+ coloredPeriodDays = int(sys.argv[1])
+ except ValueError:
+ print("The argument is not an int. Ignoring it...")
+
cfg = runCfg()
bugzillaData = common.get_bugzilla()
commit 56f1a4028790acf41e9dacfdc23326f53bf2794d
Author: Xisco Fauli <xiscofauli at libreoffice.org>
Date: Tue Apr 10 16:18:24 2018 +0200
QA: Fix issue with closed issue
diff --git a/qa/bugzillaDataAnalyzer.py b/qa/bugzillaDataAnalyzer.py
index 44cdcc5..2de0c3a 100755
--- a/qa/bugzillaDataAnalyzer.py
+++ b/qa/bugzillaDataAnalyzer.py
@@ -200,7 +200,7 @@ def analyze_bugzilla_data(statList, bugzillaData, cfg):
addedStatus = change['added']
removedStatus = change['removed']
- if actionDate >= cfg['reportPeriod'] and common.isOpen(removedStatus) and \
+ if actionDate >= cfg['reportPeriod'] and not common.isClosed(removedStatus) and \
common.isClosed(addedStatus) and common.isClosed(row['status']):
if isClosed:
util_decrease_action(statList[kindOfTicket]['closed'], rowId, creatorMail, rowStatus, rowProduct,
More information about the Libreoffice-commits
mailing list