Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
nomad-lab
nomad-FAIR
Commits
0a764155
Commit
0a764155
authored
May 19, 2020
by
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
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
nomad/app/api/repo.py
View file @
0a764155
...
...
@@ -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'
)
search_request
.
quantity
(
group_quantity
.
qualified_name
,
size
=
per_page
,
examples
=
1
,
...
...
tests/app/test_api.py
View file @
0a764155
...
...
@@ -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'
]
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment