Commit graph

146 commits

Author SHA1 Message Date
Jan Goralski
3fc01a3fad [API][ChannelPriceHistoryConfig] Upgrade and embed into channel 2024-08-19 07:19:16 +02:00
Wojdylak
095900dae6
[Api] Move ContextBuilder to Serializer/ContextBuilder directory 2024-08-08 12:33:38 +02:00
Wojdylak
78e57b71dc
[Api][Order] Enable Cart operations 2024-08-07 09:57:10 +02:00
Rafikooo
31421502d5
[Unit] Improve channel fixtures with more descriptive data 2024-08-02 10:03:13 +02:00
Wojdylak
9add00905a
[Api][Admin] Enable Order resource 2024-08-01 13:30:28 +02:00
Wojdylak
92786087cf
[Zone] Fix unit tests 2024-07-29 16:51:00 +02:00
Wojdylak
74b24bf672
[Api][Zone] Enable unit tests 2024-07-24 12:50:10 +02:00
Grzegorz Sadowski
f764d7d5ec
[API][Shop] Convert state provider to query extensions for Shipping Method resource 2024-07-16 13:26:33 +02:00
Wojdylak
536bfa2a46 [API][Adjustment] Enable unit tests 2024-05-22 15:10:25 +02:00
Wojdylak
ba7e4b6f29
[API][Address] Enable unit tests 2024-05-09 21:12:20 +02:00
Grzegorz Sadowski
ae7896032a
Merge branch '2.0' into api-platform-3
* 2.0:
  [Inventory] Fix deprecation note of sylius_inventory.checker configuration
  [Inventory] Add deprecation for sylius_inventory.checker config
  Add note to the UPGRADE file about changing the service argument
  Using the service name for the availibilty checker
  [API][Test] Minor updating of functions name
  [Payum] Move validation groups configuration to PayumBundle
  Move config to Core, SyliusPaymentBundle do not requires SyliusPayumBundle
  [Api][Admin] Add ChannelNotFoundException to OrderAddressRequirementValidator
  [Api][Admin] Change validation message of address requirement
  [Api][Admin] Fix get channels test
  [Api][Checkout] Add validation for required address
  [Maintenance][API] Secure and cleanup openapi documentation modifiers
2024-04-02 12:45:31 +02:00
Grzegorz Sadowski
d13ebb94d8
Merge branch '2.0' into api-platform-3
* 2.0: (776 commits)
  Add missing validation for the customers first and last name
  [CS][DX] Refactor
  Bring back all Sylius' state machines to Winzou
  Add overriding the Resource's state machine with the one from the Sylius abstraction
  Add missing locales to contract test
  [Taxon][Behat] validate translations with unexisting locales
  [ShippingMethod][Behat] validate translations with unexisting locales
  [Promotion][Behat] validate translations with unexisting locales
  [Product][Behat] validate translations with unexisting locales
  [PaymentMethod][Behat] validate translations with unexisting locales
  Validate all translatable objects for unexisiting locales
  Validate customer's password reset
  Validate customer creation and edit
  Make the validation trait more generic
  [Api] Change namespace of TaxonImagesTest class
  [Api] Remove _response suffix
  [Behat] Minor improvments of viewing_taxon_image scenario
  [Api][ProductImage] Add https prefix check
  [Api][Admin] Allow using float for ratio in exchange rate
  SYL-3329 Fix behat test for SyliusPayPalPlugin
  ...
2024-03-29 14:49:47 +01:00
Wojdylak
d585cc0f81
[Api][Checkout] Add validation for required address 2024-03-27 13:41:33 +01:00
Kamil Grygierzec
fa12a15e22
Add missing locales to contract test 2024-03-27 09:22:46 +01:00
Grzegorz Sadowski
ea9d490b7e
[API][Address] Fixes for address contract tests 2024-03-15 12:56:27 +01:00
Wojdylak
900e8c4d7e
[API] Add contract tests for AvatarImage Api resources 2024-02-29 01:00:49 +01:00
Rafikooo
d04a63ab7a
[Unit] Test getting collection of orders filtered by many currencies in admin context 2024-02-28 14:18:15 +01:00
Rafikooo
50c9820521
[Unit] Test getting collection of orders filtered by currency in admin context 2024-02-28 14:18:15 +01:00
Rafikooo
83bc2d4ecb
[Unit] Set order payment and shipping states to correct ones 2024-02-28 14:18:15 +01:00
Rafikooo
ba814d2dbb
[Unit] Test getting collection of orders in admin context 2024-02-28 14:18:14 +01:00
Rafikooo
1816de0d55
[Unit] Prepare admin fixture with two new orders in two different channels accordingly 2024-02-28 14:18:14 +01:00
Jan Góralski
6a76da55d9
minor #15879 [Api][Shop] Get only accepted review in product (Wojdylak)
This PR was merged into the 1.13 branch.

Discussion
----------

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

Commits
-------
  [Api][Shop] Get only accepted review in product
  [API] Add DoctrineCollectionArrayValuesNormalizer class
  [Api][Shop] Rename collection_array_values to collection_values
2024-02-27 14:01:36 +01:00
Wojdylak
c8dbe863d2
[Api][Shop][CatalogPromotion] Add test product variants with applied promotions 2024-02-27 11:02:53 +01:00
Grzegorz Sadowski
db3934d504
[API] Improve adjustment endpoints' responses 2024-02-26 06:59:45 +01:00
Wojdylak
228308e96d
[Api][Shop] Get only accepted review in product 2024-02-23 16:14:10 +01:00
Jan Góralski
eebc66bd46
minor #15873 [API][Shop] Add missing contract test for getting only locales from current channel (GSadee)
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<!-- don't forget to update the UPGRADE-*.md file --> |
| Related tickets | related to #15872 |
| License         | MIT                                                          |

<!--
 - 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
-------
  [API][Shop] Add missing contract test for getting only locales from current channel
2024-02-23 16:12:34 +01:00
Grzegorz Sadowski
2df7a2e451
[API][Shop] Add missing contract test for getting only countries from current channel 2024-02-23 11:14:45 +01:00
Grzegorz Sadowski
4f57ca615a
[API][Shop] Add missing contract test for getting only locales from current channel 2024-02-23 11:06:57 +01:00
Karol
38ecc8b2e4
minor #15865 [API][Shop] Minor clean up of address contract tests (GSadee)
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<!-- don't forget to update the UPGRADE-*.md file --> |
| Related tickets | |
| License         | MIT                                                          |

<!--
 - 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
-------
  [API][Shop] Minor clean up of address contract tests
  [API][Admin] Fix address contract tests
2024-02-23 08:21:24 +01:00
Jan Góralski
8e6b5915de
feature #15854 Archiving Cart Promotion (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 | #13475
| License         | MIT

Based on #15375, I have split this PR into "Archiving Cart Promotion" and "Archiving Catalog Promotion"
There  are two cases to consider:
- Priority: it cannot be null and is assigned a "gedmo:sortable-position". This means that when we archive cart promotion, it still  influences the position of all promotions.
- API changes: I have added added PATCH operations, which removes all null values from responses in promotions. So we need to decide whether to add `skip_null_values: false` across all operations or not?

Commits
-------
  [Promotion] Add archivedAt to Promotion
  [Promotion] Add promotion archiving
  [Promotion][Behat] Add promotion archiving tests
  [Promotion] Add PromotionArchivalEligibilityChecker class
  [Api][Promotion] Add archivedAt to promotion
  Fix phpstan
  [Behat][Ui] Add a method to check if a promotion exists without opening the index page
  [Behat][Ui] Add missing method
  [Behat] Move archived promotion test to receiving_discount folder
2024-02-22 17:58:12 +01:00
Grzegorz Sadowski
7852fd6f4f
[API][Shop] Minor clean up of address contract tests 2024-02-22 15:34:33 +01:00
Wojdylak
dce6814d9c
[Api][Shop][Adjustment] Ensure order item belongs to passed order 2024-02-21 13:54:31 +01:00
Wojdylak
0146289e2b
[Api][Admin] Add recursively return adjustments for order item 2024-02-21 12:31:19 +01:00
Wojdylak
09b1a09f9d
[Api][Promotion] Add archivedAt to promotion 2024-02-17 20:31:29 +01:00
Kamil Grygierzec
7c067d33a2
[Zone] Fix serialization groups and add missing contract tests 2024-02-13 13:10:46 +01:00
Kamil Grygierzec
fe0ff72d2b
[Order] Add missing serialization groups 2024-02-13 13:10:45 +01:00
Rafikooo
496a6ac474
[Unit] Add tests for validating sales statistics request parameters 2024-01-17 14:22:20 +01:00
Jacob Tobiasz
ed578b3952
feature #15660 [API] Finish covering managing orders (TheMilek)
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                                                          |

<!--
 - 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
-------
  Cover handling order shipment
  Cover accessing order from payments and shipments
  Cover preventing to view customers cart from the orders resource
  Remove no more valid scenarios
  Use SectionProvider in OrderExtension
  Move applyToCollection logic to private method and use in both cases
  Rename fulfilled_order file to fulfilled
  Add parameter for order state to filter out and fix the OrdrerExtension logic
2023-12-20 19:05:45 +01:00
Jacob Tobiasz
249eb7476f
minor #15639 [API][Admin] Finish covering product scenarios (NoResponseMate)
This PR was merged into the 1.13 branch.

Discussion
----------

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

Commits
-------
  [API][Admin] Finish covering product filtering
  [API][Admin] Finish covering product and product taxon sorting
  [API][Admin] More product related scenarios marked no-api
  [API][Admin] Cover seeing applied promotions on variants
  [API][Admin] Refactor viewing product suite split
  [API] Finish covering viewing product attributes
  [API][Admin] Cover managing product associations
  Cleanup
  [API] Cover viewing details of a product
  [Behat] Update step names in scenarios after changing name of steps
2023-12-20 18:48:40 +01:00
Kamil Grygierzec
99b2cacbd3
Cover contract tests 2023-12-20 17:38:40 +01:00
Kamil Grygierzec
fccadad26f
Rename fulfilled_order file to fulfilled 2023-12-20 16:01:05 +01:00
Kamil Grygierzec
fc6aea03a9
Cover preventing to view customers cart from the orders resource 2023-12-20 16:01:04 +01:00
Jan Goralski
a9679a9591
[API][Admin] Cover managing product associations 2023-12-20 13:47:53 +01:00
Grzegorz Sadowski
ae9ba0fe30
Merge branch '2.0' into api-platform-3
* 2.0: (172 commits)
  [Admin] Change name of official support section in menu and adjust translations
  Add all translations & change label
  Add business support CTA to admin panel
  [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
  [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
  ...
2023-12-15 14:45:38 +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
Wojdylak
e8f1a0a831
[ApiBundle] Add contract tests for ProductTaxon resource 2023-12-13 15:02:43 +01:00
Jacob Tobiasz
ac519402b9
Add handling the GetCustomerStatistics query 2023-12-11 13:18:09 +01:00
Wojdylak
05261ace11
[ProductBundle] Add unique entity constraint to ProductOptionTranslation and ProductOptionValueTranslation 2023-12-06 13:56:09 +01:00
Grzegorz Sadowski
079766a2c2
feature #15539 [API][Admin] Promotion coupons management(CRUD) (NoResponseMate, 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 | -                      |
| License         | MIT                                                          |

Commits
-------

47153967eb [API][Admin] Browsing coupons
41efb5f437 [API][Admin] Sorting coupons
cb3770b564 [API][Admin] Deleting coupons
9b884466f4 [API][Admin] Creating coupons
54b87d0913 [API][Admin] Updating coupons
ae13ab3969 [API][Admin] Validating coupons
854393e293 Add coupons to payload in PromotionCouponsTest
6d33557dc9 Add api test for coupon_unique_code_validation.feature
440a75ab83 Resolve phpstan issues
e6f4b2b344 Add PromotionCouponCannotBeRemoved to code mapping
c0ac149d0e [ApiBundle] Add promotion coupon endpoint as a subresource
41ed0f33d5 [ApiBundle] Add PromotionCouponPromotionFilter class
08251e45c3 [ApiBundle] Resolve phpstan issues
e82780e1c0 [ApiBundle] Add to test information abut PromotionCouponPromotionFilter
2023-12-01 13:23:42 +01:00
Wojdylak
9d6f54e458 [Api][Test] Update promotion test response check 2023-12-01 08:15:24 +01:00