Skip to content

Commit

Permalink
review ammends - remove CHANGES.md entry and refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Dawson committed Sep 12, 2023
1 parent eb9bd7c commit 8972078
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 5 deletions.
4 changes: 0 additions & 4 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@ $ towncrier create <PR-number>.<break|feat|fix>.md --content "Short description"

<!-- towncrier release notes start -->

### 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)
Expand Down
21 changes: 20 additions & 1 deletion cylc/uiserver/resolvers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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: <err code>
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,
Expand Down

0 comments on commit 8972078

Please sign in to comment.