diff --git a/CHANGES.md b/CHANGES.md index 8ad58a94..288d885c 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -12,10 +12,6 @@ $ towncrier create ..md --content "Short description" -### Enhancements - -[#493](https://github.com/cylc/cylc-uiserver/pull/493) - Added mutation for scanning filesystem. - ## cylc-uiserver-1.3.1 (Released 2023-09-08) [Updated cylc-ui to 2.1.0](https://github.com/cylc/cylc-ui/blob/master/CHANGES.md) diff --git a/cylc/uiserver/resolvers.py b/cylc/uiserver/resolvers.py index 9f0d1809..7b9fe2b1 100644 --- a/cylc/uiserver/resolvers.py +++ b/cylc/uiserver/resolvers.py @@ -574,7 +574,26 @@ async def service( kwargs: Dict[str, Any], ) -> List[Union[bool, str]]: - return await self.get_service(command, kwargs, workflows) + if command == 'clean': # noqa: + return await Services.clean( + workflows, + kwargs, + self.workflows_mgr, + log=self.log, + executor=self.executor + ) + elif command == 'play': + return await Services.play( + workflows, + kwargs, + self.workflows_mgr, + log=self.log + ) + elif command == 'scan': + return await Services.scan( + kwargs, + self.workflows_mgr + ) async def subscription_service( self,