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/11 01:00:06 UTC

[kibble] branch master updated: The object is deleted in the delete_by_query, so...skip this

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 4725175  The object is deleted in the delete_by_query, so...skip this
4725175 is described below

commit 47251754da75e0f3c1b7c446fdc7a9b7fcecdb36
Author: Daniel Gruno <hu...@apache.org>
AuthorDate: Tue Jun 11 02:59:53 2019 +0200

    The object is deleted in the delete_by_query, so...skip this
---
 api/pages/sources.py | 2 --
 1 file changed, 2 deletions(-)

diff --git a/api/pages/sources.py b/api/pages/sources.py
index 792fbe0..0a46756 100644
--- a/api/pages/sources.py
+++ b/api/pages/sources.py
@@ -272,8 +272,6 @@ def run(API, environ, indata, session):
                 else:
                 # For ES <= 5.x, just remove from the main index
                     session.DB.ES.delete_by_query(index=session.DB.dbname, body = {'query': {'match': {'sourceID': sourceID}}})
-                # Delete the object itself
-                session.DB.ES.delete(index=session.DB.dbname, doc_type="source", id = sourceID)
                 yield json.dumps({'message': "Source deleted"})
             else:
                 raise API.exception(404, "No such source item")