Skip to content
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

chore: Make graph visible in GUI, and show a proper error message #66

Merged
merged 1 commit into from
Jan 12, 2022

Conversation

jorisros
Copy link
Contributor

Related to issue #65

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? yes/no
Fixed tickets #65

@@ -339,9 +339,14 @@ private function getVisualization($workflow, $format): string
throw new \InvalidArgumentException($this->trans('workflow_cmd_not_found', ['dot']));
}

$workflowRepository = $this->repository->find($workflow);

if ($workflowRepository && !$workflowRepository['enabled']) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Possibly rewrite as !($workflowRepository['enabled'] ?? false)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did split it up in two messengers, so it become more clear for enduser

@@ -114,3 +114,4 @@ workflow_gui: 'Workflow GUI'
workflow_problem_creating_workflow_invalid_characters: 'Please use only these characters: "a-z", "A-Z" and "_"'
workflow_gui_workflow_with_name_already_exists: 'Workflow with bane already exists'
workflow_gui_clone: 'Clone'
workflow_gui_enable_message: 'Please enable and save the workflow, before you can see the graph'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This sentence is structurally incorrect. Suggestion:
Please enable and save the workflow to display graph visualization.

or something similar.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah my bad English again, thank you

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see an update yet.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kjkooistra-youwe should be oke now

@jorisros jorisros merged commit dd74727 into YouweGit:master Jan 12, 2022
@jorisros jorisros deleted the fix/65 branch January 12, 2022 12:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants