File tree 2 files changed +18
-1
lines changed
src/simcore_service_catalog/api/rpc
2 files changed +18
-1
lines changed Original file line number Diff line number Diff line change 21
21
CatalogForbiddenError ,
22
22
CatalogItemNotFoundError ,
23
23
)
24
+ from simcore_service_catalog .db .repositories .groups import GroupsRepository
24
25
25
26
from ...db .repositories .services import ServicesRepository
26
27
from ...services import services_api
@@ -182,5 +183,17 @@ async def batch_get_my_services(
182
183
]
183
184
],
184
185
) -> list [MyServiceGet ]:
186
+ assert app .state .engine # nosec
187
+
188
+ # TODO: id not found?
189
+ services = await services_api .batch_get_my_services (
190
+ repo = ServicesRepository (app .state .engine ),
191
+ groups_repo = GroupsRepository (app .state .engine ),
192
+ product_name = product_name ,
193
+ user_id = user_id ,
194
+ ids = ids ,
195
+ )
196
+
197
+ assert [(sv .key , sv .release .version ) for sv in services ] == ids # nosec
185
198
186
- raise NotImplementedError
199
+ return services
Original file line number Diff line number Diff line change @@ -256,3 +256,7 @@ async def test_batch_get_my_services(
256
256
},
257
257
]
258
258
)
259
+
260
+ # TODO: test user has no access to one and needs to ask owner (NOTE: owner can be a group? )
261
+ # TODO: test user has no access to entire history
262
+ #
You can’t perform that action at this time.
0 commit comments