[Libreoffice-commits] dev-tools.git: qa/bugzillaChecker.py

Xisco Fauli xiscofauli at libreoffice.org
Mon Mar 12 17:12:01 UTC 2018


 qa/bugzillaChecker.py |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

New commits:
commit 13b6f4d79b44a22d0c02b37886e6f433857ce657
Author: Xisco Fauli <xiscofauli at libreoffice.org>
Date:   Mon Mar 12 11:26:22 2018 +0100

    QA: Fix problem with duplicated entries

diff --git a/qa/bugzillaChecker.py b/qa/bugzillaChecker.py
index 0bf58e2..0a73fae 100755
--- a/qa/bugzillaChecker.py
+++ b/qa/bugzillaChecker.py
@@ -99,6 +99,7 @@ def analyze_bugzilla_checkers(statList, bugzillaData, cfg):
             addassignedValue = None
             movedToNew = False
             movedToNewValue = None
+            addAssigned = False
 
             for action in row['history']:
                 actionMail = action['who']
@@ -260,6 +261,7 @@ def analyze_bugzilla_checkers(statList, bugzillaData, cfg):
                             if  removedAssignee == "libreoffice-bugs at lists.freedesktop.org" and \
                                     row['assigned_to'] != 'libreoffice-bugs at lists.freedesktop.org' and \
                                     ( rowStatus == 'NEW' or rowStatus == 'UNCONFIRMED'):
+                                addAssigned = True
                                 util_add_to_result(lResults, 'change_status_assigned', resultValue)
                             if addedAssignee == "libreoffice-bugs at lists.freedesktop.org" and \
                                     row['assigned_to'] == 'libreoffice-bugs at lists.freedesktop.org' and rowStatus == 'ASSIGNED':
@@ -306,8 +308,8 @@ def analyze_bugzilla_checkers(statList, bugzillaData, cfg):
                 util_add_to_result(lResults, 'is_reopened', reopenValue)
 
             #In case the reporter assigned the bug to himself at creation time
-            if creationDate >= cfg['reportPeriod'] and row['assigned_to'] != 'libreoffice-bugs at lists.freedesktop.org' and \
-                    (rowStatus == 'NEW' or rowStatus == 'UNCONFIRMED'):
+            if not addAssigned and creationDate >= cfg['reportPeriod'] and \
+                    row['assigned_to'] != 'libreoffice-bugs at lists.freedesktop.org' and (rowStatus == 'NEW' or rowStatus == 'UNCONFIRMED'):
                 value = [ rowId, row['creation_time'], row['assigned_to'] ]
                 util_add_to_result(lResults, 'change_status_assigned', value)
 


More information about the Libreoffice-commits mailing list