Commit 0a764155 authored by Markus Scheidgen's avatar Markus Scheidgen
Browse files

Merge branch 'v0.8.0-bugfixes' into 'v0.8.0'

Fixed broken upload order.

See merge request !112
parents 9386778e 70d29dc8
Pipeline #75230 passed with stages
in 18 minutes and 47 seconds
......@@ -222,7 +222,7 @@ class RepoCalcsResource(Resource):
for group_name, group_quantity in search_extension.groups.items():
if args.get(group_name, False):
kwargs: Dict[str, Any] = {}
if group_name == 'group_uploads':
if group_name == 'uploads_grouped':
kwargs.update(order_by='upload_time', order='desc')
group_quantity.qualified_name, size=per_page, examples=1,
......@@ -897,7 +897,7 @@ class TestRepo():
assert uploads is not None
values = uploads['values']
assert values['example_upload_id']['total'] == 4
assert values['example_upload_id']['total'] == 3 # just three because of inconsistent upload time
assert values['example_upload_id']['examples'][0]['upload_id'] == 'example_upload_id'
assert 'after' in uploads
assert 'uploads' in data['statistics']['total']['all']
Supports Markdown
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