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 2017/10/22 16:27:35 UTC
[kibble-scanners] branch master updated: use kibblebit.append here,
properly upsert docs
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 a6aadbf use kibblebit.append here, properly upsert docs
a6aadbf is described below
commit a6aadbfd3345bb0151a1c86055e73569b42b5960
Author: Daniel Gruno <hu...@apache.org>
AuthorDate: Sun Oct 22 18:27:28 2017 +0200
use kibblebit.append here, properly upsert docs
---
src/plugins/scanners/jira.py | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/src/plugins/scanners/jira.py b/src/plugins/scanners/jira.py
index 27904a9..2f45d56 100644
--- a/src/plugins/scanners/jira.py
+++ b/src/plugins/scanners/jira.py
@@ -160,9 +160,10 @@ def scanTicket(KibbleBit, key, u, source, creds, openTickets):
'name': displayName,
'email': closerEmail,
'organisation': source['organisation'],
- 'id' :pid
+ 'id' :pid,
+ 'upsert': True
}
- KibbleBit.index('person', pid, { 'doc': jsp, 'doc_as_upsert': True})
+ KibbleBit.append('person', jsp)
if creator:
creator = creator.replace(" dot ", ".", 10).replace(" at ", "@", 1)
@@ -174,9 +175,10 @@ def scanTicket(KibbleBit, key, u, source, creds, openTickets):
'name': displayName,
'email': creator,
'organisation': source['organisation'],
- 'id' :pid
+ 'id' :pid,
+ 'upsert': True
}
- KibbleBit.index('person', pid, { 'doc': jsp, 'doc_as_upsert': True})
+ KibbleBit.append('person', jsp)
jso = {
'id': dhash,
--
To stop receiving notification emails like this one, please contact
['"commits@kibble.apache.org" <co...@kibble.apache.org>'].