Commit graph

29399 commits

Author SHA1 Message Date
Jacob Tobiasz
cb7b6898f6
docs #13777 [Locale] Change language negotiation to RFC 4647 based (gseric)
This PR was merged into the 1.12 branch.

Discussion
----------

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

Following this PR: #13708 

Commits
-------
  [Locale] Change language negotiation from simple string comparison to RFC 4647 based
  [Locale] Add some more tests for header languange negotiation
  [Unit] Fix JsonApiTestCase constructor arguments
  [Behat][API] Allow setting no accept-language in header
2023-12-22 15:04:58 +01:00
Jan Goralski
0ceb7db697
[Behat][API] Allow setting no accept-language in header
[Locale] Prepend default channel locale when resolving by header
2023-12-22 13:31:55 +01:00
Jacob Tobiasz
d508915428
docs #15672 Typo cart-flow.rst (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/yes                                                       |
| New feature?    | no/yes                                                       |
| BC breaks?      | no/yes                                                       |
| Deprecations?   | no/yes <!-- don't forget to update the UPGRADE-*.md file --> |
| 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
-------
  Typo cart-flow.rst
2023-12-22 09:54:03 +01:00
Zairig Imad
02c9b7428b
Typo cart-flow.rst 2023-12-22 09:51:48 +01:00
Jan Goralski
d896de175d
[Unit] Fix JsonApiTestCase constructor arguments 2023-12-22 09:11:03 +01:00
Jan Goralski
e002d791d9
[Locale] Add some more tests for header languange negotiation 2023-12-21 18:17:20 +01:00
gseric
3d5da057b8
[Locale] Change language negotiation from simple string comparison to RFC 4647 based 2023-12-21 18:11:44 +01:00
Jan Góralski
61923954bb
minor #15617 Switch JS session Behat driver to the Symfony Panther (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 | reactivated #13796
| License         | MIT


Commits
-------
  Add a support for Symfony Panther in the JS-based Behats
  Fix PHPSpec scenario
  Add support for Panther to CookieSetter service
  Run failing scenarios on Panther with using chromedriver
  Bring back the "chrome_headless_second_session" mink session
2023-12-21 15:21:57 +01:00
Jan Goralski
dc300fb0da [Documentation] Update mailer configuration 2023-12-21 15:14:16 +01:00
arti0090
dbbea4689f PR comment fix 2023-12-21 15:14:16 +01:00
arti0090
e4fdf671de [WIP][DOCS] Add info about mailer to 1.12 2023-12-21 15:14:16 +01:00
Jacob Tobiasz
c9c1ec8291
Bring back the "chrome_headless_second_session" mink session 2023-12-21 14:51:22 +01:00
Jacob Tobiasz
1d48c06ff5
Run failing scenarios on Panther with using chromedriver 2023-12-21 14:23:41 +01:00
Alexis DUMAS
ec9f4f53a1 Update themes.rst 2023-12-21 11:33:07 +01:00
Jan Góralski
da3fc6b4dc
minor #15656 [AUTO] Updated translations from Crowdin (1.12) (SyliusBot)
This PR was merged into the 1.12 branch.

Discussion
----------



Commits
-------
  [Translations] Updated translations from Crowdin
2023-12-20 11:56:56 +01:00
Sylius Bot
ef113ae63b [CS][DX] Refactor 2023-12-20 10:34:03 +01:00
Sylius Bot
92ec93611e [Translations] Updated translations from Crowdin 2023-12-18 04:01:53 +00:00
Jacob Tobiasz
0dc74d8d46
minor #15642 [Admin] Add official support submenu in admin panel (GSadee)
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 | replaces #15436 |
| License         | MIT                                                          |

<img width="248" alt="image" src="https://github.com/Sylius/Sylius/assets/6140884/2b58b7c1-7334-4e10-9bba-de393b525f05">

<!--
 - 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
-------
  Add business support CTA to admin panel
  Add all translations & change label
  [Admin] Change name of official support section in menu and adjust translations
2023-12-15 09:23:17 +01:00
Grzegorz Sadowski
f0fffc53ae
[Admin] Change name of official support section in menu and adjust translations 2023-12-15 08:53:55 +01:00
Nicolas Kroll
2248bcb945
Add all translations & change label 2023-12-15 07:19:30 +01:00
Nicolas Kroll
bc0a168889
Add business support CTA to admin panel 2023-12-15 07:19:22 +01:00
Jacob Tobiasz
f12a530c7f
bugfix #15435 [Checkout] Prevent extra fields when login in on addressing page (Jibbarth)
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 #15183 |
| License         | MIT |

Refs video in #15183

When we login in addressing page after submit once the page, the reload process after login resubmit data, and keep sending `form[customer][email]`, that it doesn't be added in form. 

So I unset these data on pre-submit. 
I also change the csrf_error message for something more "understandable".

By this way, we can still have previous submitted data for address fields.

![image](https://github.com/Sylius/Sylius/assets/3168281/e53f0c5a-8fe7-4bd7-81b9-021eb8d819b7)

The other way, suggested by @Wojdylak, is to change this line https://github.com/Sylius/Sylius/blob/1.12/src/Sylius/Bundle/UiBundle/Resources/private/js/sylius-api-login.js#L50 
by 
```
window.location = window.location.href;
``` 

But using it, all already filled data are lost.

WDYT ? Would it be acceptable to lose such data, or should we keep them ? 

Commits
-------
  [Checkout] Prevent extra fields when login in on addressing page
  Update src/Sylius/Bundle/CoreBundle/Form/Type/Checkout/AddressType.php
  Add tests that form doesn't display Extra fields error after login in checkout
  Remove fr translation
2023-12-12 10:54:06 +01:00
Jibé Barth
37ec2ae002
Remove fr translation 2023-12-09 12:07:46 +01:00
Jibé Barth
34a36bc0cc
Add tests that form doesn't display Extra fields error after login in checkout 2023-12-09 12:05:37 +01:00
Jibé Barth
282d035167
Update src/Sylius/Bundle/CoreBundle/Form/Type/Checkout/AddressType.php
Co-authored-by: Victor Vasiloi <victor.vasiloi@gmail.com>
2023-12-09 10:06:15 +01:00
Jan Góralski
1367d004f9
minor #15620 Fix CI (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 | n/a
| License         | MIT

In some patch version, Symfony updated the return type for one of the methods to `mixed`. PHPSpec doesn't support this return type, so I had to return `anything` manually.

Commits
-------
  Add missing willReturn method calls to PHPSpecs
2023-12-08 09:29:08 +01:00
Jacob Tobiasz
0caa0a2073
Add missing willReturn method calls to PHPSpecs 2023-12-08 08:49:56 +01:00
Jacob Tobiasz
12c7321f4d
Add support for Panther to CookieSetter service 2023-12-07 18:36:02 +01:00
Jacob Tobiasz
560ce41aee
Fix PHPSpec scenario 2023-12-07 17:51:28 +01:00
Jacob Tobiasz
f7aa75f602
Add a support for Symfony Panther in the JS-based Behats
Co-authored-by: Loic Fremont <lc.fremont@gmail.com>
2023-12-07 17:28:43 +01:00
Jacob Tobiasz
4b0bc53732
minor #15614 [Admin][UI] Fix csrf error breaking admin form (NoResponseMate)
This PR was merged into the 1.12 branch.

Discussion
----------

| Q               | A                                                            |
|-----------------|--------------------------------------------------------------|
| Branch?         | 1.12 |
| Bug fix?        | kinda                                                       |
| New feature?    | no                                                       |
| BC breaks?      | no |
| Deprecations?   | no |
| Related tickets | fixes #15606                      |
| License         | MIT                                                          |

![Screenshot 2023-12-07 at 13 09 32](https://github.com/Sylius/Sylius/assets/9448101/aeef1c28-bed4-4fad-a796-87e78946edcc)


Commits
-------
  [Admin][UI] Fix csrf error breaking admin form
2023-12-07 14:26:54 +01:00
Jan Goralski
a0b5b393c5
[Admin][UI] Fix csrf error breaking admin form 2023-12-07 13:10:26 +01:00
Grzegorz Sadowski
6b23c10f58
Change application's version to v1.12.14-dev 2023-12-05 13:59:07 +01:00
Grzegorz Sadowski
26f9e3dd14
Generate changelog for v1.12.13 2023-12-05 13:58:29 +01:00
Grzegorz Sadowski
e212e20197
Change application's version to v1.12.13 2023-12-05 13:58:28 +01:00
Grzegorz Sadowski
624d928396
minor #15603 Fix build (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 | n/a
| License         | MIT                                                          |



Commits
-------

03611a4c70 Exclude PHP 8.0/Symfony 6.4 from workflows' matrixes
2023-12-05 12:43:39 +01:00
Jacob Tobiasz
03611a4c70
Exclude PHP 8.0/Symfony 6.4 from workflows' matrixes 2023-12-05 12:37:05 +01:00
Jan Góralski
458d23d08d
minor #15602 Add the sylius-labs/suite-tags-extension package (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 | n/a
| License         | MIT

I only added the package to fix full build. I skipped adding isolating to the `1.12`'s workflows.

Commits
-------
  Add the sylius-labs/suite-tags-extension package
  Fix product name's casing in the Behat scenario
  [Maintenance] Fix postgres behats
2023-12-05 12:25:15 +01:00
Jan Goralski
3335ccae96
[Maintenance] Fix postgres behats 2023-12-05 11:27:32 +01:00
Jacob Tobiasz
8e2154d37b
Fix product name's casing in the Behat scenario 2023-12-05 11:15:44 +01:00
Jan Goralski
307f4fe31f
Add the sylius-labs/suite-tags-extension package 2023-12-05 11:15:44 +01:00
Jacob Tobiasz
6dc3f9395c
minor #15587 [CI] Update Symfony versions in builds (GSadee)
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<!-- 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
-------
  [CI] Update Symfony versions in build
  [Dependencies] Change possible versions of doctrine/persistence
2023-12-05 10:38:55 +01:00
Grzegorz Sadowski
385aea39a2
[Dependencies] Change possible versions of doctrine/persistence 2023-12-05 10:05:05 +01:00
Grzegorz Sadowski
e8fa468f83
[CI] Update Symfony versions in build 2023-12-05 10:05:03 +01:00
Jacob Tobiasz
ee647e93c1
bugfix #15585 [Fix] Do not show cart id after saving (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 #15541 |
| License         | MIT                                                          |

Commits
-------
  [Fix] Do not show cart id after saving
2023-12-04 13:29:32 +01:00
Jan Góralski
c227331276
minor #15582 Bye Psalm 👋🏼 (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 | n/a
| License         | MIT

**Justification**
>Hello everyone, last Friday, we once again raised the topic of maintaining two static analysis tools within Sylius. We're wondering about switching to only one (preferably phpstan, with a change to write custom PHPStan rules for Sylius).
>
>Why? From time to time we have to face with issues when one tool is fine with some code, but another starts complaining. We're aware it (probably) increases the code quality, but at the same time, some of us find the ROI at a low level compared to (stupid) work we sometimes have to do.

Core Team Voting result:
6 votes for keeping only PHPStan
1 vote for keeping only Psalm
1 vote for keeping both
2 votes for keeping any but only one

I was wondering whether we should target it against `1.12` or `1.13`, but as it's not a hard dependency, and we still maintain `1.12`, I decided to pick this one.


Commits
-------
  Remove Psalm
2023-12-04 11:41:16 +01:00
Jacob Tobiasz
7ece6725ef
Remove Psalm 2023-12-04 11:10:34 +01:00
Jan Góralski
0a166a23cf
docs #15565 [DOC] Fix display link in authorize page (Jibbarth)
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 | N/A |
| License         | MIT |

The actual link is not well rendered on documentation website : 
![image](https://github.com/Sylius/Sylius/assets/3168281/fb24056b-9c98-43b1-bb9b-3bc17fb9ed03)



Commits
-------
  [DOC] Fix display link in authorize page
2023-12-01 15:37:28 +01:00
Jan Goralski
d6afac1475
[Fix] Do not show cart id after saving 2023-12-01 10:39:29 +01:00
Grzegorz Sadowski
d8f3f6e82d
bug #15580 [DX] Improve ChannelCollector customizability (coldic3)
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 | copied from #14952                      |
| License         | MIT                                                          |

Ported from 1.13 to fix the issue of profiler warmup in CLI context breaking our installation command.

Commits
-------

fbcfda7ea2 [DX] Improve ChannelCollector customizability
2023-11-30 14:56:17 +01:00