Commit graph

29029 commits

Author SHA1 Message Date
Victor Vasiloi
ec55940c00
Update docs/cookbook/images/image-on-entity.rst
Co-authored-by: Jan Góralski <jan.wojciech.goralski@gmail.com>
2023-06-09 12:14:54 +02:00
Victor Vasiloi
8cff31946a
add docs for adding image to entity via one-to-one association 2023-06-09 12:14:54 +02:00
Rafał Jaskulski
9f90dbeee8
minor #15075 Add a conflict for doctrine/orm:2.15.2 (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 | 
| License         | MIT


Commits
-------
  Add a conflict for doctrine/orm:2.15.2
2023-06-03 08:57:38 +02:00
Jakub Tobiasz
b812ff2ff1
Add a conflict for doctrine/orm:2.15.2 2023-06-03 08:24:59 +02:00
Rafał Jaskulski
b7bb02bffa
minor #15059 Upgrade PHPStan to level 5 (lruozzi9)
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 | partially #14019                       |
| License         | MIT                                                          |


Commits
-------
  [PHPStan] Bump to level 5 (#14019)
  [PHPStan] Fix PHPStan level 5 class inheritance errors (#14019)
  [PHPStan] Fix PHPStan to continue support for Sf < 6 (#14019)
  [PHPStan] Fix non nullable variable (#14019)
  [PHPStan] Fix Psalm (#14019)
  [Fixture] Revert injected repository type
  Fix typo
2023-06-02 15:25:18 +02:00
Grzegorz Sadowski
ccc899de4a
bug #15014 Change prority for custom ChannelContext (l-vo)
This PR was merged into the 1.12 branch.

Discussion
----------

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

ChannelContext priority is 0, not -128, see 8b130ffa26/src/Sylius/Bundle/ChannelBundle/Resources/config/services.xml (L43-L47)

Commits
-------

2e766c97cd Change prority for custom ChannelContext
2023-06-01 07:52:59 +02:00
Rafikooo
cfa4cd187d
Fix typo 2023-05-31 16:08:27 +02:00
Rafikooo
6750237274
[Fixture] Revert injected repository type 2023-05-31 16:08:08 +02:00
Lorenzo Ruozzi
0fe04a6ee9
[PHPStan] Fix Psalm (#14019) 2023-05-31 15:56:30 +02:00
Lorenzo Ruozzi
8b9373cd7f
[PHPStan] Fix non nullable variable (#14019) 2023-05-31 15:56:30 +02:00
Lorenzo Ruozzi
1e73d4de86
[PHPStan] Fix PHPStan to continue support for Sf < 6 (#14019) 2023-05-31 15:56:30 +02:00
Lorenzo Ruozzi
878ca45ba5
[PHPStan] Fix PHPStan level 5 class inheritance errors (#14019) 2023-05-31 15:56:30 +02:00
Lorenzo Ruozzi
7aee835959
[PHPStan] Bump to level 5 (#14019) 2023-05-31 15:56:30 +02:00
Jacob Tobiasz
4154195166
refactor #15065 [CS][DX] Refactor (github-actions[bot])
This PR was merged into the 1.12 branch.

Discussion
----------

This PR has been generated automatically.
For more details see [refactor.yaml](/Sylius/Sylius/blob/1.12/.github/workflows/refactor.yaml).

Commits
-------
  [CS][DX] Refactor
2023-05-31 11:26:28 +02:00
Jacob Tobiasz
c5c77e6247
minor #15069 [Psalm] CacheableSupportsMethodInterface in the deprecation list (Rafikooo)
This PR was merged into the 1.12 branch.

Discussion
----------

| Q               | A                                                            |
|-----------------|--------------------------------------------------------------|
| Branch?         | 1.12 and 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 --> |
| 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
-------
  [Psalm] Add CacheableSupportsMethodInterface to the deprecated classes list
2023-05-31 09:17:10 +02:00
Rafikooo
5e8ac69238
[Psalm] Add CacheableSupportsMethodInterface to the deprecated classes list 2023-05-31 08:28:56 +02:00
Sylius Bot
c2195c4a49 [CS][DX] Refactor 2023-05-29 02:26:06 +00:00
Grzegorz Sadowski
0f44a28186
Change application's version to v1.12.9-dev 2023-05-25 15:07:24 +02:00
Grzegorz Sadowski
063009632e
Generate changelog for v1.12.8 2023-05-25 15:06:55 +02:00
Grzegorz Sadowski
4a0b97cd80
Change application's version to v1.12.8 2023-05-25 15:06:53 +02:00
Grzegorz Sadowski
f3edafa872
bug #15010 Lower the sylius.context.locale tag priority on RequestHeaderBasedLocalContext (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 #14868
| License         | MIT

Once the `RequestHeaderBasedLocalContext` service introduced, it took a priority over the `RequestBasedLocaleContext` service.

AFAIR the main purpose of the `RequestHeaderBasedLocalContext` service was aimed to allow a language switching for the API, but it affected the UI part too. I decided to lower the priority, so URL is considered as a first.

Any tests will be delivered once I decide how to test it 🥶.

Commits
-------

ce30820c2d Lower the sylius.context.locale tag priority on RequestHeaderBasedLocalContext
88bb5f1548 Cover locale resolving with functional tests
1ef726d1ff Remove redundant fixtures from LocaleResolving functional test
7ff4567187 Add purging a database before CartCollector no channel test
2023-05-25 13:22:48 +02:00
Jakub Tobiasz
7ff4567187
Add purging a database before CartCollector no channel test 2023-05-25 12:36:06 +02:00
Jakub Tobiasz
1ef726d1ff
Remove redundant fixtures from LocaleResolving functional test 2023-05-25 12:16:02 +02:00
Grzegorz Sadowski
ef6b335fdd
bug #15050 [Fix][Installer] Install Sylius 1.12 with PostgreSQL (Rafikooo)
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 | https://github.com/Sylius/Sylius/pull/14950
| 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
-------

0b412d75b2 [PostgreSQL][Installer] Handle Sylius installation with PostgreSQL
3778d14835 [Installer] Don't pass a suite parameter if not provided
2c18f307cc [ECS] Apply ecs fixes
2023-05-25 10:53:38 +02:00
Rafikooo
2c18f307cc
[ECS] Apply ecs fixes 2023-05-23 13:02:10 +02:00
Rafikooo
3778d14835
[Installer] Don't pass a suite parameter if not provided 2023-05-23 13:02:10 +02:00
Rafikooo
0b412d75b2
[PostgreSQL][Installer] Handle Sylius installation with PostgreSQL 2023-05-23 13:02:10 +02:00
Grzegorz Sadowski
fd3fbc95c0
bug #15022 [Admin] Fix inability of sorting promotion coupons and catalog promotions (NoResponseMate)
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 #14131 |
| License         | MIT                                                          |

Inb4 someone asks why there's no API coverage or `no-api` tags:
- sorting is possible via API so `no-api` does not apply
- coupons have no crud in API ATM
- catalog promotions have no sorting specified in API

The 2 last points would be doable in this PR, but then it would have to go to 1.13 since new features would be introduced, and I see no point in blocking the bugfix part alone for 1.12.

Commits
-------

9cefb206b0 [Admin] Fix inability of sorting promotion coupons and catalog promotions
6d170e5127 [UI][Behat] Sorting promotion coupons
8564ed5431 [UI][Behat] Sorting catalog promotions
e88b0f4eaa [Behat][Postgres][Promotion] Disable sorting scenarios for nullable fields
2023-05-19 13:58:45 +02:00
Jacob Tobiasz
067cb865b4
bugfix #14971 Fix the press enter cause attribute deletion (zangra-dev)
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 | Replacement of #12150 , #12308, fixes #11879 #11712                     |
| License         | MIT                                                          |

Bug present since 2018, report in 2020/2021/2022 
Still no correction, hope this PR will work...

Don't ask to do a regression test, done in April 2021, search when the function is created in the js file, it's been done on 15 Jun 2018 and no update since ( 72bda8f3cb )

the event.originalEvent.pageX != 0 seems to be another solution, as I detailled here : https://github.com/Sylius/Sylius/issues/11712
ClientX/ClientY PageX/PageY ScreenX/ScreenY are at 0 for the Enter pressed but with number when Button clicked
and if I check https://caniuse.com/?search=pageX it's seems to be used on many browser

@vvasiloi @lchrusciel @Zales0123

**Please** validate this PR to correct for once this bug present since 5 years (and nobody want to correct it ??!!)
Sorry to tag you all, but can you verify this PR
@AdamKasp @Arminek @CoderMaggie @czechmarcin @GSadee @jacquesbh @kulczy @mamazu @pamil @pjedrzejewski @Tomanhez 

Commits
-------
  Fix the press enter cause attribute deletion
2023-05-19 11:35:24 +02:00
maxime
b479e70a1f
Fix the press enter cause attribute deletion 2023-05-19 11:03:54 +02:00
Grzegorz Sadowski
12a09df075
refactor #15052 Revert "[CS][DX] Refactor" (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 | 
| License         | MIT

This ECS refactor shouldn't be merged, as there's a bug with semicolons fixer.

Commits
-------

ddfc614e59 Revert "[CS][DX] Refactor"
2023-05-18 13:14:33 +02:00
Jakub Tobiasz
ddfc614e59
Revert "[CS][DX] Refactor"
This reverts commit a4960366af.
2023-05-18 09:13:18 +02:00
Jacob Tobiasz
16ca91acf0
refactor #15034 [CS][DX] Refactor (github-actions[bot])
This PR was merged into the 1.12 branch.

Discussion
----------

This PR has been generated automatically.
For more details see [refactor.yaml](/Sylius/Sylius/blob/1.12/.github/workflows/refactor.yaml).

Commits
-------
  [CS][DX] Refactor
2023-05-18 06:47:02 +02:00
Jakub Tobiasz
88bb5f1548
Cover locale resolving with functional tests 2023-05-18 06:28:51 +02:00
Jakub Tobiasz
ce30820c2d
Lower the sylius.context.locale tag priority on RequestHeaderBasedLocalContext 2023-05-18 06:28:51 +02:00
Jan Góralski
10c66874ca
minor #15048 Add php-http/message-factory as a dev dependency to fix tests (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 | 
| License         | MIT

In `php-http/message:1.16.0` the package `php-http/message-factory` has been removed from the list of dependencies. We use it to check backward compatibility, so I added it as a dev deps to AdminBundle, what will fix our CI.

Commits
-------
  Add php-http/message-factory as a dev dependency to fix tests
2023-05-17 16:13:12 +02:00
Jakub Tobiasz
db73447add
Add php-http/message-factory as a dev dependency to fix tests 2023-05-17 15:57:26 +02:00
Jan Goralski
e88b0f4eaa
[Behat][Postgres][Promotion] Disable sorting scenarios for nullable fields 2023-05-16 15:49:08 +02:00
Jan Goralski
8564ed5431
[UI][Behat] Sorting catalog promotions 2023-05-15 13:57:45 +02:00
Jan Goralski
6d170e5127
[UI][Behat] Sorting promotion coupons 2023-05-15 11:17:31 +02:00
Sylius Bot
a4960366af [CS][DX] Refactor 2023-05-15 02:23:42 +00:00
Jacob Tobiasz
3e8b4d8dac
bugfix #15038 [Fix][Migrations] Wrong abstract class extended (Rafikooo)
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                                                          |


Commits
-------
  [Fix][Migrations] Extend migration with a proper AbstractMigration class
2023-05-14 07:22:25 +02:00
Rafikooo
78977b0b10
[Fix][Migrations] Extend migration with a proper AbstractMigration class 2023-05-13 17:44:45 +02:00
Jacob Tobiasz
6a077fc5fd
bugfix #15024 [Behat][Api] Make sure taxon iri is in right section (NoResponseMate)
This PR was merged into the 1.12 branch.

Discussion
----------

| Q               | A                                                            |
|-----------------|--------------------------------------------------------------|
| Branch?         | 1.12 |
| Bug fix?        | yes (although only in behat)                                 |
| New feature?    | no                                                       |
| BC breaks?      | no                                                       |
| Deprecations?   | no |
| Related tickets | -                      |
| License         | MIT                                                          |

Commits
-------
  [Behat][Api] Make sure taxon iri is in right section
2023-05-13 06:00:53 +02:00
Jacob Tobiasz
40b8c4bc35
minor #15031 [Behat] Minor fixes in scenarios and contexts (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?   | no |
| Related tickets | follow up to https://github.com/Sylius/Sylius/pull/14940                       |
| License         | MIT                                                          |

Commits
-------
  [Behat] Minor fixes in ShippingContext
  [Behat] Minor fix in a scenario
2023-05-12 19:10:08 +02:00
Kevin Kaniaburka
8da576c01d
[Behat] Minor fix in a scenario 2023-05-12 12:07:31 +02:00
Kevin Kaniaburka
0f9fa985f0
[Behat] Minor fixes in ShippingContext 2023-05-12 11:59:35 +02:00
Jacob Tobiasz
9ab7a66f7b
bugfix #14940 default shipping methods order by position (ehibes)
This PR was merged into the 1.12 branch.

Discussion
----------

| Q               | A                                                            |
|-----------------|--------------------------------------------------------------|
| Branch?         | 1.12 or 1.13 <!-- see the comment below -->                  |
| Bug fix?        | yes                                                       |
| New feature?    | no                                                       |
| BC breaks?      | no                                                       |
| Deprecations?   | no |
| Related tickets |                       |
| License         | MIT                                                          |


I propose this modification, in order that the default shipping method is selected according to the position of the methods in the admin, even when the customer does not have an address yet.

<!--
 - 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
-------
  default shipping methods order by position
  Merge branch 'Sylius:1.12' into 1.12
  Merge branch 'Sylius:1.12' into 1.12
  Behat scenario
  Add @api tag
  Update features/cart/shopping_cart/resolving_default_shipping_method_in_cart_summary_based_on_method_position.feature
2023-05-12 11:21:04 +02:00
Rafał Jaskulski
7c3f05265f
minor #15018 Upgrade PHPStan to level 4 (lruozzi9)
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 | partially #14019                      |
| License         | MIT                                                          |


Commits
-------

4bc2aa7c01 [PHPStan] Bump to level 4 (#14019)
ac1b7f69f2 [PHPStan] Ignore properties not used to avoid BC (#14019)
b26c4ba3d1 [PHPStan] Fix static errors (#14019)
d1f4aa6fa1 [PHPStan] Maybe we can not trust the Symfony docblock in method (#14019)

We chose to maintain this condition to avoid potential errors
720fb4e1ba [PHPStan] Maybe the priority is not given in the configuration parameter (#14019)

We chose to maintain this condition to avoid potential errors
e97d93bb0b Improve solutions fixing errors reported by PHPStan level 4
2023-05-11 16:26:40 +02:00
Jacob Tobiasz
46b8ff4098
bugfix #15025 Added: Implementation of getShippingUnitTotal (NoResponseMate)
This PR was merged into the 1.12 branch.

Discussion
----------

| Q               | A                                                            |
|-----------------|--------------------------------------------------------------|
| Branch?         | 1.12 |
| Bug fix?        | yes                                                       |
| New feature?    | somewhat                                                     |
| BC breaks?      | no                                                        |
| Deprecations?   | no  |
| Related tickets | fixes #11515, replaces #11903                      |
| License         | MIT                                                          |

Commits
-------
  Added: Implementation of getShippingUnitTotal
2023-05-11 14:22:07 +02:00