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

Skip to content

Catalog promotions action#13029

Merged
GSadee merged 5 commits into
Sylius:masterfrom
SirDomin:catalog-promotions-action
Sep 1, 2021
Merged

Catalog promotions action#13029
GSadee merged 5 commits into
Sylius:masterfrom
SirDomin:catalog-promotions-action

Conversation

@SirDomin
Copy link
Copy Markdown
Contributor

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

@SirDomin SirDomin added the API APIs related issues and PRs. label Aug 30, 2021
@SirDomin SirDomin requested a review from a team as a code owner August 30, 2021 12:48
Comment thread src/Sylius/Bundle/CoreBundle/Migrations/Version20210826063828.php Outdated
Comment thread src/Sylius/Component/Promotion/Model/CatalogPromotionInterface.php Outdated
Comment thread features/promotion/managing_catalog_promotions/creating_catalog_promotion.feature Outdated
Comment thread features/promotion/managing_catalog_promotions/editing_catalog_promotion.feature Outdated
Comment thread src/Sylius/Behat/Context/Api/Admin/ManagingCatalogPromotionsContext.php Outdated
Comment thread src/Sylius/Behat/Context/Api/Admin/ManagingCatalogPromotionsContext.php Outdated
Comment thread src/Sylius/Bundle/ApiBundle/Resources/config/serialization/CatalogPromotion.xml Outdated
Comment thread src/Sylius/Component/Promotion/Model/CatalogPromotion.php Outdated
->addDefaultsIfNotSet()
->children()
->scalarNode('model')->defaultValue(CatalogPromotionAction::class)->cannotBeEmpty()->end()
->scalarNode('interface')->defaultValue(CatalogPromotionActionInterface::class)->cannotBeEmpty()->end()
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Isn't needed anymore

Suggested change
->scalarNode('interface')->defaultValue(CatalogPromotionActionInterface::class)->cannotBeEmpty()->end()

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Indeed 👍 but to be consistent with other configurations I would leave it for now and remove altogether later 🖖

Comment thread src/Sylius/Behat/Context/Api/Admin/ManagingCatalogPromotionsContext.php Outdated
Comment thread src/Sylius/Behat/Context/Api/Admin/ManagingCatalogPromotionsContext.php Outdated
Comment thread src/Sylius/Behat/Context/Api/Admin/ManagingCatalogPromotionsContext.php Outdated
Comment thread src/Sylius/Behat/Context/Api/Admin/ManagingCatalogPromotionsContext.php Outdated
Comment thread src/Sylius/Behat/Context/Api/Admin/ManagingCatalogPromotionsContext.php Outdated
Comment thread tests/Api/Admin/CatalogPromotionsTest.php Outdated
@Zales0123 Zales0123 force-pushed the catalog-promotions-action branch from 8a348bd to 9a1c189 Compare August 31, 2021 12:57

interface CatalogPromotionInterface extends BaseCatalogPromotionInterface, ChannelsAwareInterface
{
public const TYPE_CONTAINS_VARIANTS = 'contains_variants';
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.

This type should be on CatalogPromotionRuleInterface in Core, and it has been already changed to for_variants

@GSadee GSadee merged commit e72f524 into Sylius:master Sep 1, 2021
@GSadee
Copy link
Copy Markdown
Member

GSadee commented Sep 1, 2021

Thanks, @SirDomin! 🥇

GSadee added a commit that referenced this pull request Sep 1, 2021
…on (Zales0123)

This PR was merged into the 1.11-dev branch.

Discussion
----------

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

Commits
-------

7a01498 Use CatalogPromotion actions for discounts application
d0afff7 PR review fixes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

API APIs related issues and PRs.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants