Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed

Conversation

@shdev
Copy link
Contributor

@shdevshdev commentedNov 24, 2017
edited
Loading

QA
Branch?master
Bug fix?no
New feature?yes
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets
LicenseMIT
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

ro0NL reacted with thumbs up emoji
->setDefinition(array(
newInputArgument('name', InputArgument::REQUIRED,'A workflow name'),
newInputArgument('marking', InputArgument::IS_ARRAY,'A marking (a list of places)'),
newInputOption('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
ContributorAuthor

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
ContributorAuthor

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
ContributorAuthor

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

@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
ContributorAuthor

@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

@fabpotfabpotforce-pushed thepr/workflow_name_as_graph_label branch 2 times, most recently from5468fa5 toa7875edCompareDecember 11, 2017 23:01
@fabpot
Copy link
Member

fabpot commentedDec 11, 2017
edited
Loading

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 agit 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
ContributorAuthor

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

@fabpotfabpotforce-pushed thepr/workflow_name_as_graph_label branch froma7875ed to9d0dda3CompareDecember 11, 2017 23:14
@fabpot
Copy link
Member

Thank you@shdev.

shdev reacted with hooray emoji

@fabpotfabpot closed thisDec 11, 2017
fabpot added a commit that referenced this pull requestDec 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:```bashbin/console workflow:dump <workflowname> --label=custom_label```Commits-------0afce8d Pr/workflow name as graph label
@fabpotfabpot mentioned this pull requestMay 7, 2018
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@fabpotfabpotfabpot approved these changes

+2 more reviewers

@ro0NLro0NLro0NL left review comments

@SimperfitSimperfitSimperfit approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Projects

None yet

Milestone

4.1

Development

Successfully merging this pull request may close these issues.

7 participants

@shdev@Simperfit@fabpot@ro0NL@nicolas-grekas@xabbuh@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp