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] Introduce concept of SupportStrategyInterface#21334

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

Conversation

@lyrixx
Copy link
Member

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

->end()
->scalarNode('initial_place')->defaultNull()->end()
->scalarNode('support_strategy')
->cannotBeEmpty()
Copy link
Member

Choose a reason for hiding this comment

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

This looks wrong to me in case you are using thesupports option.

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

1/ cannotBeEmpty != required
2/ I have added tests on it ;)

Copy link
Member

Choose a reason for hiding this comment

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

Oops, you're right.

Copy link
Member

Choose a reason for hiding this comment

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

@lyrixx this forbids resetting it to null in a subsequent config file though

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

I saw your comment in the previous PR. But I don't see a valid use case here.

@lyrixxlyrixxforce-pushed theworkflow-SupportStrategyInterface branch from710c29e to3c0e49fCompareJanuary 18, 2017 14:42
<xsd:elementname="marking-store"type="marking_store" />
<xsd:elementname="support"type="xsd:string"minOccurs="1"maxOccurs="unbounded" />
<xsd:elementname="support"type="xsd:string"minOccurs="0"maxOccurs="unbounded" />
<xsd:elementname="support-strategy"type="xsd:string"minOccurs="0"maxOccurs="1" />
Copy link
Member

Choose a reason for hiding this comment

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

this should be an attribute, not a child element, as having several ones does not make any sense

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

minOccurs="0" maxOccurs="1" it's already bounded. so it's not possible to have many element.
I did not set an attribute to be consistent withsupport.

Copy link
Member

Choose a reason for hiding this comment

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

but this is inconsistent withall configuration we have in Symfony. We use a child element only for complex values (array nodes in the Configuration class)

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

ok, I will update it ;)

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

Fixed.

@lyrixxlyrixxforce-pushed theworkflow-SupportStrategyInterface branch from3c0e49f to134a58bCompareJanuary 18, 2017 16:03
@lyrixx
Copy link
MemberAuthor

lyrixx commentedJan 18, 2017
edited
Loading

👍 (for the initial part)

@stof
Copy link
Member

👍

-----

* Deprecated class name support in`WorkflowRegistry::add()` as second parameter.
Wrap the class name in an instance of ClassInstanceSupportStrategy instead.
Copy link
Member

Choose a reason for hiding this comment

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

You should probably mention the newsupport_strategy option as well (not sure if it makes sense to do it here as it's related to the config in FrameworkBundle).

Copy link
Member

Choose a reason for hiding this comment

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

Actually, this should be added to the docs instead.

@fabpot
Copy link
Member

Thank you@lyrixx.

@fabpot
Copy link
Member

Thank you@andesk for the initial work on this.

@fabpotfabpot merged commit134a58b intosymfony:masterJan 18, 2017
fabpot added a commit that referenced this pull requestJan 18, 2017
…ce (andesk, lyrixx)This PR was merged into the 3.3-dev branch.Discussion---------- [Workflow] Introduce concept of SupportStrategyInterface| Q             | A| ------------- | ---| Branch?       | master| Bug fix?      | no| New feature?  | yes| BC breaks?    | no| Deprecations? | yes| Tests pass?   | yes| Fixed tickets |#20751| License       | MIT| Doc PR        | -Commits-------134a58b [Workflow] Fixed code and tests1843012 [Workflow] Introduce concept of SupprtStrategyInterface to allow other support checks than class instance
@andesk
Copy link
Contributor

👍

Thank you for taking over,@lyrixx :)

@lyrixxlyrixx deleted the workflow-SupportStrategyInterface branchJanuary 18, 2017 22:07
lyrixx added a commit that referenced this pull requestApr 5, 2017
This PR was merged into the 3.3-dev branch.Discussion----------[Workflow] sync the changelog| Q             | A| ------------- | ---| Branch?       | master| Bug fix?      | no| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets |#20751,#21334,#21933,#21935,#21950| License       | MIT| Doc PR        |Commits-------98a18ee [Workflow] sync the changelog
@fabpotfabpot mentioned this pull requestMay 1, 2017
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@fabpotfabpotfabpot left review comments

@stofstofstof left review comments

@xabbuhxabbuhxabbuh left review comments

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

6 participants

@lyrixx@stof@fabpot@andesk@xabbuh@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp