Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[CatalogPromotions] Manage rules and actions from UI#13052

Merged
GSadee merged 7 commits into
Sylius:masterfrom
Zales0123:cp-rules-and-actions-ui
Sep 3, 2021
Merged

[CatalogPromotions] Manage rules and actions from UI#13052
GSadee merged 7 commits into
Sylius:masterfrom
Zales0123:cp-rules-and-actions-ui

Conversation

@Zales0123
Copy link
Copy Markdown
Contributor

Q A
Branch? master
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? no
Related tickets based on #13048
License MIT

Zrzut ekranu 2021-09-3 o 07 48 44

@Zales0123 Zales0123 added the Feature New feature proposals. label Sep 3, 2021
@Zales0123 Zales0123 requested a review from a team as a code owner September 3, 2021 05:50
@probot-autolabeler probot-autolabeler Bot added the Admin AdminBundle related issues and PRs. label Sep 3, 2021
@Zales0123 Zales0123 changed the title [CatalogPromotions][WIP] Manage rules and actions from UI [CatalogPromotions] Manage rules and actions from UI Sep 3, 2021
@Zales0123 Zales0123 force-pushed the cp-rules-and-actions-ui branch from 7d66779 to 558cd11 Compare September 3, 2021 06:57
/**
* @When /^it applies on variants ("[^"]+" variant) and ("[^"]+" variant)$/
*/
public function itAppliesOnVariants(...$variants): void
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
public function itAppliesOnVariants(...$variants): void
public function itAppliesOnVariants(ProductVariantInterface ...$variants): void

/**
* @Then /^it should apply to ("[^"]+" variant) and ("[^"]+" variant)$/
*/
public function itShouldHaveRule(ProductVariantInterface $firstVariant, ProductVariantInterface $secondVariant): void
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
public function itShouldHaveRule(ProductVariantInterface $firstVariant, ProductVariantInterface $secondVariant): void
public function itShouldApplyToVariants(ProductVariantInterface ...$variants): void

and of course adjust the content of this method

@GSadee GSadee merged commit cbb1be6 into Sylius:master Sep 3, 2021
@GSadee
Copy link
Copy Markdown
Member

GSadee commented Sep 3, 2021

Thank you, Mateusz! 🎉

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

Labels

Admin AdminBundle related issues and PRs. Feature New feature proposals.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants