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

[Workfow] Rename current MarkingStore#20462

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
lyrixx merged 1 commit intosymfony:masterfromlyrixx:workflow-renaming
Nov 9, 2016

Conversation

@lyrixx
Copy link
Member

@lyrixxlyrixx commentedNov 9, 2016
edited
Loading

QA
Branch?master
Bug fix?no
New feature?no
BC breaks?yes (in un-released branch)
Deprecations?no
Tests pass?yes
Fixed tickets-
LicenseMIT
Doc PR-
  • ScalarMarkingStore -> SingleStateMarkingStore
  • PropertyAccessorMarkingStore -> MultipleStateMarkingStore

And I also made optionnal themarking_store config, to let the
componant choose the best marking store depending on the type
(state_machine or workflow).


Note: I did that to ease the on-boarding

HeahDude, Nyholm, and mickaelandrieu reacted with heart emoji
@Nyholm
Copy link
Member

I like this change. It makes it easier to understand the differences between the two.

👍

@wouterj
Copy link
Member

👍 Lot more descriptive (still a bit confused by "MarkingStore" but it's probably more correct if you're into the workflow nets)

@Nyholm
Copy link
Member

The term is "marking" from the Petri net and that is something we should not change. But "store".. if we are not happy with it we can maybe could consider renaming it to "Strategy"

@lyrixx
Copy link
MemberAuthor

Actually, I made themarking_store configuration optional.

So this is the minimal config:

Workflow:

framework:workflows:article:supports:                -AppBundle\Entity\Articleplaces:                -draft                -wait_for_journalist                -approved_by_journalist                -wait_for_spellchecker                -approved_by_spellchecker                -publishedtransitions:request_review:from:draftto:                        -wait_for_journalist                        -wait_for_spellcheckerjournalist_approval:from:wait_for_journalistto:approved_by_journalistspellchecker_approval:from:wait_for_spellcheckerto:approved_by_spellcheckerpublish:from:                        -approved_by_journalist                        -approved_by_spellcheckerto:published

state machine:

task:type:state_machinesupports:                -AppBundle\Entity\Taskplaces:                -backlog                -in_progress                -donetransitions:processing:from:backlogto:in_progressdone:from:in_progressto:done

As you can see, we never talk about the marking store.


About the class name: it really save / get the Marking from a POPO. So I prefer MarkingStore to MarkingStrategy.

mickaelandrieu reacted with thumbs up emoji

@Nyholm
Copy link
Member

Im also fine with "store". I just tried to consider the alternatives because Wouter pointed it out.

@nicolas-grekas
Copy link
Member

👍


/**
*PropertyAccessorMarkingStore.
*MultipleStateMarkingStore.
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 describe the class instead of just using the class name, which does not really help.

HeahDude and wouterj reacted with thumbs up emoji
Copy link
MemberAuthor

Choose a reason for hiding this comment

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

I updated the wording.

@lyrixxlyrixxforce-pushed theworkflow-renaming branch 3 times, most recently froma1dc444 to0c1cba2CompareNovember 9, 2016 15:16
@fabpot
Copy link
Member

👍

@javiereguiluzjaviereguiluz added this to the3.2 milestoneNov 9, 2016
* ScalarMarkingStore -> SingleStateMarkingStore* PropertyAccessorMarkingStore -> MultipleStateMarkingStoreAnd I also made optionnal the `marking_store` config, to let thecomponant choose the best marking store depending on the type(state_machine or workflow).
@lyrixxlyrixx merged commit08464c9 intosymfony:masterNov 9, 2016
lyrixx added a commit that referenced this pull requestNov 9, 2016
This PR was merged into the 3.2-dev branch.Discussion----------[Workfow] Rename current MarkingStore| Q             | A| ------------- | ---| Branch?       | master| Bug fix?      | no| New feature?  | no| BC breaks?    | yes (in un-released branch)| Deprecations? | no| Tests pass?   | yes| Fixed tickets | -| License       | MIT| Doc PR        | -* ScalarMarkingStore -> SingleStateMarkingStore* PropertyAccessorMarkingStore -> MultipleStateMarkingStoreAnd I also made optionnal the `marking_store` config, to let thecomponant choose the best marking store depending on the type(state_machine or workflow).---Note: I did that to ease the on-boardingCommits-------08464c9 [Workfow] Rename current MarkingStore
@lyrixxlyrixx deleted the workflow-renaming branchNovember 9, 2016 15:40
Nyholm added a commit to Nyholm/symfony-docs that referenced this pull requestNov 9, 2016
@stof
Copy link
Member

stof commentedNov 9, 2016

PropertyAccessorMarkingStore -> MultipleStateMarkingStore looks weird to me. This marking store is special because it relies on PropertyAccess. We could have other marking stores supporting multiple state and using a different implementation internally

@Nyholm
Copy link
Member

Nyholm commentedNov 9, 2016
edited
Loading

You are technically correct but in practice it will be considered an edge case that you would need a MultipleStateMarkingStore that has another implementation than PropertyAccess.

Since it is rare, I'm fine with the name MultipleStateMarkingStore because it is way easier in to understand what it does.

* subject.
*
* This store deals with a "multiple state" Marking. It means a subject can be
* in many state at the same time.
Copy link
Member

Choose a reason for hiding this comment

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

states


/**
*PropertyAccessorMarkingStore constructor.
*MultipleStateMarkingStore constructor.
Copy link
Member

Choose a reason for hiding this comment

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

This doesn't add any value.

* SingleStateMarkingStore stores the marking into a property of the subject.
*
* This store deals with a "single state" Marking. It means a subject can be in
* one and only state at the same time.
Copy link
Member

Choose a reason for hiding this comment

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

[...] and only one state [...]


/**
*ScalarMarkingStore constructor.
*SingleStateMarkingStore constructor.
Copy link
Member

Choose a reason for hiding this comment

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

same as above

@lyrixxlyrixx mentioned this pull requestNov 10, 2016
@lyrixx
Copy link
MemberAuthor

@xabbuh Thanks for your review. I opened anew PR.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@fabpotfabpotfabpot left review comments

@xabbuhxabbuhxabbuh left review comments

@NyholmNyholmNyholm approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

3.2

Development

Successfully merging this pull request may close these issues.

8 participants

@lyrixx@Nyholm@wouterj@nicolas-grekas@fabpot@stof@xabbuh@javiereguiluz

[8]ページ先頭

©2009-2025 Movatter.jp