Skip to content

Commit

Permalink
resolve race conditions between searchfilter factory and searchview, re
Browse files Browse the repository at this point in the history
  • Loading branch information
whatisgalen committed Nov 20, 2024
1 parent 9f46aa9 commit 9abbbba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 1 addition & 3 deletions arches/app/search/components/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,7 @@ def __init__(self, request=None, user=None):
self.request.GET if self.request.method == "GET" else self.request.POST
)
request_object = request_object.dict()
self.search_request = self.create_search_query_dict(
list(request_object.items())
)
self.search_request = request_object

def get_filter(self, componentname):
if componentname in self.search_filters:
Expand Down
1 change: 1 addition & 0 deletions arches/app/search/components/base_search_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ def __init__(
item.componentname, float("inf")
),
)
self.search_request = self.create_query_dict(self.search_request)

@property
def required_search_filters(self):
Expand Down

0 comments on commit 9abbbba

Please sign in to comment.