Skip to content

Commit ee472d8

Browse files
small cleanup
1 parent b739492 commit ee472d8

File tree

2 files changed

+13
-7
lines changed

2 files changed

+13
-7
lines changed

services/web/server/src/simcore_service_webserver/director_v2/_computations_rest.py renamed to services/web/server/src/simcore_service_webserver/director_v2/_controller/_computations_rest.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@
1818
from servicelib.request_keys import RQT_USERID_KEY
1919
from servicelib.rest_constants import RESPONSE_MODEL_POLICY
2020

21-
from .._meta import API_VTAG as VTAG
22-
from ..constants import RQ_PRODUCT_KEY
23-
from ..login.decorators import login_required
24-
from ..security.decorators import permission_required
25-
from . import _computations_service
21+
from ..._meta import API_VTAG as VTAG
22+
from ...constants import RQ_PRODUCT_KEY
23+
from ...login.decorators import login_required
24+
from ...security.decorators import permission_required
25+
from .. import _computations_service
2626
from ._computations_rest_schema import (
2727
ComputationRunListQueryParams,
2828
ComputationTaskListQueryParams,

services/web/server/src/simcore_service_webserver/director_v2/_computations_rest_schema.py renamed to services/web/server/src/simcore_service_webserver/director_v2/_controller/_computations_rest_schema.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,19 @@
66

77
### Computation Run
88

9-
109
ComputationRunListOrderParams = create_ordering_query_model_class(
1110
ordering_fields={
1211
"submitted_at",
12+
"started_at",
13+
"ended_at",
14+
"state",
1315
},
1416
default=OrderBy(field=IDStr("submitted_at")),
15-
ordering_fields_api_to_column_map={"submitted_at": "created"},
17+
ordering_fields_api_to_column_map={
18+
"submitted_at": "created",
19+
"started_at": "started",
20+
"ended_at": "ended",
21+
},
1622
)
1723

1824

0 commit comments

Comments
 (0)