Commit df7dc0eb authored by Jérome Perrin's avatar Jérome Perrin

hal_json_style: generate worklist query search text sorted for easier testing

for erp5_web_renderjs_ui_test:testFunctionalRJSPage failures with
PYTHONHASHSEED 347
parent 14111ea2
...@@ -2359,7 +2359,8 @@ def calculateHateoas(is_portal=None, is_site_root=None, traversed_document=None, ...@@ -2359,7 +2359,8 @@ def calculateHateoas(is_portal=None, is_site_root=None, traversed_document=None,
checkPermission = portal.Base_checkPermission checkPermission = portal.Base_checkPermission
work_list = [] work_list = []
for action in action_list: for action in action_list:
query = sql_catalog.buildQuery(action['query'])\ # sort the query for easier testing
query = sql_catalog.buildQuery(OrderedDict(sorted(action['query'].items())))\
.asSearchTextExpression(sql_catalog) .asSearchTextExpression(sql_catalog)
if (action['local_roles']): if (action['local_roles']):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment