Commit graph

28294 commits

Author SHA1 Message Date
Ferror
9161fbe2cf [maintenance] - Ignore more files that will not be used with installed sylius 2022-11-02 19:48:24 +01:00
Mateusz Zalewski
4f6340b5f3
Merge branch '1.11' into 1.12
* 1.11:
  [Maintenance] Removal of direct unneeded dependency on proxy manager LTS #14318
  Include 1.13 branch in the PR template
2022-11-02 10:46:05 +01:00
Mateusz Zalewski
93883d80f0
minor #14508 [Maintenance] Outdated Symfony 6 conflicts removed (Rafikooo)
This PR was merged into the 1.12 branch.

Discussion
----------

| Q               | A                                                            |
|-----------------|--------------------------------------------------------------|
| Branch?         | 1.12 <!-- 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 | https://github.com/Sylius/Sylius/pull/14382                  |
| License         | MIT                                                          |

A complementary PR for this: https://github.com/Sylius/Sylius/pull/14505

Commits
-------

38db9df646 [Maintenance] Outdated Symfony 6 conflicts removed
2022-11-02 08:11:17 +01:00
Mateusz Zalewski
6ca1e012e8
bug #14505 Fix password hasher version (loic425)
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.11 branch
 - Features and deprecations must be submitted against the 1.12 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
-------

6d353ec4a9 Fix password hasher version
2022-11-02 07:58:38 +01:00
Rafikooo
38db9df646
[Maintenance] Outdated Symfony 6 conflicts removed 2022-11-02 00:19:08 +01:00
Loïc Frémont
6d353ec4a9 Fix password hasher version 2022-11-01 21:16:55 +01:00
Łukasz Chruściel
2409a2bbb5
minor #14435 Include 1.13 branch in the PR template (Zales0123)
This PR was merged into the 1.11 branch.

Discussion
----------

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

Future is now 🔥 

Commits
-------

2567730398 Include 1.13 branch in the PR template
2022-10-31 21:42:26 +01:00
Mateusz Zalewski
c4d05333d9
minor #14501 [Maintenance] Removal of direct unneeded dependency on proxy manager LTS (lchrusciel)
This PR was merged into the 1.11 branch.

Discussion
----------

| Q               | A                                                            |
|-----------------|--------------------------------------------------------------|
| Branch?         | 1.11 |
| Bug fix?        | yes                                                       |
| New feature?    | no                                                       |
| BC breaks?      | no                                                       |
| Deprecations?   | no |
| Related tickets | replacement of #14318 |
| License         | MIT                                                          |

<!--
 - Bug fixes must be submitted against the 1.11 branch
 - Features and deprecations must be submitted against the 1.12 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
-------

efcf21713c [Maintenance] Removal of direct unneeded dependency on proxy manager LTS #14318
2022-10-31 21:24:13 +01:00
Łukasz Chruściel
efcf21713c
[Maintenance] Removal of direct unneeded dependency on proxy manager LTS #14318 2022-10-31 20:29:23 +01:00
Mateusz Zalewski
d6abae31e1
Change application's version to v1.12.1-dev 2022-10-31 15:35:58 +01:00
Mateusz Zalewski
74dd42a09e
Generate changelog for v1.12.0 2022-10-31 15:34:34 +01:00
Mateusz Zalewski
1076c6f0e6
Change application's version to v1.12.0 2022-10-31 15:30:52 +01:00
Mateusz Zalewski
9c7fa36336
minor #14400 [Maintenance] extra.symfony.require configuration introduced (Rafikooo)
This PR was merged into the 1.12 branch.

Discussion
----------

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

I didn't find this option documented in the Symfony docs, just a little info here:
https://symfony.com/doc/current/setup/upgrade_major.html#2-update-to-the-new-major-version-via-composer
and some info quoted from Symfony Cast - upgrade Symfony tutorial:
"This is a performance optimization from Flex: it basically makes sure that Flex only considers Symfony packages that match this version".
It looks like it may save some time working with the `composer update` command

Commits
-------

85482f5049 [Maintenance] extra.symfony.require configuration introduced
2022-10-31 15:17:33 +01:00
Ernest Warwas
b01a1ffdd3
minor #14499 Separate pipeline for non-JS tests on unstable Symfony version (Zales0123)
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 |  |
| License         | MIT                                                          |

To be sure the upcoming Symfony 6.2 version does not result in any **major** problems, let's test it already 💃 I've decided to add a separate job, to be able to simplify it a little bit. Also, I've added `continue-on-error: true` flag, as it does not have to pass fully (some minor tweaks could be needed after the 6.2 release - and it's **ok**), we just need to see if there are any very serious problems we need to address right now. 

For some reason 🤷‍♂️ If run all together Behat scenarios were spectacularly failing after ~4k of them 💥 As a quick fix for this bug (that needs to be investigated for sure), I've split running Behat scenarios into multiple commands.

I believe we could keep this pipeline after the Symfony 6.2 release and test with it Symfony 6.3 already. Maybe it would make supporting newer Symfony versions easier 🖖 

Commits
-------

04004748ec Separate pipeline for non-JS tests on unstable Symfony version
2022-10-31 14:59:57 +01:00
Mateusz Zalewski
9c7bd410d0
Merge branch '1.11' into 1.12
* 1.11:
  Change application's version to v1.11.11-dev
  Generate changelog for v1.11.10
  Change application's version to v1.11.10
2022-10-31 14:26:11 +01:00
Mateusz Zalewski
5444c7b5d6
Change application's version to v1.11.11-dev 2022-10-31 14:19:56 +01:00
Mateusz Zalewski
056e63ffb4
Generate changelog for v1.11.10 2022-10-31 14:19:51 +01:00
Mateusz Zalewski
3f7a8b742b
Change application's version to v1.11.10 2022-10-31 14:18:31 +01:00
Mateusz Zalewski
04004748ec
Separate pipeline for non-JS tests on unstable Symfony version 2022-10-31 14:09:52 +01:00
Mateusz Zalewski
c738634e17
minor #14498 Allow stable Resource (1.10), Grid (1.12) and Fixtures (1.8) (Zales0123)
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 |  |
| License         | MIT                                                          |

Stable >>>>>>> unstable 🐴 


Commits
-------

79171259c9 Bump to stable Resource (1.10) and Grid (1.12)
b857309c40 Allow stable 1.8 of FixturesBundle
2022-10-31 13:44:02 +01:00
Mateusz Zalewski
b857309c40
Allow stable 1.8 of FixturesBundle 2022-10-31 13:00:53 +01:00
Mateusz Zalewski
79171259c9
Bump to stable Resource (1.10) and Grid (1.12) 2022-10-31 13:00:31 +01:00
Mateusz Zalewski
bf7e8ff0dc
Merge branch '1.11' into 1.12
* 1.11:
  [README] Switch Sylius naming from platform to framework
2022-10-31 11:05:21 +01:00
Mateusz Zalewski
6ec92fd5a2
minor #14496 [README] Switch Sylius naming from platform to framework (lchrusciel)
This PR was merged into the 1.11 branch.

Discussion
----------

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

As said during the keynote speech on SyliusCon, we want to move back to naming Sylius as framework 

<!--
 - Bug fixes must be submitted against the 1.11 branch
 - Features and deprecations must be submitted against the 1.12 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
-------

1390b99508 [README] Switch Sylius naming from platform to framework
2022-10-31 11:05:05 +01:00
Łukasz Chruściel
1390b99508
[README] Switch Sylius naming from platform to framework 2022-10-31 10:54:24 +01:00
Mateusz Zalewski
2af221cd0e
refactor #14490 [Maintenance] Kernel cleanup (Rafikooo)
This PR was merged into the 1.12 branch.

Discussion
----------

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

We can remove the bundle registration as it is included in `MicroKernelTrait`
<!--
 - Bug fixes must be submitted against the 1.11 branch
 - Features and deprecations must be submitted against the 1.12 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
-------

e4c4408722 Kernel cleanup
2022-10-31 07:54:44 +01:00
Rafikooo
e4c4408722
Kernel cleanup 2022-10-30 14:29:42 +01:00
Mateusz Zalewski
bc5983a220
Merge branch '1.11' into 1.12
* 1.11:
  [Order] Skip empty flush during expired carts removal
  Update src/Sylius/Bundle/OrderBundle/Remover/ExpiredCartsRemover.php
  Adding batching to the expired carts remover
2022-10-26 13:23:08 +02:00
Mateusz Zalewski
1f80a82415
bug #14482 Adding batching to the expired carts remover v2 (mamazu, lchrusciel)
This PR was merged into the 1.11 branch.

Discussion
----------

| Q               | A                                                            |
|-----------------|--------------------------------------------------------------|
| Branch?         | 1.11 |
| Bug fix?        | yes                                                       |
| New feature?    | no                                                       |
| BC breaks?      | no                                                       |
| Deprecations?   | no |
| Related tickets | Backporting and fixing #14481 |
| License         | MIT                                                          |

<!--
 - Bug fixes must be submitted against the 1.11 branch
 - Features and deprecations must be submitted against the 1.12 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
-------

eeeafbae88 Adding batching to the expired carts remover
5b4d7b305a Update src/Sylius/Bundle/OrderBundle/Remover/ExpiredCartsRemover.php
fa86a8c7ce [Order] Skip empty flush during expired carts removal
2022-10-26 13:21:06 +02:00
Łukasz Chruściel
fa86a8c7ce
[Order] Skip empty flush during expired carts removal 2022-10-26 12:20:46 +02:00
mamazu
5b4d7b305a
Update src/Sylius/Bundle/OrderBundle/Remover/ExpiredCartsRemover.php
Co-authored-by: Łukasz Chruściel <lchrusciel@gmail.com>
2022-10-26 12:10:25 +02:00
mamazu
eeeafbae88
Adding batching to the expired carts remover 2022-10-26 12:10:16 +02:00
Łukasz Chruściel
5732c5c6c1
feature #14481 Adding batching to the expired carts remover (mamazu)
This PR was merged into the 1.12 branch.

Discussion
----------

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

When running the clear cart remover it breaks the database or the memory usage, whatever dies first. So in this we flush regularly to also deal with big datasets and lots of carts to remove.

Commits
-------

0889f172b8 Adding batching to the expired carts remover
9e917d7c58 Update src/Sylius/Bundle/OrderBundle/Remover/ExpiredCartsRemover.php
2022-10-26 12:01:36 +02:00
mamazu
9e917d7c58
Update src/Sylius/Bundle/OrderBundle/Remover/ExpiredCartsRemover.php
Co-authored-by: Łukasz Chruściel <lchrusciel@gmail.com>
2022-10-26 11:59:18 +02:00
mamazu
0889f172b8
Adding batching to the expired carts remover 2022-10-26 11:11:33 +02:00
Grzegorz Sadowski
e2b2a1748d
Merge branch '1.11' into 1.12
* 1.11:
  [Maintenance] Allow APIP 2.7.2
2022-10-26 08:26:33 +02:00
Grzegorz Sadowski
4a57e99a6a
bug #14479 [Maintenance] Allow APIP 2.7.2 (NoResponseMate)
This PR was merged into the 1.11 branch.

Discussion
----------

| Q               | A                                                            |
|-----------------|--------------------------------------------------------------|
| Branch?         | 1.11                  |
| Bug fix?        | yes                                                       |
| New feature?    | no                                                       |
| BC breaks?      | no                                                       |
| Deprecations?   | no |
| Related tickets | #14442, #14420                      |
| License         | MIT                                                          |

Commits
-------

55ee86e038 [Maintenance] Allow APIP 2.7.2
2022-10-26 08:24:50 +02:00
Jan Goralski
55ee86e038
[Maintenance] Allow APIP 2.7.2 2022-10-25 08:33:22 +02:00
Grzegorz Sadowski
82c9fb5d6c
minor #14477 [Docs] Add warning about restricting Symfony version before Sylius installation (coldic3)
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?   |  |
| Related tickets |  |
| License         | MIT                                                          |

![image](https://user-images.githubusercontent.com/13316080/197530748-203ce49a-cc5b-4c6e-afba-ec0e666bf5e4.png)


Commits
-------

70d2229d85 [Docs] Add warning about restricting Symfony version before Sylius installation
2022-10-25 07:52:18 +02:00
Kevin Kaniaburka
70d2229d85
[Docs] Add warning about restricting Symfony version before Sylius installation 2022-10-24 14:56:08 +02:00
Rafał Jaskulski
cf824f52a3
minor #14472 Bring back security.authentication_manager alias if needed (Zales0123)
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                                                          |

We removed this alias [here](https://github.com/Sylius/Sylius/pull/13969/files#diff-676a77498218f1c920ba118a53a9ee921be3cf82f1f35faa5e96a2f2e9aa1b9eL272). I believe it's a BC break and this alias should still be there (of course, when the base service is registered - which is only in Symfony 5) 🖖 

Commits
-------

d57de23fb6 Bring back security.authentication_manager alias if needed
2022-10-24 12:02:01 +02:00
Mateusz Zalewski
d57de23fb6
Bring back security.authentication_manager alias if needed 2022-10-24 11:08:21 +02:00
Grzegorz Sadowski
3403172bd0
Merge branch '1.11' into 1.12
* 1.11:
  Delay 1.12 release for a few days
2022-10-24 09:25:14 +02:00
Grzegorz Sadowski
25c3bad017
minor #14476 Delay 1.12 release for a few days (Zales0123)
This PR was merged into the 1.11 branch.

Discussion
----------

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

Just a little bit 💃 Ref: https://sylius-devs.slack.com/archives/C3E4BU0QH/p1666204293221989

Commits
-------

15c8724d68 Delay 1.12 release for a few days
2022-10-24 09:24:47 +02:00
Mateusz Zalewski
15c8724d68
Delay 1.12 release for a few days 2022-10-24 09:09:57 +02:00
Grzegorz Sadowski
6474bf7b1e
bug #14473 Fixes in Order serialization after changes on 1.11 (Zales0123)
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                                                          |

After the https://github.com/Sylius/Sylius/pull/14402 merge and the [removal of default normalization group](https://github.com/Sylius/Sylius/pull/14402/files#diff-5c42df62aeb90479125f3100616bad0954aef6c1137444db381398a7fc2acaf1L19-L24), some problems raised up in our contract tests. I fixed them by adding proper serialization groups, but I believe the main issue is the inconsistency between `shop:order:read` and `shop:cart:read` groups and their usage. We should take a look at it and think, how to improve it (maybe they even should be combined together 🤷‍♂️).

Commits
-------

b0baebbabd Fixes in Order serialization after changes on 1.11
2022-10-24 07:26:32 +02:00
Mateusz Zalewski
b0baebbabd
Fixes in Order serialization after changes on 1.11 2022-10-21 18:04:58 +02:00
Grzegorz Sadowski
e6bdceb6ba
Merge branch '1.11' into 1.12
* 1.11:
  [Api] fixed order normalization groups
  [Api] fixed normalization/denormalization resources groups
2022-10-21 15:02:19 +02:00
Grzegorz Sadowski
24181c20ad
bug #14471 [Api] fixed normalization/denormalization resources groups (mtarld)
This PR was merged into the 1.11 branch.

Discussion
----------

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

This PR is a follow-up of https://github.com/Sylius/Sylius/pull/14402, and attends to remove the "default" normalization context groups and specify for each operation the proper normalization/denormalization context groups.

Commits
-------

e8aa5be450 [Api] fixed normalization/denormalization resources groups
2022-10-21 14:57:22 +02:00
Grzegorz Sadowski
9aa01a545f
bug #14402 [Api] fix order normalization groups (mtarld)
This PR was merged into the 1.11 branch.

Discussion
----------

| Q               | A                                                            |
|-----------------|--------------------------------------------------------------|
| Branch?         | 1.11                 |
| Bug fix?        | yes                                                       |
| New feature?    | no                                                       |
| BC breaks?      | yes (but the API is exprimental)                                                       |
| Deprecations?   | no |
| Related tickets |                      |
| License         | MIT                                                          |

When requesting `POST /api/v2/shop/orders`, the applied normalization group is `admin:order:read` whereas it should be `shop:order:read`. This could lead to exposing unexpected data.

I think that we can remove the "default" normalization context groups and specify for each operation the proper normalization/denormalization context groups (which fixes the bug and prevent future forgets).

Commits
-------

6b0d0d13d4 [Api] fixed order normalization groups
2022-10-21 14:56:53 +02:00