Commit graph

29393 commits

Author SHA1 Message Date
Grzegorz Sadowski
85bd10e675
Remove deprecation from DefaultProductVariantResolver that should be added in 1.13 2023-09-29 12:35:59 +02:00
andriusulins
844654dce4
fallback to getter if product doesn't have an id 2023-09-29 12:35:58 +02:00
andriusulins
7e04b04cf4
added backwards compatability and deprecation message 2023-09-29 12:35:58 +02:00
andriusulins
04712ad53b
Update ProductContext 2023-09-29 12:35:58 +02:00
andriusulins
19ab3b9cd2
get default variant by id 2023-09-29 12:35:58 +02:00
Grzegorz Sadowski
f7fcf8e9a9
Change application's version to v1.12.12-dev 2023-09-18 11:17:28 +02:00
Grzegorz Sadowski
f997146919
Generate changelog for v1.12.11 2023-09-18 11:16:40 +02:00
Grzegorz Sadowski
33d3f0cbcd
Change application's version to v1.12.11 2023-09-18 11:16:38 +02:00
Jacob Tobiasz
4fb30dc887
minor #15311 [API] fix prefix url on locale api path (oallain)
This PR was merged into the 1.12 branch.

Discussion
----------

| Q               | A                                                            |
|-----------------|--------------------------------------------------------------|
| Branch?         | 1.12          |
| 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
-------
  fix prefix url on locale api path
  fix prefix url on order api path
2023-09-18 06:28:24 +02:00
Jacob Tobiasz
eea101751d
docs #15263 Update default Rules of cart promotion (zairigimad)
This PR was merged into the 1.12 branch.

Discussion
----------

| Q               | A                                                            |
|-----------------|--------------------------------------------------------------|
| Branch?         | 1.12 or 1.13 <!-- see the comment below -->                  |
| Bug fix?        | no                                                      |
| New feature?    | no                                                       |
| BC breaks?      | no                                                       |
| Deprecations?   | no |
| Related tickets | fixes #X, partially #Y, mentioned in #Z                      |
| 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
-------
  Update default Rules of cart promotion
  Update docs/book/orders/cart-promotions.rst
  Update cart-promotions.rst
2023-09-18 06:27:53 +02:00
Sylius Bot
a676b30d87 [CS][DX] Refactor 2023-09-18 06:12:21 +02:00
Zairig Imad
847eb18f0c
Update cart-promotions.rst 2023-09-17 11:55:51 +01:00
Olivier ALLAIN
dc55cf4b21 fix prefix url on order api path 2023-09-16 17:47:12 +02:00
Olivier ALLAIN
83ad4b8b00 fix prefix url on locale api path 2023-09-15 18:55:13 +02:00
Grzegorz Sadowski
c8fdef8d91
bug #15277 Prevent removing product/taxon if it is already used in promotion rule (TheMilek, NoResponseMate)
This PR was merged into the 1.12 branch.

Discussion
----------

| Q               | A                                                            |
|-----------------|--------------------------------------------------------------|
| Branch?         | 1.12 <!-- see the comment below -->                  |
| Bug fix?        | yes                                                       |
| New feature?    | no                                                       |
| BC breaks?      | no                                                      |
| Deprecations?   | no <!-- don't forget to update the UPGRADE-*.md file --> |
| Related tickets | fixes https://github.com/Sylius/Sylius/issues/15201                   |
| 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
-->
In https://github.com/Sylius/Sylius/pull/14932 we introduced a bug that was removing promotion rules after removing product, it was leading to unexpected behaviour which is described [here](https://github.com/Sylius/Sylius/issues/15201), so we decided to prevent removing product/taxon if it is used by promotion rules

Commits
-------

ff0eeb9949 [UI] Prevent removing product if it is already used in promotion rule
2cdb8e8b90 [API] Prevent removing product if it is already used in promotion rule
8431d9bbdf Prevent removing taxon if it is already used in promotion rule
1b8e2e4c17 Adjust configuration
165ba474e5 Update upgrade file
e4a6af47bd [PHPStan] Fix
b1c9f493c3 Update `ProductCannotBeRemoved` message
2023-09-15 10:50:09 +02:00
Jan Goralski
b1c9f493c3
Update ProductCannotBeRemoved message 2023-09-15 10:16:10 +02:00
TheMilek
e4a6af47bd
[PHPStan] Fix 2023-09-15 09:08:09 +02:00
TheMilek
165ba474e5
Update upgrade file 2023-09-15 08:49:39 +02:00
TheMilek
1b8e2e4c17
Adjust configuration 2023-09-15 08:49:38 +02:00
TheMilek
8431d9bbdf
Prevent removing taxon if it is already used in promotion rule 2023-09-15 08:49:37 +02:00
TheMilek
2cdb8e8b90
[API] Prevent removing product if it is already used in promotion rule 2023-09-15 08:49:37 +02:00
TheMilek
ff0eeb9949
[UI] Prevent removing product if it is already used in promotion rule 2023-09-14 16:33:19 +02:00
Grzegorz Sadowski
67e197213c
bug #12519 [ProductBundle] Add validation for product meta keywords & description (DieterHolvoet, jakubtobiasz)
This PR was merged into the 1.12 branch.

Discussion
----------

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

<!--
 - Bug fixes must be submitted against the 1.7 or 1.8 branch (the lowest possible)
 - Features and deprecations must be submitted against the master 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
-------

bfd58f38e7 Add validation for product meta keywords & description
d44fb803ab Provide Behat scenarios covering validating meta keywords and meta description fields
96586c8c13 Fix CI
2023-09-14 15:53:28 +02:00
Grzegorz Sadowski
875171e8c0
bug #15290 Add a note about payment-related events (jakubtobiasz)
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 | closes #12541
| License         | MIT

We agreed there is no good way to resolve that issue in `1.x` version, so we decided to make the docs as clear as it's possible in that matter.

![CleanShot 2023-09-13 at 04 49 57](https://github.com/Sylius/Sylius/assets/80641364/98e48e24-3ef7-47d6-a392-845d0b6dba24)

P.S. I've created a task for considering how to fix this in later Sylius versions :).

Commits
-------

cc6cde8e6a Add a note about payment-related events
2023-09-14 14:51:30 +02:00
Jacob Tobiasz
cc6cde8e6a Add a note about payment-related events 2023-09-14 14:47:51 +02:00
Grzegorz Sadowski
bc117aba6d
bug #15268 Fix configuring amount for cart promotions item percentage discount actions (TheMilek, NoResponseMate)
This PR was merged into the 1.12 branch.

Discussion
----------

| Q               | A                                                            |
|-----------------|--------------------------------------------------------------|
| Branch?         | 1.12 <!-- see the comment below -->                  |
| Bug fix?        | yes                                                       |
| New feature?    | no                                                      |
| 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
-->
Same issue like [here](https://github.com/Sylius/Sylius/pull/15214)

Commits
-------

92562de372 Fix configuring amount for cart promotions item percentage discount actions
eb13a2969f [Behat][Promotion] Update percentage decimal places tests
2023-09-14 13:13:27 +02:00
Grzegorz Sadowski
c324c2a66d
bug #15272 Fix "jumping" taxons while moving up or down (igormukhingmailcom, jakubtobiasz)
This PR was merged into the 1.12 branch.

Discussion
----------

| Q               | A                                                            |
|-----------------|--------------------------------------------------------------|
| Branch?         | 1.12
| Bug fix?        | yes
| New feature?    | no
| BC breaks?      | no
| Deprecations?   | no
| Related tickets | fixes #9909, based on #11905
| License         | MIT

Basing on #11905 I removed the "feature" part, to merge the "bug-fixing" part into `1.12`. We'll consider later adding "Move top" and "Move end" features, but probably it'll be considered in terms of `2.0` with the new Admin Panel.

Thanks @igormukhingmailcom for your work! I'm happy we're finally going to merge your commits :).

Previously:
![CleanShot 2023-09-05 at 15 37 49](https://github.com/Sylius/Sylius/assets/80641364/145190fb-29d0-4acf-80d9-a6d90529ce01)

Now:
![CleanShot 2023-09-05 at 15 39 33](https://github.com/Sylius/Sylius/assets/80641364/91e1728e-9d92-48db-a26b-1623c8146d50)


Commits
-------

6ea93e386a Fixed: Moving taxons up and down at admin
f2025429ab Added: Move taxon to the top/end buttons at admin
a1aaac2971 Leave only bug-related code and extract the position-related logic
2f312dbded Revert bc promise breaking changes
a2eeee131a Cover "jumping" taxons while moving with Behat scenarios
c331d61281 Remove redundant TaxonPositioner service
b4bfdf3a7d Provide post-CR fixes
2023-09-14 09:19:11 +02:00
Zairig Imad
7972eb4e9e Cart promotion Action Update 2023-09-13 19:19:20 +02:00
Jacob Tobiasz
0cfddccda6 Enable Sylius API for app environments 2023-09-13 19:13:28 +02:00
Jan Goralski
772bb6a16d [Maintenance] Update dev symfony version to 5.4.* 2023-09-13 19:11:40 +02:00
Jan Goralski
eb13a2969f
[Behat][Promotion] Update percentage decimal places tests 2023-09-13 16:26:22 +02:00
Jacob Tobiasz
96586c8c13
Fix CI 2023-09-13 15:08:08 +02:00
Jacob Tobiasz
b4bfdf3a7d
Provide post-CR fixes 2023-09-13 14:51:22 +02:00
Jacob Tobiasz
c331d61281
Remove redundant TaxonPositioner service 2023-09-13 14:51:00 +02:00
Jacob Tobiasz
a2eeee131a
Cover "jumping" taxons while moving with Behat scenarios 2023-09-13 14:51:00 +02:00
Jacob Tobiasz
2f312dbded
Revert bc promise breaking changes 2023-09-13 14:51:00 +02:00
Jacob Tobiasz
a1aaac2971
Leave only bug-related code and extract the position-related logic 2023-09-13 14:51:00 +02:00
Igor Mukhin
f2025429ab
Added: Move taxon to the top/end buttons at admin 2023-09-13 14:51:00 +02:00
Igor Mukhin
6ea93e386a
Fixed: Moving taxons up and down at admin 2023-09-13 14:51:00 +02:00
Jacob Tobiasz
d44fb803ab
Provide Behat scenarios covering validating meta keywords and meta description fields 2023-09-13 13:53:22 +02:00
Dieter Holvoet
bfd58f38e7
Add validation for product meta keywords & description 2023-09-13 07:24:31 +02:00
Sylius Bot
e1619cb667 [CS][DX] Refactor 2023-09-12 14:46:55 +02:00
Grzegorz Sadowski
e3262aec12
bug #12894 Make CheckoutResolver fail safe (vvasiloi, NoResponseMate)
This PR was merged into the 1.12 branch.

Discussion
----------

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

Some time ago I encountered several issues with the CheckoutResolver failing because of some assumptions that were not met by my customizations. Unfortunately, I can't remember the context.
This PR makes it fail safe in case those assumptions are not met and covers it with PHPSpec tests.


Commits
-------

5154b81cff make CheckoutResolver fail safe
3e1b62bb6d CheckoutResolver should not run on routes other than shop checkout
678bd672f9 [Maintenance] Note checkout pattern update
2023-09-08 14:48:30 +02:00
Jan Goralski
678bd672f9
[Maintenance] Note checkout pattern update
[Maintenance] Cleanup code
2023-09-08 13:14:43 +02:00
Grzegorz Sadowski
e18010ac57
bug #15280 Prevent throwing 500 while finalizing an order when at least one item has become tracked (jakubtobiasz)
This PR was merged into the 1.12 branch.

Discussion
----------

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



Commits
-------

529678ecce Prevent throwing 500 while finalizing an order when at least one item has become tracked
f8a5b221d9 Add a scenario covering finalizing order's payment when a one item has become tracked
2023-09-08 11:14:00 +02:00
Jacob Tobiasz
f8a5b221d9
Add a scenario covering finalizing order's payment when a one item has become tracked 2023-09-07 10:21:27 +02:00
Jacob Tobiasz
529678ecce
Prevent throwing 500 while finalizing an order when at least one item has become tracked 2023-09-07 10:21:09 +02:00
Victor Vasiloi
3e1b62bb6d
CheckoutResolver should not run on routes other than shop checkout 2023-09-06 14:16:04 +02:00
Victor Vasiloi
5154b81cff
make CheckoutResolver fail safe 2023-09-06 14:16:04 +02:00
TheMilek
92562de372
Fix configuring amount for cart promotions item percentage discount actions 2023-09-05 08:44:44 +02:00