cylc / cylc-uiserver

A Jupyter Server extension that serves the cylc-ui web application for monitoring and controlling Cylc workflows.
https://cylc.org
GNU General Public License v3.0
15 stars 18 forks source link

Cylc hub sort ordering doesn't work for all columns #577

Closed ColemanTom closed 7 months ago

ColemanTom commented 7 months ago

NOTE: From what I can see, the below report is using cylc-uiserver-base=1.4.3 and cylc-uiserver-hub-base=1.4.3 (latest versions) and cylc-ui=2.3.0.

Description

I have accessed the Cylc Hub via the UI-server, and the default listing shows this information in the Last activity column:

image

If I click on the sorting for that column, I get:

image

Click again I get zero changes,

image

Click again and I get the original order

image

I cannot figure out how it is sorting. It doesn't seem to be by the numeric number, nor as a datetime offset. For example, in the initial/final view, I can see 9 days, 11 minutes, 9 days. In the middle views, I can see Never, 5 days, Never.

Expected Behaviour

I would personally expect a datetime offset sort order.

hjoliver commented 7 months ago

Looks like this problem: https://github.com/jupyterhub/jupyterhub/issues/3816

Merged to JupyterHub main branch recently, but not released yet.

oliver-sanders commented 7 months ago

Yep, the page you are looking at comes from Jupyter Hub, not Cylc.

Note, that "Cylc Hub" is really just a configuration of Jupyter Hub that is configured to launch the Cylc UI Server by default. We expose this behind the Cylc CLI to make it more approachable to Cylc users, but it's just Jupyter Hub really.

In the future we add some Jupyter Hub services to the Cylc Hub configuration, but it will always be possible to deploy the Cylc UI Server via vanilla Jupyter Hub by tweaking a couple of configurations as necessary.