Commit graph

31440 commits

Author SHA1 Message Date
Wojdylak
dd6cc0461f
[PromotionBundle] Add validation group to PromotionCouponGeneratorInstructionType 2023-12-18 12:12:59 +01:00
Wojdylak
22c834895f
[PromotionBundle] Deprecate PromotionCouponGeneratorInstructionInterface 2023-12-18 12:12:59 +01:00
Jacob Tobiasz
323bd9ac59
Improve error handling while sending malformed amount value in the tax rate api resource update operation 2023-12-18 10:53:18 +01:00
Jan Góralski
378278aec4
minor #15650 Update the example response of the Customer's statistics endpoint (jakubtobiasz)
This PR was merged into the 1.13 branch.

Discussion
----------

| Q               | A                                                            |
|-----------------|--------------------------------------------------------------|
| Branch?         | 1.13
| Bug fix?        | no
| New feature?    | no
| BC breaks?      | no
| Deprecations?   | no
| Related tickets | n/a
| License         | MIT

![CleanShot 2023-12-15 at 19 29 24](https://github.com/Sylius/Sylius/assets/80641364/22b5df77-9fba-485d-b308-b4ade9ddbcc4)

The example in the API documentation is now displayed correctly c:.

Commits
-------
  Update the example response of the Customer's statistics endpoint
2023-12-18 09:15:21 +01:00
Jan Góralski
e06f9165e9
minor #15630 Finish covering managing product-related resources (jakubtobiasz)
This PR was merged into the 1.13 branch.

Discussion
----------

| Q               | A                                                            |
|-----------------|--------------------------------------------------------------|
| Branch?         | 1.13
| Bug fix?        | no
| New feature?    | no
| BC breaks?      | no
| Deprecations?   | no
| Related tickets | n/a
| License         | MIT


Commits
-------
  Add missing @no-api tags in editing_product_review.feature
  Add missing @api tags in recalculating_product_average_rating.feature
  Cover scenarios in sorting_product_variants_within_product_by_position.feature
  Cover scenarios in filtering_product_reviews.feature
  Provide post-CR fixes
  Remove duplicated step
  [Behat][API] Minor improvements in managing variants contexts
  [Behat][API] Refactor scenarios of sorting variants to have the same for UI and API contexts
  [Behat] Fix scenario of browsing accepted reviews for case-sensitive PostreSQL
2023-12-18 09:14:32 +01:00
Sylius Bot
7b355d975f [Translations] Updated translations from Crowdin 2023-12-18 04:03:47 +00:00
Jacob Tobiasz
23b4abd530
minor #15646 [API][Admin] Allow using float for amount in tax rates (NoResponseMate)
This PR was merged into the 1.13 branch.

Discussion
----------

| Q               | A                                                            |
|-----------------|--------------------------------------------------------------|
| Branch?         | 1.13 |
| Bug fix?        | kinda                                                       |
| New feature?    | no                                                       |
| BC breaks?      | no                                                       |
| Deprecations?   | no |
| Related tickets | related #15616                      |
| License         | MIT                                                          |

It's hacky as hell; caused by [this bug](https://github.com/api-platform/core/issues/1647), the only other way of fixing it is a migration but that sucks by itself. I'm guessing there are more convoluted ways as well but that's too much pain for the gain.

Commits
-------
  [API][Admin] Allow using float for amount in tax rates
2023-12-15 20:37:09 +01:00
Jacob Tobiasz
d117f01e5c
Update the example response of the Customer's statistics endpoint 2023-12-15 19:34:35 +01:00
Jan Goralski
6180a8cbdc
[API][Admin] Allow using float for amount in tax rates 2023-12-15 16:25:24 +01:00
Rafikooo
457357c711
[Behat] Modify ResponseChecker methods signature 2023-12-15 16:04:19 +01:00
Grzegorz Sadowski
fe77e9782d
Merge branch '1.13' into 2.0
* 1.13:
  [PromotionBundle] Add prefix to validation groups for promotion action/rule
  [PromotionBundle][PromotionRule] Add available type to validation message
  [PromotionBundle][PromotionAction] Add available type to validation message
  Update upgrade file
  [PromotionBundle] Split PromotionRuleValidator to PromotionRuleGroupValidator and PromotionRuleTypeValidator
  [PromotionBundle] Split PromotionActionValidator to PromotionActionGroupValidator and PromotionActionTypeValidator
  Add prefix sylius_ to validation groups
  Update upgrade file
  [PromotionBundle] Remove constraints from FormType to avoid double constraints
  [PromotionBundle] Move logic from PromotionRuleGroupValidator to PromotionRuleValidator
  [PromotionBundle] Move logic from PromotionActionGroupValidator to PromotionActionValidator
  [PromotionBundle] Add parameters validation groups for promotion action and promotion rule
2023-12-15 14:10:11 +01:00
Grzegorz Sadowski
f578921582
refactor #15628 [PromotionBundle] Update validation process of promotion actions/rules (Wojdylak)
This PR was merged into the 1.13 branch.

Discussion
----------

| Q               | A                                                            |
|-----------------|--------------------------------------------------------------|
| Branch?         | 1.13
| Bug fix?        | no
| New feature?    | yes
| BC breaks?      | no
| Deprecations?   | no
| Related tickets | N/A
| License         | MIT


Commits
-------

e530c7d9ca [PromotionBundle] Add parameters validation groups for promotion action and promotion rule
235c7e0dd5 [PromotionBundle] Move logic from PromotionActionGroupValidator to PromotionActionValidator
53c31aa420 [PromotionBundle] Move logic from PromotionRuleGroupValidator to PromotionRuleValidator
36d2a5ac08 [PromotionBundle] Remove constraints from FormType to avoid double constraints
d56ce734c6 Update upgrade file
c021e3e3a1 Add prefix sylius_ to validation groups
99a94b92a3 [PromotionBundle] Split PromotionActionValidator to PromotionActionGroupValidator and PromotionActionTypeValidator
de77a13d2d [PromotionBundle] Split PromotionRuleValidator to PromotionRuleGroupValidator and PromotionRuleTypeValidator
eb4a50c92b Update upgrade file
dd50a6f3a6 [PromotionBundle][PromotionAction] Add available type to validation message
633cf30ab3 [PromotionBundle][PromotionRule] Add available type to validation message
1494fce8fe [PromotionBundle] Add prefix to validation groups for promotion action/rule
2023-12-15 13:52:51 +01:00
Grzegorz Sadowski
5709d84807
[Behat] Fix scenario of browsing accepted reviews for case-sensitive PostreSQL 2023-12-15 11:26:58 +01:00
Grzegorz Sadowski
9daf87fd62
Merge branch '1.13' into 2.0
* 1.13:
  [Admin] Change name of official support section in menu and adjust translations
  Add all translations & change label
  Add business support CTA to admin panel
  [ECS] Apply types order changes
  [ECS] Add union types ordering rule
  [ECS] Apply ecs fixes
  [ChannelsTest] use inArray to check locales
  [ApiBundle] Add contract tests for ProductTaxon resource
  [Behat] Add API test coverage for features/promotion/tracking_usage folder
  [ApiBundle][CatalogPromotion] Add order filters
  [ApiBundle][ProductTaxon] Move deleting productTaxon to productTaxon resource
  Use HeadersBuilder in the Customer Statistics API test
  Use query_bus instead of command_bus for query handlers
  Add handling the GetCustomerStatistics query
  Create the GetCustomerStatistics query and the GetCustomerStatisticsHandler
  Remove fr translation
  Add tests that form doesn't display Extra fields error after login in checkout
  Update src/Sylius/Bundle/CoreBundle/Form/Type/Checkout/AddressType.php
  Prevent eager loading hundreds of countries
  [Checkout] Prevent extra fields when login in on addressing page
2023-12-15 10:42:55 +01:00
Grzegorz Sadowski
a5163fe9dc
Merge branch '1.12' into 1.13
* 1.12:
  [Admin] Change name of official support section in menu and adjust translations
  Add all translations & change label
  Add business support CTA to admin panel
  Remove fr translation
  Add tests that form doesn't display Extra fields error after login in checkout
  Update src/Sylius/Bundle/CoreBundle/Form/Type/Checkout/AddressType.php
  [Checkout] Prevent extra fields when login in on addressing page
2023-12-15 10:26:43 +01:00
Grzegorz Sadowski
6f35576c05
[Behat][API] Refactor scenarios of sorting variants to have the same for UI and API contexts 2023-12-15 10:25:48 +01:00
Jacob Tobiasz
0dc74d8d46
minor #15642 [Admin] Add official support submenu in admin panel (GSadee)
This PR was merged into the 1.12 branch.

Discussion
----------

| Q               | A                                                            |
|-----------------|--------------------------------------------------------------|
| Branch?         | 1.12|
| Bug fix?        | no                                                      |
| New feature?    | no                                                      |
| BC breaks?      | no                                                      |
| Deprecations?   | no|
| Related tickets | replaces #15436 |
| License         | MIT                                                          |

<img width="248" alt="image" src="https://github.com/Sylius/Sylius/assets/6140884/2b58b7c1-7334-4e10-9bba-de393b525f05">

<!--
 - Bug fixes must be submitted against the 1.12 branch
 - Features and deprecations must be submitted against the 1.13 branch
 - Make sure that the correct base branch is set

 To be sure you are not breaking any Backward Compatibilities, check the documentation:
 https://docs.sylius.com/en/latest/book/organization/backward-compatibility-promise.html
-->


Commits
-------
  Add business support CTA to admin panel
  Add all translations & change label
  [Admin] Change name of official support section in menu and adjust translations
2023-12-15 09:23:17 +01:00
Grzegorz Sadowski
f0fffc53ae
[Admin] Change name of official support section in menu and adjust translations 2023-12-15 08:53:55 +01:00
Nicolas Kroll
2248bcb945
Add all translations & change label 2023-12-15 07:19:30 +01:00
Nicolas Kroll
bc0a168889
Add business support CTA to admin panel 2023-12-15 07:19:22 +01:00
Grzegorz Sadowski
21cd6b63f2
[Behat][API] Minor improvements in managing variants contexts 2023-12-15 07:07:52 +01:00
Jacob Tobiasz
49861067bb
Remove duplicated step 2023-12-15 06:42:59 +01:00
Jacob Tobiasz
52da4090cb
Provide post-CR fixes 2023-12-15 06:42:59 +01:00
Jacob Tobiasz
d2b2b674d2
Cover scenarios in filtering_product_reviews.feature 2023-12-15 06:42:58 +01:00
Jacob Tobiasz
905ec5e240
Cover scenarios in sorting_product_variants_within_product_by_position.feature 2023-12-15 06:42:57 +01:00
Jacob Tobiasz
9cf2423b53
Add missing @api tags in recalculating_product_average_rating.feature 2023-12-15 06:42:23 +01:00
Jacob Tobiasz
0bdffa0674
Add missing @no-api tags in editing_product_review.feature 2023-12-15 06:42:23 +01:00
Rafikooo
98a3ec1398
[Behat] Add ChannelContext improvements 2023-12-14 11:00:15 +01:00
Wojdylak
1494fce8fe
[PromotionBundle] Add prefix to validation groups for promotion action/rule 2023-12-14 10:05:45 +01:00
Wojdylak
633cf30ab3
[PromotionBundle][PromotionRule] Add available type to validation message 2023-12-14 09:58:53 +01:00
Wojdylak
dd50a6f3a6
[PromotionBundle][PromotionAction] Add available type to validation message 2023-12-14 09:58:42 +01:00
Rafikooo
0cc86b7324
[Behat][API] Add new method to the ResponseCheckerInterface 2023-12-14 09:35:49 +01:00
Jan Góralski
7ef109ad9d
minor #15636 [ECS] Ordered Types Fixer (Rafikooo)
This PR was merged into the 1.13 branch.

Discussion
----------

| Q               | A                                                            |
|-----------------|--------------------------------------------------------------|
| Branch?         | 1.13 <!-- see the comment below -->                  |
| Bug fix?        | no                                                      |
| New feature?    |yes                                                       |
| BC breaks?      | no                                                      |
| Deprecations?   | no<!-- don't forget to update the UPGRADE-*.md file --> |
| License         | MIT                                                          |

Let's eliminate another ambiguous convention 🕺 

Reference: https://github.com/Sylius/Sylius/pull/15598#discussion_r1419413777

Proposal:
- null at the end
- the remaining types in alphabetical order

Commits
-------
  [ECS] Apply ecs fixes
  [ECS] Add union types ordering rule
  [ECS] Apply types order changes
2023-12-14 09:25:55 +01:00
Wojdylak
eb4a50c92b
Update upgrade file 2023-12-14 08:49:47 +01:00
Wojdylak
de77a13d2d
[PromotionBundle] Split PromotionRuleValidator to PromotionRuleGroupValidator and PromotionRuleTypeValidator 2023-12-14 08:49:46 +01:00
Wojdylak
99a94b92a3
[PromotionBundle] Split PromotionActionValidator to PromotionActionGroupValidator and PromotionActionTypeValidator 2023-12-14 08:49:46 +01:00
Wojdylak
c021e3e3a1
Add prefix sylius_ to validation groups 2023-12-14 08:49:46 +01:00
Wojdylak
d56ce734c6
Update upgrade file 2023-12-14 08:49:46 +01:00
Wojdylak
36d2a5ac08
[PromotionBundle] Remove constraints from FormType to avoid double constraints 2023-12-14 08:49:45 +01:00
Wojdylak
53c31aa420
[PromotionBundle] Move logic from PromotionRuleGroupValidator to PromotionRuleValidator 2023-12-14 08:49:45 +01:00
Wojdylak
235c7e0dd5
[PromotionBundle] Move logic from PromotionActionGroupValidator to PromotionActionValidator 2023-12-14 08:49:45 +01:00
Wojdylak
e530c7d9ca
[PromotionBundle] Add parameters validation groups for promotion action and promotion rule 2023-12-14 08:49:44 +01:00
Grzegorz Sadowski
79845047c1
feature #15635 [API][Behat] covering tests for managing promotions (Wojdylak)
This PR was merged into the 1.13 branch.

Discussion
----------

| Q               | A                                                            |
|-----------------|--------------------------------------------------------------|
| Branch?         | 1.13
| Bug fix?        | no
| New feature?    | yes
| BC breaks?      | no
| Deprecations?   | no
| Related tickets | N/A
| License         | MIT


Commits
-------

9e8e797c81 [ApiBundle][ProductTaxon] Move deleting productTaxon to productTaxon resource
59c2798883 [ApiBundle][CatalogPromotion] Add order filters
4036f1f132 [Behat] Add API test coverage for features/promotion/tracking_usage folder
e8f1a0a831 [ApiBundle] Add contract tests for ProductTaxon resource
6de508c911 [ChannelsTest] use inArray to check locales
2023-12-14 07:03:58 +01:00
Rafikooo
81cf65339c
[ECS] Apply types order changes 2023-12-14 01:23:05 +01:00
Rafikooo
fd37696d8a
[ECS] Add union types ordering rule 2023-12-14 01:20:21 +01:00
Rafikooo
02abf30f12
[ECS] Apply ecs fixes 2023-12-14 00:55:25 +01:00
Jan Góralski
c93ec9b091
minor #15627 Add an endpoint exposing customer's statistics (jakubtobiasz)
This PR was merged into the 1.13 branch.

Discussion
----------

| Q               | A                                                            |
|-----------------|--------------------------------------------------------------|
| Branch?         | 1.13
| Bug fix?        | no
| New feature?    | no
| BC breaks?      | no
| Deprecations?   | no
| Related tickets | n/a
| License         | MIT

![CleanShot 2023-12-11 at 13 28 52@2x](https://github.com/Sylius/Sylius/assets/80641364/692ec7a5-185b-4b13-8fb4-0366abf9fe34)


Commits
-------
  Create the GetCustomerStatistics query and the GetCustomerStatisticsHandler
  Add handling the GetCustomerStatistics query
  Use query_bus instead of command_bus for query handlers
  Use HeadersBuilder in the Customer Statistics API test
2023-12-13 16:55:51 +01:00
Wojdylak
6de508c911
[ChannelsTest] use inArray to check locales 2023-12-13 15:13:43 +01:00
Wojdylak
e8f1a0a831
[ApiBundle] Add contract tests for ProductTaxon resource 2023-12-13 15:02:43 +01:00
Wojdylak
4036f1f132
[Behat] Add API test coverage for features/promotion/tracking_usage folder 2023-12-13 14:32:18 +01:00