Skip to content

Commit

Permalink
Patch in @querystring-search that avoid to search through all the sit…
Browse files Browse the repository at this point in the history
…e if there is an absolutePath criteria with non existing UID and b_size==1
  • Loading branch information
cekk committed Mar 18, 2024
1 parent 1439e55 commit a1066c6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def cleanup_query(self, query, b_size):
if (
index == "path"
and operation # noqa
== "plone.app.querystring.operation.string.absolutePath"
== "plone.app.querystring.operation.string.absolutePath" # noqa
):
criteria_value = criteria.get("v", "").split("::")
value = criteria_value[0]
Expand Down
2 changes: 0 additions & 2 deletions src/redturtle/volto/tests/test_querystringsearch.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@
from plone.restapi.testing import RelativeSession
from redturtle.volto.testing import REDTURTLE_VOLTO_API_FUNCTIONAL_TESTING
from transaction import commit
from urllib.parse import quote

import json
import unittest


Expand Down

0 comments on commit a1066c6

Please sign in to comment.