From 959ec76f3d1aa5c821d06f8471934e013100bf03 Mon Sep 17 00:00:00 2001 From: "Nickolaus D. Saint" Date: Tue, 23 Jan 2018 08:12:58 -0800 Subject: [PATCH] Bug fixes for search functionality A bug in CRUD for both Search Subjects and Entries caused parameters to be lost before the request was sent, resulting in errors from Globus Search. --- globus_sdk/search/client.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/globus_sdk/search/client.py b/globus_sdk/search/client.py index ec8dfa937..e4f33ed18 100644 --- a/globus_sdk/search/client.py +++ b/globus_sdk/search/client.py @@ -267,7 +267,7 @@ def get_subject(self, index_id, subject, **params): in the API documentation for details. """ index_id = safe_stringify(index_id) - params = merge_params(params, subject=subject) + merge_params(params, subject=subject) self.logger.info("SearchClient.get_subject({}, {}, ...)" .format(index_id, subject)) @@ -294,7 +294,7 @@ def delete_subject(self, index_id, subject, **params): in the API documentation for details. """ index_id = safe_stringify(index_id) - params = merge_params(params, subject=subject) + merge_params(params, subject=subject) self.logger.info("SearchClient.delete_subject({}, {}, ...)" .format(index_id, subject)) @@ -332,7 +332,7 @@ def get_entry(self, index_id, subject, entry_id=None, **params): in the API documentation for details. """ index_id = safe_stringify(index_id) - params = merge_params(params, subject=subject, entry_id=entry_id) + merge_params(params, subject=subject, entry_id=entry_id) self.logger.info("SearchClient.get_entry({}, {}, {}, ...)" .format(index_id, subject, entry_id)) @@ -439,7 +439,7 @@ def delete_entry(self, index_id, subject, entry_id=None, **params): in the API documentation for details. """ index_id = safe_stringify(index_id) - params = merge_params(params, subject=subject, entry_id=entry_id) + merge_params(params, subject=subject, entry_id=entry_id) self.logger.info("SearchClient.delete_entry({}, {}, {}, ...)" .format(index_id, subject, entry_id)) path = self.qjoin_path("v1/index", index_id, "entry")