Commit graph

904 commits

Author SHA1 Message Date
Kamil Grygierzec
01884e28a5
Rename fulfilled_order file to fulfilled 2023-12-21 10:15:28 +01:00
Kamil Grygierzec
d6b36dafc9
Cover preventing to view customers cart from the orders resource 2023-12-21 10:15:28 +01:00
Jan Goralski
07a954e6ef
Cleanup
[API] Unify position sorting
2023-12-21 10:15:26 +01:00
Jan Goralski
e86dd2fdcc
[API][Admin] Cover managing product associations 2023-12-21 10:15:18 +01:00
Jan Goralski
cd94d7a6b5
[API][Admin] Cover seeing applied promotions on variants 2023-12-21 10:15:18 +01:00
Jan Goralski
139cd83026
[API][Admin] Finish covering product and product taxon sorting 2023-12-21 10:15:18 +01:00
Jan Goralski
03b11686df
[API][Admin] Finish covering product filtering 2023-12-21 10:15:16 +01:00
Kamil Grygierzec
cc5e95560d
Cover contract tests 2023-12-21 10:14:59 +01:00
Wojdylak
0072784228
[ApiBundle][Address] Add address log entries operation 2023-12-21 10:14:59 +01:00
Rafikooo
538a436838
[Unit] Add setUpOrderPlacer method in OrderPlacerTrait 2023-12-21 10:14:59 +01:00
Rafikooo
3cf2711350
[Unit] Refactor tests that uses OrderPlacerTrait 2023-12-21 10:14:59 +01:00
Rafikooo
760727b003
[Unit] Refactor OrderPlacerTrait 2023-12-21 10:14:59 +01:00
Jacob Tobiasz
72248d29be
[UPMERGE] 1.13 -> 2.0 (#15661)
This PR has been generated automatically.
For more details see
[upmerge_pr.yaml](/Sylius/Sylius/blob/1.13/.github/workflows/upmerge_pr.yaml).

**Remember!** The upmerge should always be merged with using `Merge pull
request` button.

In case of conflicts, please resolve them manually with usign the
following commands:
```
git fetch upstream
gh pr checkout 
git merge upstream/2.0 --no-commit
```

If you use other name for the upstream remote, please replace `upstream`
with the name of your remote pointing to the `Sylius/Sylius` repository.

Once the conflicts are resolved, please run `git merge --continue` and
change the commit title to
```
Resolve conflicts between 1.13 and 2.0
```
2023-12-20 10:33:34 +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
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
Jan Goralski
6180a8cbdc
[API][Admin] Allow using float for amount in tax rates 2023-12-15 16:25:24 +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
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
Jacob Tobiasz
52da4090cb
Provide post-CR fixes 2023-12-15 06:42:59 +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
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
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
53c31aa420
[PromotionBundle] Move logic from PromotionRuleGroupValidator to PromotionRuleValidator 2023-12-14 08:49:45 +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
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
Jacob Tobiasz
7321053f7d
[UPMERGE] 1.13 -> 2.0 (#15629) 2023-12-12 10:06:23 +01:00
Jacob Tobiasz
11df996075
Use HeadersBuilder in the Customer Statistics API test 2023-12-12 09:25:28 +01:00
Jacob Tobiasz
ac519402b9
Add handling the GetCustomerStatistics query 2023-12-11 13:18:09 +01:00
Jacob Tobiasz
e56a62ab08
[UPMERGE] 1.13 -> 2.0 (#15624) 2023-12-09 09:25:22 +01:00
Jan Goralski
76b6a2145d
[API][TaxRate] Treat missing/null amount as default 2023-12-08 13:57:31 +01:00
Rafikooo
38d2564cc3 [ECS] Apply ecs fixes 2023-12-07 12:58:24 +01:00
Jacob Tobiasz
e2cec8b0a0
Resolve conflicts between 1.13 and 2.0 2023-12-06 17:42:41 +01:00
Jan Góralski
ff7ba120ac
minor #15581 [API] Resolve update of translations (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

#15535

Commits
-------
  [AttributeBundle] Add unique entity constraint to AttributeTranslation
  [PaymentBundle] Add unique entity constraint to PaymentMethodTranslation
  [ProductBundle] Add unique entity constraint to ProductAssociationTypeTranslation
  [ProductBundle] Add unique entity constraint to ProductOptionTranslation and ProductOptionValueTranslation
  [ProductBundle] Add unique entity constraint to ProductTranslation
  [ProductBundle] Add unique entity constraint to ProductVariantTranslation
  [PromotionBundle] Add unique entity constraint to CatalogPromotionTranslation
  [PromotionBundle] Add unique entity constraint to PromotionTranslation
  [ShippingBundle] Add unique entity constraint to ShippingMethodTranslation
  [TaxonBundle] Add unique entity constraint to TaxonTranslation
  [Behat] Rename language to localeCode for improved clarity
  [Api][Test] Improve spec test of throwing an exception if locale is not the same as key
  Change message of unique entity constraint of translations
  Rename unique constraint error message in translation
2023-12-06 14:39:25 +01:00
Wojdylak
a61c57b37c
Rename unique constraint error message in translation 2023-12-06 13:56:12 +01:00
Wojdylak
faddd948d5
Change message of unique entity constraint of translations 2023-12-06 13:56:11 +01:00
Wojdylak
7e9f520c56
[TaxonBundle] Add unique entity constraint to TaxonTranslation 2023-12-06 13:56:10 +01:00
Wojdylak
8cb2c26b33
[ShippingBundle] Add unique entity constraint to ShippingMethodTranslation 2023-12-06 13:56:10 +01:00
Wojdylak
aa92cbaaf3
[PromotionBundle] Add unique entity constraint to PromotionTranslation 2023-12-06 13:56:10 +01:00
Wojdylak
a86b10d042
[PromotionBundle] Add unique entity constraint to CatalogPromotionTranslation 2023-12-06 13:56:10 +01:00
Wojdylak
1579fa759b
[ProductBundle] Add unique entity constraint to ProductVariantTranslation 2023-12-06 13:56:09 +01:00
Wojdylak
5d97520be3
[ProductBundle] Add unique entity constraint to ProductTranslation 2023-12-06 13:56:09 +01:00
Wojdylak
05261ace11
[ProductBundle] Add unique entity constraint to ProductOptionTranslation and ProductOptionValueTranslation 2023-12-06 13:56:09 +01:00
Wojdylak
45ed0d88bd
[ProductBundle] Add unique entity constraint to ProductAssociationTypeTranslation 2023-12-06 13:56:08 +01:00
Wojdylak
12f3d3e8eb
[PaymentBundle] Add unique entity constraint to PaymentMethodTranslation 2023-12-06 13:56:08 +01:00