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 2019/06/10 19:55:02 UTC
[kibble] branch master updated: Kludge for ES >= 7.x scroll_size
value
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.git
The following commit(s) were added to refs/heads/master by this push:
new 5da68be Kludge for ES >= 7.x scroll_size value
5da68be is described below
commit 5da68bee10610b09ec7922c435f6068817d87d28
Author: Daniel Gruno <hu...@apache.org>
AuthorDate: Mon Jun 10 21:54:50 2019 +0200
Kludge for ES >= 7.x scroll_size value
This should ideally be worked into the ES plugin and handled
there, instead of in each page..
---
api/pages/code/evolution.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/api/pages/code/evolution.py b/api/pages/code/evolution.py
index 3d31bfd..0c18490 100644
--- a/api/pages/code/evolution.py
+++ b/api/pages/code/evolution.py
@@ -131,6 +131,8 @@ def run(API, environ, indata, session):
)
sid = res['_scroll_id']
scroll_size = res['hits']['total']
+ if type(scroll_size) is dict:
+ scroll_size = scroll_size['value'] # ES >= 7.x
timeseries = []
tstmp = {}