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

[Catalog Promotion] Catalog promotion states refactor #13569

Merged
merged 7 commits into from
Feb 3, 2022

Conversation

ernestWarwas
Copy link
Contributor

@ernestWarwas ernestWarwas commented Jan 31, 2022

Q A
Branch? 1.11
Bug fix? no
New feature? no
BC breaks? no
Related tickets fixes #X, partially #Y, mentioned in #Z
License MIT

After change to process per variant in catalog promotions, we want to change place of changing catalog promotion state. In this PR I added a new Listener which is listening for Created, Updated and Ended Catalog Promotion events and changing it state if eligible because this operation from an architectural point of view is not connected with variant processing.

@ernestWarwas ernestWarwas requested a review from a team as a code owner January 31, 2022 13:41
@ernestWarwas ernestWarwas changed the title Catalog promotion states refactor [WIP] Catalog promotion states refactor Jan 31, 2022
@ernestWarwas ernestWarwas changed the title [WIP] Catalog promotion states refactor Catalog promotion states refactor Jan 31, 2022
@Zales0123 Zales0123 added the Enhancement Minor issues and PRs improving the current solutions (optimizations, typo fixes, etc.). label Feb 1, 2022
@ernestWarwas ernestWarwas changed the title Catalog promotion states refactor [Catalog Promotion] Catalog promotion states refactor Feb 1, 2022
@ernestWarwas ernestWarwas force-pushed the catalog-promotion-states-refactor branch 2 times, most recently from 7cb3768 to 29f8851 Compare February 2, 2022 13:31
@ernestWarwas ernestWarwas force-pushed the catalog-promotion-states-refactor branch 2 times, most recently from c643c45 to ef2f806 Compare February 3, 2022 07:43
CatalogPromotionStateProcessor added

refactor and spec

removed unused
review fixes and added provider to find eligible cp

missing license block

review fixes
added new listener CatalogPromotionStateChangedListener and review fixes

eligibility provider namespaces fix

added verify method to CriteriaInterface

small fixes in naming

clean up
@ernestWarwas ernestWarwas force-pushed the catalog-promotion-states-refactor branch from b84e64b to 90cc645 Compare February 3, 2022 08:12
@GSadee GSadee merged commit 1652d08 into Sylius:1.11 Feb 3, 2022
@GSadee
Copy link
Member

GSadee commented Feb 3, 2022

Thanks, @ernestWarwas! 🥇

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement Minor issues and PRs improving the current solutions (optimizations, typo fixes, etc.).
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants