You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@atlas.apache.org by ma...@apache.org on 2021/03/12 15:55:48 UTC
[atlas] branch branch-2.0 updated: ATLAS-4086: python client fixes
- updated discovery.py to replace comma with colon as key/value separator
This is an automated email from the ASF dual-hosted git repository.
madhan pushed a commit to branch branch-2.0
in repository https://gitbox.apache.org/repos/asf/atlas.git
The following commit(s) were added to refs/heads/branch-2.0 by this push:
new 2183800 ATLAS-4086: python client fixes - updated discovery.py to replace comma with colon as key/value separator
2183800 is described below
commit 21838002109c049a195aaa55bdef6169a3cb736a
Author: epurn <47...@users.noreply.github.com>
AuthorDate: Fri Mar 12 10:54:59 2021 -0400
ATLAS-4086: python client fixes - updated discovery.py to replace comma with colon as key/value separator
Signed-off-by: Madhan Neethiraj <ma...@apache.org>
(cherry picked from commit 7eab2cb8d53ca4c86366e896119a1d7906ccb5b3)
---
intg/src/main/python/apache_atlas/client/discovery.py | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/intg/src/main/python/apache_atlas/client/discovery.py b/intg/src/main/python/apache_atlas/client/discovery.py
index b4fc0a8..a05573e 100644
--- a/intg/src/main/python/apache_atlas/client/discovery.py
+++ b/intg/src/main/python/apache_atlas/client/discovery.py
@@ -60,7 +60,7 @@ class DiscoveryClient:
self.client = client
def dsl_search(self, query):
- query_params = {DiscoveryClient.QUERY, query}
+ query_params = {DiscoveryClient.QUERY: query}
return self.client.call_api(DiscoveryClient.DSL_SEARCH, AtlasSearchResult, query_params)
@@ -70,7 +70,7 @@ class DiscoveryClient:
return self.client.call_api(DiscoveryClient.DSL_SEARCH, AtlasSearchResult, query_params)
def full_text_search(self, query):
- query_params = {DiscoveryClient.QUERY, query}
+ query_params = {DiscoveryClient.QUERY: query}
return self.client.call_api(DiscoveryClient.FULL_TEXT_SEARCH, AtlasSearchResult, query_params)
@@ -131,12 +131,12 @@ class DiscoveryClient:
return self.client.call_api(DiscoveryClient.GET_SUGGESTIONS, AtlasSuggestionsResult, query_params)
def get_saved_searches(self, user_name):
- query_params = {"user", user_name}
+ query_params = {"user": user_name}
return self.client.call_api(DiscoveryClient.GET_SAVED_SEARCHES, list, query_params)
def get_saved_search(self, user_name, search_name):
- query_params = {"user", user_name}
+ query_params = {"user": user_name}
return self.client.call_api(DiscoveryClient.GET_SAVED_SEARCH.format_path({'search_name': search_name}),
AtlasUserSavedSearch, query_params)
@@ -151,7 +151,7 @@ class DiscoveryClient:
return self.client.call_api(DiscoveryClient.DELETE_SAVED_SEARCH.format_path({'guid': guid}))
def execute_saved_search_with_user_name(self, user_name, search_name):
- query_params = {"user", user_name}
+ query_params = {"user": user_name}
return self.client.call_api(
DiscoveryClient.EXECUTE_SAVED_SEARCH_BY_NAME.format_path({'search_name': search_name}),