Skip to content
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

[Workflow] Add tip for workflow configuration default values #7315

Closed
wants to merge 3 commits into from

Conversation

Copy link
Member

@javiereguiluz javiereguiluz left a comment

Choose a reason for hiding this comment

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

Adding this tip looks like a good idea to me. Sadly, it's hard to understand it, so I'd recommend to reword it a bit. Thanks!

@dominikhajduk
Copy link
Contributor Author

dominikhajduk commented Jan 8, 2017

@javiereguiluz thanks for CR. I've rewritten tip to be clearer. If you have additional suggestions please let me know.

@javiereguiluz
Copy link
Member

@dominikhajduk thanks for this reword. I can now understand everything perfectly 👍

Copy link
Member

@javiereguiluz javiereguiluz left a comment

Choose a reason for hiding this comment

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

👍


Workflow configuration ``type`` and ``arguments`` in ``marking_store`` section
are optional. You can skip one or both when you use default values. Default value
for ``type`` is "single_state". Default value for ``arguments`` is "marking".
Copy link
Member

Choose a reason for hiding this comment

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

I would reword this a bit to something like this:

The type (default value single_state) and arguments (default value marking) attributes of the marking_store option are optional. If omitted, their default values will be used.

What do you think?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@xabbuh fine for me. Will change in couple of seconds.

@dominikhajduk
Copy link
Contributor Author

@xabbuh should be fine now. Thanks

@xabbuh
Copy link
Member

xabbuh commented Jan 10, 2017

👍

@javiereguiluz Good for you too?

@javiereguiluz
Copy link
Member

@xabbuh yes, it looks very nice!

@xabbuh
Copy link
Member

xabbuh commented Jan 11, 2017

Thank you Dominik.

@xabbuh xabbuh closed this Jan 11, 2017
xabbuh added a commit that referenced this pull request Jan 11, 2017
…ues (dominikhajduk)

This PR was squashed before being merged into the 3.2 branch (closes #7315).

Discussion
----------

[Workflow] Add tip for workflow configuration default values

Added tip for http://symfony.com/doc/current/workflow/usage.html configuration.

Tested and based on great examples provided by @lyrixx in: https://github.com/lyrixx/SFLive-Paris2016-Workflow/blob/master/app/config/workflow.yml#L3 and
https://github.com/lyrixx/SFLive-Paris2016-Workflow/blob/master/src/AppBundle/Entity/Article.php#L24

Commits
-------

6262d24 [Workflow] Add tip for workflow configuration default values
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.

None yet

4 participants