-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[WIP][Workflow] Changed initial_places to initial_marking, added property instead of type #30662
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
Conversation
@HeahDude Hi. Thanks for the PR. What is missing? Do you think you will be able to finish it before the feature freeze? |
Hey!
I need to fix the CI and get your approval :). Is the naming ok? I'm not sure about the deprecation messages, I surely need to update the changelog and upgrade files about them and the
Sure, if you ask me, I would love to have it merged for tomorrow :). |
</xsd:complexType> | ||
|
||
<xsd:simpleType name="marking_store_type"> | ||
<xsd:restriction base="xsd:string"> | ||
<xsd:enumeration value="multiple_state" /> | ||
<xsd:enumeration value="single_state" /> | ||
<xsd:enumeration value="method" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a kind of bug fix
0737d3e
to
95bc4ef
Compare
Missing "method" value ;) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, I left few comments
src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php
Show resolved
Hide resolved
if ('method' === $workflow['marking_store']['type']) { | ||
$markingStoreDefinition->setArguments([ | ||
'state_machine' === $type, //single state | ||
$workflow['marking_store']['property'] ?? 'marking', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be the default value in the Configuration (not the extension)
@@ -270,7 +270,7 @@ | |||
|
|||
<xsd:complexType name="workflow"> | |||
<xsd:sequence> | |||
<xsd:element name="initial-place" type="xsd:string" minOccurs="0" maxOccurs="unbounded" /> | |||
<xsd:element name="initial-marking" type="xsd:string" minOccurs="0" maxOccurs="unbounded" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
both element should be here to support the BC, no ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes
@HeahDude I could finish this PR. Are you OK with that? |
Yes please do! |
Thank you very much for you initial work on this PR. |
…added property (HeahDude, lyrixx) This PR was merged into the 4.3-dev branch. Discussion ---------- [Workflow] Changed initial_places to initial_marking, added property | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | yes | BC breaks? | no | Deprecations? | yes | Tests pass? | yes | Fixed tickets | #30662 and #30656 | License | MIT | Doc PR | #30656 EUFOSSA --- * [Workflow] Changed initial_places to initial_marking, added property instead of type * [Workflow] Finished integration of initial_marking + deprecated support for workflow + single state markin store [Workflow] Deprecate worflow and single state marking --- Here is an exemple of deprecation: ``` 3x: Passing something else than "method" has been deprecated in Symfony 4.3. 1x in PhpFrameworkExtensionTest::testWorkflowLegacy from Symfony\Bundle\FrameworkBundle\Tests\DependencyInjection 1x in XmlFrameworkExtensionTest::testWorkflowLegacy from Symfony\Bundle\FrameworkBundle\Tests\DependencyInjection 1x in YamlFrameworkExtensionTest::testWorkflowLegacy from Symfony\Bundle\FrameworkBundle\Tests\DependencyInjection 3x: The "framework.workflows.workflows.legacy.marking_store.arguments" configuration key has been deprecated in Symfony 4.3. Use "property" instead. 1x in PhpFrameworkExtensionTest::testWorkflowLegacy from Symfony\Bundle\FrameworkBundle\Tests\DependencyInjection 1x in XmlFrameworkExtensionTest::testWorkflowLegacy from Symfony\Bundle\FrameworkBundle\Tests\DependencyInjection 1x in YamlFrameworkExtensionTest::testWorkflowLegacy from Symfony\Bundle\FrameworkBundle\Tests\DependencyInjection 3x: The "framework.workflows.workflows.legacy.initial_place" configuration key has been deprecated in Symfony 4.3, use the "initial_marking" configuration key instead. 1x in PhpFrameworkExtensionTest::testWorkflowLegacy from Symfony\Bundle\FrameworkBundle\Tests\DependencyInjection 1x in XmlFrameworkExtensionTest::testWorkflowLegacy from Symfony\Bundle\FrameworkBundle\Tests\DependencyInjection 1x in YamlFrameworkExtensionTest::testWorkflowLegacy from Symfony\Bundle\FrameworkBundle\Tests\DependencyInjection ``` Commits ------- 0393535 [Workflow] Deprecate worflow and single state marking 87839cf [Workflow] Finished integration of initial_marking + deprecated support for workflow + single state markin store 73708a6 [Workflow] Changed initial_places to initial_marking, added property instead of type
ping @lyrixx