Commit graph

1117 commits

Author SHA1 Message Date
Wojdylak
25c9610f55
[Api][Admin] Add constraint to product review 2024-02-28 12:58:54 +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
Jan Góralski
a76383c691
minor #15905 [Api][Shop] Improve product variant tests (Wojdylak)
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
-------
  [Api][Shop][ProductVariant] Move response to product_variant folder
2024-02-27 09:56:39 +01:00
Jan Góralski
eaf4630388
minor #15894 [API][Shop] Improve product attribute tests (Wojdylak)
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
-------
  [API][Shop] Move respons location of product tests
2024-02-27 09:40:52 +01:00
Jan Góralski
36fd00631f
minor #15902 [API][Shop] Improve product option tests (Wojdylak)
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
-------
  [Api][Shop][ProductOption] Move response to product_option folder
  [Api][Shop][ProductOption] Remove createdAt and updatedAt properties form response
2024-02-27 09:39:43 +01:00
Jan Góralski
ce505fcd3e
minor #15901 [Api][Shop] Improve product image tests (Wojdylak)
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
-------
  [Api][Shop][ProductImage] Move response to product_image folder
2024-02-27 09:25:58 +01:00
Jan Góralski
dba0cdf715
minor #15899 [Api][Shop]Improve product taxon tests (Wojdylak)
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
-------
  [Api][Shop][ProductTaxon] Move response to product_taxon folder
2024-02-27 09:24:56 +01:00
Jan Góralski
780b6d9d21
minor #15898 [Api][Shop][ProductReview] Add test to check email requirement (Wojdylak)
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
-------
  [Api][Shop][ProductReview] Add test to check email requirement
2024-02-27 09:24:21 +01:00
Wojdylak
cedcf9855c
[Api][Shop][ProductVariant] Move response to product_variant folder 2024-02-27 08:37:24 +01:00
Wojdylak
2f9183c233
[Api][Shop][ProductOption] Move response to product_option folder 2024-02-26 15:55:42 +01:00
Wojdylak
3d83dc1ad4
[Api][Shop][ProductImage] Move response to product_image folder 2024-02-26 15:39:56 +01:00
Wojdylak
512529f72f
[Api][Shop][ProductReview] Add test to check email requirement 2024-02-26 14:46:29 +01:00
Rafał Jaskulski
8d195cc4fe
minor #15897 [Api][Shop][ProductAssociationType] Remove createdAt and updatedAt properties from response (Wojdylak)
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
-------
  [Api][Shop][ProductAssociationType] Remove createdAt and updatedAt properties from response
2024-02-26 14:46:23 +01:00
Wojdylak
190df9e5e4
[Api][Shop][ProductTaxon] Move response to product_taxon folder 2024-02-26 14:43:33 +01:00
Wojdylak
8aeca595cf
[Api][Shop][ProductAssociationType] Remove createdAt and updatedAt properties from response 2024-02-26 13:28:36 +01:00
Karol
657ddf2f44
minor #15878 [API][Shop] Improvements for customer account verification (GSadee)
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<!-- 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] Remove serializing unnecessary fields for ResendVerificationEmail and VerifyCustomerAccount commands
  [API][Shop] Add contract test + improvements for verifying customer account
  [API][Shop] Minor exception message improvement for verifying customer account
2024-02-26 09:01:13 +01:00
Wojdylak
cc5f2b3311
[API][Shop] Move respons location of product tests 2024-02-26 08:41:13 +01:00
Grzegorz Sadowski
a4b192a449
[API] Fix OrderPlacerTrait 2024-02-26 06:59:46 +01:00
Grzegorz Sadowski
55d53ce171
[API] Fix contract tests 2024-02-26 06:59:46 +01:00
Grzegorz Sadowski
0f4e43777c
[API][Admin] Fix adjustment contract tests 2024-02-26 06:59:45 +01:00
Grzegorz Sadowski
db3934d504
[API] Improve adjustment endpoints' responses 2024-02-26 06:59:45 +01:00
Grzegorz Sadowski
e3fbaa2296
[API][Shop] Add contract test + improvements for verifying customer account 2024-02-26 06:59:33 +01:00
Jacob Tobiasz
cad9075755
Adjust ZoneMembers IRIs to the new identifier 2024-02-24 18:08:55 +01:00
Rafał Jaskulski
7a5b8faf64
minor #15875 [API][Shop] Improvements for customer endpoints (GSadee)
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<!-- 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 customer contract tests
  [API][Shop] Minor improvement for RegisterShopUser command
  [API][Shop] Add phoneNumber and birthday fields to customer
  [API][Shop] Minor improvement for resetting password command and configuration
2024-02-23 19:05:06 +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
Jan Góralski
5d825a965c
minor #15872 [API][Shop] Add missing contract test for getting only countries from current channel (GSadee)
This PR was merged into the 1.13 branch.

Discussion
----------

| Q               | A                                                            |
|-----------------|--------------------------------------------------------------|
| Branch?         | 1.13 <!-- see the comment below -->                  |
| Bug fix?        | no                                                      |
| New feature?    | no                                                      |
| BC breaks?      | no                                                      |
| Deprecations?   | no<!-- don't forget to update the UPGRADE-*.md file --> |
| Related tickets | Based on https://github.com/Sylius/Sylius/pull/15871 |
| 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 countries from current channel
2024-02-23 16:08:54 +01:00
Jan Góralski
26c2577796
minor #15877 [API][Shop] Minor improvements for contact request (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 improvements for contact request
2024-02-23 14:15:03 +01:00
Grzegorz Sadowski
50e0f333c6
[API][Shop] Minor improvements for contact request 2024-02-23 13:37:25 +01:00
Grzegorz Sadowski
1a51798ccf
[API][Shop] Add phoneNumber and birthday fields to customer 2024-02-23 12:26:52 +01:00
Grzegorz Sadowski
2e0d6593e0
[API][Shop] Minor clean up of customer contract tests 2024-02-23 12:17:18 +01:00
Rafikooo
6d9a9765a8
[Behat] Improve Setup\OrderContext class codestyle 2024-02-23 11:56:40 +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
Grzegorz Sadowski
1fc7d42a7a
[API] Add missing shop GET endpoint for province 2024-02-23 10:11:34 +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
6df1577cda
[API][Admin] Fix address contract tests 2024-02-22 15:49:47 +01:00
Grzegorz Sadowski
7852fd6f4f
[API][Shop] Minor clean up of address contract tests 2024-02-22 15:34:33 +01:00
Grzegorz Sadowski
79fd759597
minor #15864 [API][Admin][Shop] Fix returned adjustments for order item (Wojdylak)
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
-------

0146289e2b [Api][Admin] Add recursively return adjustments for order item
dce6814d9c [Api][Shop][Adjustment] Ensure order item belongs to passed order
2024-02-22 13:21:33 +01:00
Grzegorz Sadowski
c5282b5bb0
minor #15861 [API] Cover adjustments serialization on OrderItemUnit and Shipment resources (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 | #15788
| License         | MIT


Commits
-------

9bea130b91 [Api] Add subresource operation for orderItemUnit adjustments
32305d2ab4 [Api][Admin] Add subresource operation for shipment adjustments
56f7b2b0dd [Api] Remove collection operation of adjustments
2024-02-22 12:50:08 +01:00
Wojdylak
e2afc65128
[Behat] Move archived promotion test to receiving_discount folder 2024-02-22 12:45:36 +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
56f7b2b0dd
[Api] Remove collection operation of adjustments 2024-02-20 13:56:58 +01:00
Wojdylak
32305d2ab4
[Api][Admin] Add subresource operation for shipment adjustments 2024-02-20 13:39:38 +01:00
Wojdylak
9bea130b91
[Api] Add subresource operation for orderItemUnit adjustments 2024-02-20 13:26:45 +01:00
Wojdylak
215dc694d4
[Api][ProductTaxon] Disable the ability to update product and taxon fields on productTaxon 2024-02-19 10:07:44 +01:00
Wojdylak
09b1a09f9d
[Api][Promotion] Add archivedAt to promotion 2024-02-17 20:31:29 +01:00