-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make TUI refuse to show non-installed workflows #4748
Make TUI refuse to show non-installed workflows #4748
Conversation
6d3e772
to
d0a3f1d
Compare
d0a3f1d
to
a142675
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My observations from testing out:
- If a workflow dir does not exist, TUI refuses to load and instead you get a message
UserInputError: Path does not exist: ~/cylc-run/dir
- If the dir does exist in
~/cylc-run
, but does not contain a flow.cylc or suite.rc, you get the "workflow not found" message inside TUI as expected - However, you still have the option to play it in the menu when you press Enter, only for it come up with an error
WorkflowFilesError: No flow.cylc or suite.rc in ~/cylc-run/dir
- Also, if the dir is a parent of a run dir, it says "workflow not found" inside TUI, which is perhaps misleading
Co-authored-by: Ronnie Dutta <[email protected]>
@MetRonnie - Can you clarify exactly what you mean in #4715 by |
I can't remember. Either it was a non-existent folder, which means the |
Can it be the parent of a run-dir? |
Not sure what you mean. Here is an example of what I was talking about:
|
@MetRonnie - using the equivalent of your example I get Cylc TUI saying
By the point that the logic I've inserted takes place any input has been expanded to a full workflow name. Isn't this the same expansion behaviour as the rest of the CLI? |
Ah, I oversimplified my example. Try this instead (another level in the directory structure):
|
My observations from testing out:
Good
Good
Fine IMO. I don't think we need to obsess about these niche cases.
Fine IMO, same result as you would get with any other Cylc command. |
Perhaps "No flow.cylc or suite.rc in ~/cylc-run/dir" would be better than "Workflow not found"? Can just use |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have manually tested this, working well for me.
…hub.com:wxtim/cylc into Make_TUI_refuse_to_show_non-installed_workflows * 'Make_TUI_refuse_to_show_non-installed_workflows' of github.com:wxtim/cylc: Update cylc/flow/tui/app.py
These changes close #4715
Summary
When Cylc TUI is started it should check whether the workflow has actually been installed before doing anything to display it.
Requirements check-list
CONTRIBUTING.md
and added my name as a Code Contributor.setup.cfg
andconda-environment.yml
.