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

[Workflow] Fixed support of multiple transitions with the same name.#21280

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

Merged
fabpot merged 1 commit intosymfony:3.2fromlyrixx:workflow-apply-multiple-name
Jan 18, 2017

Conversation

@lyrixx
Copy link
Member

@lyrixxlyrixx commentedJan 13, 2017
edited
Loading

QA
Branch?3.2
Bug fix?yes
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets-
LicenseMIT
Doc PR-

The previous behavior was underterministic because it took the first
transition during thecan and theapply method. But the "first"
does not mean anything. Now the workflown apply all possible transitions
with the same name.

@lyrixxlyrixx changed the title[Workflow] Fixed support of multiple transition with the same name.[Workflow] Fixed support of multiple transitions with the same name.Jan 13, 2017
@MamWayne
Copy link

Well done ;)

@lyrixxlyrixxforce-pushed theworkflow-apply-multiple-name branch 2 times, most recently fromecb2992 to53938a5CompareJanuary 13, 2017 22:36
Copy link
Member

@NyholmNyholm left a comment

Choose a reason for hiding this comment

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

I like this PR but I think it is missing one test.

Current marking: {a, b}.
You have the following transitions: t1: a->c, t2: b->d. (Both transitions named "foobar")

You should check that {a,b} -> ["foobar"] -> {c,d}.

@lyrixxlyrixxforce-pushed theworkflow-apply-multiple-name branch from53938a5 toe80b866CompareJanuary 14, 2017 16:42
@lyrixx
Copy link
MemberAuthor

@Nyholm I added a new test case.

The previous behavior was underterministic because it took the firsttransition during the `can` and the `apply` method. But the "first"does not mean anything. Now the workflow apply all possibletransitions with the same name.
@lyrixxlyrixxforce-pushed theworkflow-apply-multiple-name branch frome80b866 toedd5431CompareJanuary 14, 2017 16:43
@nicolas-grekas
Copy link
Member

👍

Copy link
Member

@NyholmNyholm left a comment

Choose a reason for hiding this comment

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

Awesome!

@fabpot
Copy link
Member

This is not strictly a bug fix. I understand that the current behavior is not the "right"/"expected" one, but I don't think this qualifies as something for 3.2. I would recommend to merge it in 3.3 instead.

@lyrixx Can you add a note in the component CHANGELOG about this change?

@lyrixx
Copy link
MemberAuthor

IMHO, it should go on 3.2 because it will be impossible for 3.2 users to have the correct behavior, and then when they will upgrade to 3.3, the behavior will be different than what they know.

@lyrixx
Copy link
MemberAuthor

Please note that there are not new visible interface, so it's a pure behavioral change

@nicolas-grekasnicolas-grekas added this to the3.2 milestoneJan 16, 2017
@fabpot
Copy link
Member

Thank you@lyrixx.

@fabpotfabpot merged commitedd5431 intosymfony:3.2Jan 18, 2017
fabpot added a commit that referenced this pull requestJan 18, 2017
…same name. (lyrixx)This PR was merged into the 3.2 branch.Discussion----------[Workflow] Fixed support of multiple transitions with the same name.| Q             | A| ------------- | ---| Branch?       | 3.2| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets | -| License       | MIT| Doc PR        | ----The previous behavior was underterministic because it took the firsttransition during the `can` and the `apply` method. But the "first"does not mean anything. Now the workflown apply all possible transitionswith the same name.Commits-------edd5431 [Workflow] Fixed support of multiple transition with the same name.
@lyrixxlyrixx deleted the workflow-apply-multiple-name branchJanuary 18, 2017 08:24
@fabpotfabpot mentioned this pull requestFeb 6, 2017
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@NyholmNyholmNyholm approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

3.2

Development

Successfully merging this pull request may close these issues.

6 participants

@lyrixx@MamWayne@nicolas-grekas@fabpot@Nyholm@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp