Skip to content

Commit

Permalink
update refs to be default_type, not default_property; pass in searchV…
Browse files Browse the repository at this point in the history
…iewDefault in SearchView, re #11546
  • Loading branch information
whatisgalen committed Oct 15, 2024
1 parent 40440ce commit 5eab3e4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 2 additions & 4 deletions arches/app/search/components/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,8 @@ def get_searchview_name(self, default_type=None):
return searchview_component_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
)
default_type = kwargs.get("default_type", None)
searchview_component_name = self.get_searchview_name(default_type=default_type)
return self.get_filter(searchview_component_name)

def create_search_query_dict(self, key_value_pairs: List[Tuple[str, Any]]):
Expand Down
4 changes: 3 additions & 1 deletion arches/app/views/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,9 @@ def get(self, request):
)
geocoding_providers = Geocoder.objects.all()
search_component_factory = SearchFilterFactory(request)
searchview_instance = search_component_factory.get_searchview_instance()
searchview_instance = search_component_factory.get_searchview_instance(
default_type="searchViewDefault"
)
search_components = searchview_instance.get_searchview_filters()

datatypes = DDataType.objects.all()
Expand Down

0 comments on commit 5eab3e4

Please sign in to comment.