You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kibble.apache.org by hu...@apache.org on 2018/12/31 05:25:47 UTC

[kibble-scanners] branch master updated: tickets with these values are broken and need a rescan

This is an automated email from the ASF dual-hosted git repository.

humbedooh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/kibble-scanners.git


The following commit(s) were added to refs/heads/master by this push:
     new 754202a  tickets with these values are broken and need a rescan
754202a is described below

commit 754202a205e5d325759def7abd6e7f976d7dd527
Author: Daniel Gruno <hu...@apache.org>
AuthorDate: Mon Dec 31 06:25:37 2018 +0100

    tickets with these values are broken and need a rescan
    
    Tickets with unknown@kibble are likely scanned with the
    old (broken) scanner, and we should redo them when
    encountered in the DB.
---
 src/plugins/scanners/jira.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/plugins/scanners/jira.py b/src/plugins/scanners/jira.py
index 0320ffe..1d6bcf7 100644
--- a/src/plugins/scanners/jira.py
+++ b/src/plugins/scanners/jira.py
@@ -133,7 +133,10 @@ def scanTicket(KibbleBit, key, u, source, creds, openTickets):
             KibbleBit.pprint("[%s] Ticket was recently closed, parsing it" % key)
             parseIt = True
         else:
-            pass
+            if ( ticket['issueCreator'] == 'unknown@kibble'
+                or ticket['issueCloser'] == 'unknown@kibble' ): # Gotta redo these!
+                parseIt = True
+                KibbleBit.pprint("[%s] Ticket contains erroneous data from a previous scan, reparsing" % key)
             # This is just noise!
             #KibbleBit.pprint("[%s] Ticket hasn't changed, ignoring..." % key)