File tree Expand file tree Collapse file tree 2 files changed +18
-1
lines changed
src/simcore_service_catalog/api/rpc Expand file tree Collapse file tree 2 files changed +18
-1
lines changed Original file line number Diff line number Diff line change 2121 CatalogForbiddenError ,
2222 CatalogItemNotFoundError ,
2323)
24+ from simcore_service_catalog .db .repositories .groups import GroupsRepository
2425
2526from ...db .repositories .services import ServicesRepository
2627from ...services import services_api
@@ -182,5 +183,17 @@ async def batch_get_my_services(
182183 ]
183184 ],
184185) -> 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
185198
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(
256256 },
257257 ]
258258 )
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