Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Pr/workflow name as graph label #25148

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

Closed
wants to merge 8 commits into from

Conversation

shdev
Copy link
Contributor

@shdev shdev commented Nov 24, 2017

Q A
Branch? master
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets
License MIT
Doc PR

This pull request added an option to the workflow dumper command, which allows you to add a graph label with the workflow name to the output. Without the option nothing changed the behavior from before.

Example call:

bin/console workflow:dump <workflowname> --label=custom_label

@@ -37,6 +37,7 @@ protected function configure()
->setDefinition(array(
new InputArgument('name', InputArgument::REQUIRED, 'A workflow name'),
new InputArgument('marking', InputArgument::IS_ARRAY, 'A marking (a list of places)'),
new InputOption('workflow-name-label', null, null, 'Labels graph with workflow name'),
Copy link
Contributor

Choose a reason for hiding this comment

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

what about --label | --label="value" api? Using workflow name as default value.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thx for your comment thats a very good idea. I will change it.

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 updated my pull request now it's like you suggested

@Simperfit
Copy link
Contributor

Could you please rebase to fix the conflict ?

$options = array();
$label = $input->getOption('label');
if (null !== $label && '' !== trim($label)) {
$options = array('graph' => array('label' => $input->getOption('label')));
Copy link
Contributor

Choose a reason for hiding this comment

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

You should be using $label instead of $input->getOption('label').

Copy link
Contributor Author

Choose a reason for hiding this comment

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

thx, it's done

@fabpot
Copy link
Member

fabpot commented Dec 11, 2017

@shdev Can you rebase the pull request? You've merged master, but we don't merge pull requests with merge commits. I can help you do that if needed. Thanks.

@shdev
Copy link
Contributor Author

shdev commented Dec 11, 2017

@fabpot Thx. It would be nice, if you give me some hints to do the rebase. Sorry for the merges, I did the changes on Github.com and I'm not familiar with rebasing there

@fabpot fabpot force-pushed the pr/workflow_name_as_graph_label branch 2 times, most recently from 5468fa5 to a7875ed Compare December 11, 2017 23:01
@fabpot
Copy link
Member

fabpot commented Dec 11, 2017

I don't think it's possible to rebase from the UI. I see that you did everything with the web UI, so I've just done the rebase for you. I've downloaded your code and did a git rebase origin/master. Then, I fixed the conflicts for each commit (git rebase --continue when done), and that removed the merge commits.

@shdev
Copy link
Contributor Author

shdev commented Dec 11, 2017

Thank you @fabpot for the work, next time I use rebase

@fabpot fabpot force-pushed the pr/workflow_name_as_graph_label branch from a7875ed to 9d0dda3 Compare December 11, 2017 23:14
@fabpot
Copy link
Member

fabpot commented Dec 11, 2017

Thank you @shdev.

@fabpot fabpot closed this Dec 11, 2017
fabpot added a commit that referenced this pull request Dec 11, 2017
This PR was squashed before being merged into the 4.1-dev branch (closes #25148).

Discussion
----------

Pr/workflow name as graph label

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | yes
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets |
| License       | MIT
| Doc PR        |

This pull request added an option to the workflow dumper command, which allows you to add a graph label with the workflow name to the output. Without the option nothing changed the behavior from before.

Example call:

```bash
bin/console workflow:dump <workflowname> --label=custom_label
```

Commits
-------

0afce8d Pr/workflow name as graph label
@fabpot fabpot mentioned this pull request May 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants