From 4ebeb0d3a5a8af4a8e6eb7a153e0af05e4d76f1f Mon Sep 17 00:00:00 2001 From: Galen Date: Tue, 15 Oct 2024 00:15:01 -0700 Subject: [PATCH] expect kwargs in get_searchview_instance(), pass default_property to get_searchview_name, re #11546 --- arches/app/search/components/base.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/arches/app/search/components/base.py b/arches/app/search/components/base.py index b0b6e06cf46..d8607abd27e 100644 --- a/arches/app/search/components/base.py +++ b/arches/app/search/components/base.py @@ -80,7 +80,7 @@ def get_filter(self, componentname): else: return None - def get_searchview_name(self): + def get_searchview_name(self, default_type=None): if not self.request: searchview_component_name = None elif self.request.method == "POST": @@ -101,8 +101,11 @@ def get_searchview_name(self): return searchview_component_name - def get_searchview_instance(self): - searchview_component_name = self.get_searchview_name() + def get_searchview_instance(self, **kwargs): + default_property = kwargs.get("default_property", None) + searchview_component_name = self.get_searchview_name( + default_property=default_property + ) return self.get_filter(searchview_component_name) def create_search_query_dict(self, key_value_pairs: List[Tuple[str, Any]]):