Conversation
f35b60c to
02987a1
Compare
4d05257 to
b781d3c
Compare
b528eea to
37dc894
Compare
|
I just had a look at the macOS failures to see I could offer any help........Ooooof. |
f4fc283 to
c4b0ae2
Compare
|
Tests will fail until other branches merged - this commit's tests shows that they should pass after those are merged. |
a8c9dae to
d960a8a
Compare
|
@wxtim, are the cylc/release-actions changes required for this in place? If so, lets run CI with the new config to make sure it's working. |
I hadn't expected cylc/cylc-flow#7068 to be merged, so I was merrily pushing changes to it. |
|
Merged: cylc/cylc-flow#7232 Kicking tests... |
|
Tests ran (and passed!), but coverage didn't, likely due to the skip-ci comment! |
|
@oliver-sanders tests now passing and coverage is covering - it's still low, but it is working. |
|
|
||
| - name: Coverage report | ||
| run: | | ||
| coverage combine . |
There was a problem hiding this comment.
The cylc-flow equivalent uses the -a option which sounds reasonable.
|
Couple of small things:
Here's what I'm thinking: diff --git a/README.md b/README.md
index a9f3e13a7..360f5ab68 100644
--- a/README.md
+++ b/README.md
@@ -44,6 +44,12 @@ This repository provides the following components of the Cylc system.
server and handles authentication. It is a
[JupyterHub](https://github.com/jupyterhub/jupyterhub) server.
+* Cylc Review
+
+ A Hub "service" which runs a public web server for viewing user's workflows.
+ It is a Jupyter Hub [JupyterHub](https://github.com/jupyterhub/jupyterhub)
+ service.
+
## Installation
@@ -240,6 +246,23 @@ By default the Cylc part of the UI Server log is written to
TODO: Link to Jupyter Server logging_config docs when published
-->
+### Review
+
+To enable the Cylc Review web service, register the service using
+`JupyterHub.services` and provide users access to it using
+`JupyterHub.load_roles`:
+
+```python
+from cylc.uiserver.ws import get_review_service_config
+c.JupyterHub.services = [get_review_service_config()]
+c.JupyterHub.load_roles = [
+ {
+ "name": "user",
+ "scopes": ["self", "access:services!cylc-review"],
+ },
+]
+```
+
### UI
The UI can be configured via the "Settings" option in the Dashboard.
diff --git a/cylc/uiserver/jupyter_config.py b/cylc/uiserver/jupyter_config.py
index 398a987b9..afde2cb02 100644
--- a/cylc/uiserver/jupyter_config.py
+++ b/cylc/uiserver/jupyter_config.py
@@ -24,7 +24,6 @@ from cylc.uiserver import (
)
from cylc.uiserver.app import USER_CONF_ROOT
from cylc.uiserver.authorise import CylcAuthorizer
-from cylc.uiserver.ws import get_review_service_config
# the command the hub should spawn (i.e. the cylc uiserver itself)
@@ -105,8 +104,3 @@ c.CylcUIServer.logging_config = {
# Lab as a result of being granted the ``access:servers`` permission in Jupyter
# Hub.
c.ServerApp.authorizer_class = CylcAuthorizer
-
-
-# Setup Cylc Review - uncomment to start Cylc review with Cylc Hub
-# n.b. if installed with pip optional dependence [review] must be specified.
-# c.JupyterHub.services = [get_review_service_config()]
diff --git a/setup.cfg b/setup.cfg
index 9c6c3f639..53895d491 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -46,11 +46,13 @@ install_requires =
# don't pin versions, we will get whatever cylc-flow needs, and not the
# bleeding-edge version.
cylc-flow==8.7.*
+
ansimarkup>=1.0.0
+ cherrypy
jupyter_server>=2.13.0
- requests
packaging
psutil
+ requests
tornado>=6.5.0
traitlets>=5.2.1 # required for logging_config (5.2.0 had bugs)
@@ -71,7 +73,7 @@ cylc.command =
gui = cylc.uiserver.scripts.gui:main
hub = cylc.uiserver.scripts.hub:main [hub]
hubapp = cylc.uiserver.scripts.hubapp:main [hub]
- review = cylc.uiserver.scripts.review:main [review]
+ review = cylc.uiserver.scripts.review:main
[options.extras_require]
hub =
@@ -96,9 +98,6 @@ tests =
towncrier>=24.7.0
types-setuptools
types-requests>2
-review =
- cherrypy
all =
%(hub)s
%(tests)s
- %(review)s |
|
@oliver-sanders - Do your changes work? I can't make them do so! |
|
??? |
|
Adjust scope to (looks like you have to redefine the scope for the filter?) |
0c3b64e to
65d5cea
Compare
I believe that I have now fixed this. |




Closes cylc/cylc-flow#5937 and cylc/cylc-flow#3441
Requires cylc/cylc-flow#7068 to work correctly (else
cylc reviewis labelled a dead-end).Sort of requires cylc/release-actions#136 To run coverage later.
Check List
CONTRIBUTING.mdand added my name as a Code Contributor.setup.cfg(andconda-environment.ymlif present).Test working can be demonstrated by adding this to CI.
https://github.com/cylc/cylc-uiserver/actions/runs/19763672460/job/56631293468
?.?.xbranch.