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/09/09 14:04:15 UTC
[kibble-scanners] branch master updated (2e67be0 -> 6aff99d)
This is an automated email from the ASF dual-hosted git repository.
humbedooh pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/kibble-scanners.git.
from 2e67be0 prefer full name over username, if available
new fdd5984 fix key errors
new 6aff99d bump default limits for tone/mood analysis
The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
src/plugins/scanners/jira.py | 6 +++---
src/plugins/scanners/ponymail-tone.py | 4 ++--
2 files changed, 5 insertions(+), 5 deletions(-)
[kibble-scanners] 02/02: bump default limits for tone/mood analysis
Posted by hu...@apache.org.
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
commit 6aff99ddcc2ed72149cb0fe778b5b7c7e3d5ec7b
Author: Daniel Gruno <hu...@apache.org>
AuthorDate: Sun Sep 9 16:03:50 2018 +0200
bump default limits for tone/mood analysis
---
src/plugins/scanners/ponymail-tone.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/plugins/scanners/ponymail-tone.py b/src/plugins/scanners/ponymail-tone.py
index 98b3124..31cafbe 100644
--- a/src/plugins/scanners/ponymail-tone.py
+++ b/src/plugins/scanners/ponymail-tone.py
@@ -31,7 +31,7 @@ import plugins.utils.tone
title = "Tone/Mood Scanner plugin for Apache Pony Mail"
version = "0.1.0"
ROBITS = r"(git|gerrit|jenkins|hudson|builds|bugzilla)@"
-MAX_COUNT = 50
+MAX_COUNT = 250
def accepts(source):
""" Test if source matches a Pony Mail archive """
@@ -91,7 +91,7 @@ def scan(KibbleBit, source):
index=KibbleBit.dbname,
doc_type="email",
body = query,
- size = 100
+ size = MAX_COUNT * 4
)
ec = 0
hits = []
[kibble-scanners] 01/02: fix key errors
Posted by hu...@apache.org.
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
commit fdd5984370cf064fe3774c06ec92c3d1eb13f2d6
Author: Daniel Gruno <hu...@apache.org>
AuthorDate: Sun Sep 9 16:03:18 2018 +0200
fix key errors
sometimes the assignee/reporter is set but no email address is
available, so just try to get it non-fatally.
---
src/plugins/scanners/jira.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/plugins/scanners/jira.py b/src/plugins/scanners/jira.py
index 46961ad..fd8209f 100644
--- a/src/plugins/scanners/jira.py
+++ b/src/plugins/scanners/jira.py
@@ -156,12 +156,12 @@ def scanTicket(KibbleBit, key, u, source, creds, openTickets):
comments = 0
if 'comment' in tjson['fields'] and tjson['fields']['comment']:
comments = tjson['fields']['comment']['total']
- assignee = tjson['fields']['assignee']['emailAddress'] if tjson['fields']['assignee'] else None
- creator = tjson['fields']['reporter']['emailAddress'] if tjson['fields']['reporter'] else None
+ assignee = tjson['fields']['assignee'].get('emailAddress') if tjson['fields'].get('assignee') else None
+ creator = tjson['fields']['reporter'].get('emailAddress') if tjson['fields'].get('reporter') else None
title = tjson['fields']['summary']
if closer:
#print("Parsing closer")
- closerEmail = closer['emailAddress'].replace(" dot ", ".", 10).replace(" at ", "@", 1)
+ closerEmail = closer.get('emailAddress', 'unknown@kibble').replace(" dot ", ".", 10).replace(" at ", "@", 1)
displayName = closer['displayName']
if displayName and len(displayName) > 0:
# Add to people db