From 68804b93d0354f7289f2767f849491a62ea8bcd4 Mon Sep 17 00:00:00 2001 From: Tim Pillinger <26465611+wxtim@users.noreply.github.com> Date: Mon, 4 Sep 2023 10:08:51 +0100 Subject: [PATCH] Allow users to access `cylc play --upgrade`. --- CHANGES.md | 3 +++ cylc/uiserver/schema.py | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/CHANGES.md b/CHANGES.md index f9691884..40aaa8b9 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -30,6 +30,9 @@ Upgraded to Jupyter Server 2.7+ and Jupyter Hub 4.0+. Note cylc-uiserver 1.3 remains supported and compatible with cylc-flow 8.2 for those not ready to make the jump just yet. +[#490](https://github.com/cylc/cylc-uiserver/pull/490) - Make ``cylc play --upgrade`` +available from the GUI. + ------------------------------------------------------------------------------- ## __cylc-uiserver-1.3.0 (Released 2023-07-21)__ diff --git a/cylc/uiserver/schema.py b/cylc/uiserver/schema.py index c49eb42b..12251a0e 100644 --- a/cylc/uiserver/schema.py +++ b/cylc/uiserver/schema.py @@ -222,6 +222,12 @@ class Arguments: on the `cylc play` command line if they need to be overridden. ''') ) + upgrade = graphene.Boolean( + default_value=False, + description=sstrip(''' + Upgrade the workflow database. + ''') + ) result = GenericScalar()