Commit graph

40437 commits

Author SHA1 Message Date
Francis Hilaire
4a1d5cf490
Document API Platform resource classes as container parameters for overrides 2026-04-04 23:15:56 +02:00
Francis Hilaire
096349a18f
Refactor command class references to use parameters in XML configuration 2026-04-04 23:15:06 +02:00
Kamil Grygierzec
7d6918b100
[UPMERGE] 2.1 -> 2.2 (#18954)
This PR has been generated automatically.
For more details see
[upmerge_pr.yaml](/Sylius/Sylius/blob/2.3/.github/workflows/upmerge_pr.yaml).

**Remember!** The upmerge should always be merged with using `Merge pull
request` button.

In case of conflicts, please resolve them manually with usign the
following commands:
```
git fetch upstream
gh pr checkout <this-pr-number>
git merge upstream/2.2 -m "Resolve conflicts between 2.1 and 2.2"
```

If you use other name for the upstream remote, please replace `upstream`
with the name of your remote pointing to the `Sylius/Sylius` repository.

Once the conflicts are resolved, please run `git merge --continue` and
push the changes to this PR.
2026-04-03 19:37:16 +02:00
Kamil Grygierzec
d570c626b5
[BUGFIX] Make mailer services public to allow usage in state machine callbacks (#18953)
| Q               | A
|-----------------|-----
| Branch?         | 2.1
| Bug fix?        | yes
| New feature?    | no
| BC breaks?      | no
| Deprecations?   | no
| Related tickets | fixes https://github.com/Sylius/Sylius/issues/18939
| License         | MIT

<!--
 - Bug fixes must be submitted against the 1.14 or 2.1 branch
 - Features and deprecations must be submitted against the 2.2 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
-->
2026-04-02 14:57:51 +02:00
Kamil Grygierzec
fcbde944a0
[UPMERGE] 2.1 -> 2.2 (#18949)
This PR has been generated automatically.
For more details see
[upmerge_pr.yaml](/Sylius/Sylius/blob/2.3/.github/workflows/upmerge_pr.yaml).

**Remember!** The upmerge should always be merged with using `Merge pull
request` button.

In case of conflicts, please resolve them manually with usign the
following commands:
```
git fetch upstream
gh pr checkout <this-pr-number>
git merge upstream/2.2 -m "Resolve conflicts between 2.1 and 2.2"
```

If you use other name for the upstream remote, please replace `upstream`
with the name of your remote pointing to the `Sylius/Sylius` repository.

Once the conflicts are resolved, please run `git merge --continue` and
push the changes to this PR.
2026-04-02 09:38:16 +02:00
Mateusz
dc17d19929 Make mailer services public to allow usage in state machine callbacks 2026-04-02 08:56:33 +02:00
Kamil Grygierzec
c7abbeefda
[BUGFIX] Allow updating provinceName when provinceCode is null in API (#18926)
| Q               | A
|-----------------|-----
| Branch?         | 2.1
| Bug fix?        | yes
| New feature?    | no
| BC breaks?      | no
| Deprecations?   | no
| Related tickets | fixes https://github.com/Sylius/Sylius/issues/17751
| License         | MIT

<!--
 - Bug fixes must be submitted against the 1.14 or 2.1 branch
 - Features and deprecations must be submitted against the 2.2 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
-->
2026-03-30 15:19:14 +02:00
Kamil Grygierzec
ece082b04b
Add payment enabled in channel validation (#18941)
| Q               | A
|-----------------|-----
| Branch?         | 2.1
| Bug fix?        | yes
| New feature?    | yes
| BC breaks?      | no
| Deprecations?   | no
| Related tickets | fixes https://github.com/Sylius/Sylius/issues/18937
| License         | MIT
2026-03-30 15:17:18 +02:00
Marek Rzytki
593d93f233 Update upgrade 2026-03-30 10:48:14 +02:00
Marek Rzytki
3adcb55bd7 Move payment in channel check from separated validator into existing one 2026-03-30 10:48:14 +02:00
Marek Rzytki
23ce2c435d Add payment enabled in channel validation 2026-03-30 10:48:14 +02:00
Kamil Grygierzec
2a633968f2
[UPMERGE] 2.1 -> 2.2 (#18925)
This PR has been generated automatically.
For more details see
[upmerge_pr.yaml](/Sylius/Sylius/blob/2.3/.github/workflows/upmerge_pr.yaml).

**Remember!** The upmerge should always be merged with using `Merge pull
request` button.

In case of conflicts, please resolve them manually with usign the
following commands:
```
git fetch upstream
gh pr checkout <this-pr-number>
git merge upstream/2.2 -m "Resolve conflicts between 2.1 and 2.2"
```

If you use other name for the upstream remote, please replace `upstream`
with the name of your remote pointing to the `Sylius/Sylius` repository.

Once the conflicts are resolved, please run `git merge --continue` and
push the changes to this PR.
2026-03-27 14:15:51 +01:00
TheMilek
f07b8c32d5
Resolve conflicts between 2.1 and 2.2 2026-03-27 14:01:30 +01:00
Kamil Grygierzec
4a65219a6e
Fix build after APIPlatform 4.3.2 release (#18943)
| Q               | A
|-----------------|-----
| Branch?         | 2.1 <!-- see the comment below -->
| Bug fix?        | yes
| New feature?    | no
| BC breaks?      | no
| License         | MIT

<!--
 - Bug fixes must be submitted against the 1.14 or 2.1 branch
 - Features and deprecations must be submitted against the 2.2 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
-->
related to https://github.com/Sylius/Sylius/pull/18887 changes
2026-03-27 13:54:40 +01:00
Marek Rzytki
2a960a0093
Update response json to fix tests 2026-03-27 13:35:26 +01:00
Kamil Grygierzec
1994c3d0b3
fix: add default filter to breadcrumbs configuration title to prevent ScalarDataBag exception (#18933)
| Q               | A
|-----------------|-----
| Branch?         | 2.1
| Bug fix?        | yes
| New feature?    | no
| BC breaks?      | no
| Deprecations?   | no
| Related tickets | fixes Sylius/Stack#354
| License         | MIT

## Description

When the `configuration.title` is not set in the hookable metadata,
accessing it directly on a `ScalarDataBag` throws an exception. Adding
`|default('')` prevents the crash.
2026-03-25 08:13:14 +01:00
Kamil Grygierzec
2e1bea2736
TASK: improve german translations for CH, DE, and AT (#18932)
| Q               | A
|-----------------|-----
| Branch?         | 2.2
| Bug fix?        | no
| New feature?    | no
| BC breaks?      | no
| Deprecations?   | no
| Related tickets | fixes #X, partially #Y, mentioned in #Z
| License         | MIT

In this PR i added and improved the translations in the admin bundle for
german CH, german AT, and german DE.
2026-03-24 15:26:32 +01:00
Jan Góralski
1e59e2e47c
Fix problem with empty taxon product index (#18579)
| Q               | A
|-----------------|-----
| Branch?         | 2.1
| Bug fix?        | yes
| New feature?    | no
| BC breaks?      | no
| Related tickets | https://github.com/Sylius/Sylius/issues/18566
| License         | MIT




<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **Bug Fixes**
* Product queries now support locale fallback behavior, allowing items
to display with default language content when specific language
translations are unavailable.
* Relaxed product filtering to include items even when exact locale
translations don't exist.

<sub>✏️ Tip: You can customize this high-level summary in your review
settings.</sub>

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-03-23 14:09:36 +01:00
camilleislasse
5201d3f1df fix: add default filter to breadcrumbs configuration title to prevent ScalarDataBag exception 2026-03-21 18:59:47 +01:00
Simon Krull
d6147b4a38 TASK: improve german translations for CH, DE, and AT 2026-03-21 11:40:52 +01:00
Mateusz
755beff9f2 Do not overwrite province fields when both are null 2026-03-20 13:24:27 +01:00
Mateusz
71cb8d9b9f Add API test for updating cart address with provinceName only 2026-03-19 09:20:39 +01:00
TheMilek
668e6e84e2
Change application's version to v2.2.5-dev 2026-03-18 20:28:54 +01:00
TheMilek
9ed462324b
Generate changelog for v2.2.4 2026-03-18 20:27:11 +01:00
TheMilek
2c53b603d7
Change application's version to v2.2.4 2026-03-18 20:25:24 +01:00
Kamil Grygierzec
3e449b0f38
[UPMERGE] 2.1 -> 2.2 (#18923)
This PR has been generated automatically.
For more details see
[upmerge_pr.yaml](/Sylius/Sylius/blob/2.3/.github/workflows/upmerge_pr.yaml).

**Remember!** The upmerge should always be merged with using `Merge pull
request` button.

In case of conflicts, please resolve them manually with usign the
following commands:
```
git fetch upstream
gh pr checkout <this-pr-number>
git merge upstream/2.2 -m "Resolve conflicts between 2.1 and 2.2"
```

If you use other name for the upstream remote, please replace `upstream`
with the name of your remote pointing to the `Sylius/Sylius` repository.

Once the conflicts are resolved, please run `git merge --continue` and
push the changes to this PR.
2026-03-18 20:18:56 +01:00
TheMilek
a56b847e91
Change application's version to v2.1.14-dev 2026-03-18 20:18:00 +01:00
TheMilek
25212bf2e2
Change application's version to v2.1.13 2026-03-18 20:17:04 +01:00
Jan Góralski
4176a8b205
Telemetry improvements 2.1 (#18920)
| Q               | A
|-----------------|-----
| Branch?         | 2.1 <!-- see the comment below -->
| Bug fix?        | yes
| New feature?    | no
| Related tickets | fixes #18905
| License         | MIT

<!--
 - Bug fixes must be submitted against the 1.14 or 2.1 branch
 - Features and deprecations must be submitted against the 2.2 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
-->
 ### What changed

**Per-query SQL timeouts** - Telemetry has been improved with per-query
database timeouts. If any query exceeds the limit, it is immediately
  interrupted and falls back gracefully with empty data.

The global query timeout (in milliseconds, default: 60000, minimum:
1000) is configurable via environment variable:
```
  SYLIUS_TELEMETRY_QUERY_TIMEOUT=30000
```
**Improved TelemetryListener caching** - Telemetry collection is now
rate-limited. Once triggered, it will be skipped for the next hour,
preventing concurrent and redundant data collection on frequent admin
page loads.

**PostgreSQL compatibility** - Fixed boolean comparisons in telemetry
providers (`enabled = 1` → `enabled = true`)
2026-03-18 17:06:20 +01:00
TheMilek
291be2a7c7
Add upgrade file 2026-03-18 15:34:17 +01:00
TheMilek
7458fb9fc8
Telemetry improvements 2026-03-18 15:34:16 +01:00
Mateusz
9756a8296c Allow updating provinceName when provinceCode is null in API address mapper 2026-03-18 13:20:59 +01:00
Jan Góralski
f01ac8dbd7
[UPMERGE] 2.1 -> 2.2 (#18902)
This PR has been generated automatically.
For more details see
[upmerge_pr.yaml](/Sylius/Sylius/blob/2.3/.github/workflows/upmerge_pr.yaml).

**Remember!** The upmerge should always be merged with using `Merge pull
request` button.

In case of conflicts, please resolve them manually with usign the
following commands:
```
git fetch upstream
gh pr checkout <this-pr-number>
git merge upstream/2.2 -m "Resolve conflicts between 2.1 and 2.2"
```

If you use other name for the upstream remote, please replace `upstream`
with the name of your remote pointing to the `Sylius/Sylius` repository.

Once the conflicts are resolved, please run `git merge --continue` and
push the changes to this PR.
2026-03-17 15:10:18 +01:00
Jan Goralski
1e226ce8cc
Resolve conflicts between 2.1 and 2.2 2026-03-17 13:54:08 +01:00
Kamil Grygierzec
caab66d400
[BUGFIX] fix build errors (#18911)
| Q               | A
|-----------------|-----
| Branch?         | 2.1
| Bug fix?        | yes
| New feature?    | no
| BC breaks?      | no
| Deprecations?   | no
| Related tickets | fixes build errors
| License         | MIT

<!--
 - Bug fixes must be submitted against the 1.14 or 2.1 branch
 - Features and deprecations must be submitted against the 2.2 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
-->
2026-03-17 12:10:09 +01:00
Mateusz
0bb7199014 Fix TranslatableDenormalizer for IRI strings and shop customer 404 for guests 2026-03-17 11:25:20 +01:00
Kamil Grygierzec
a18b3e4517
[Admin] Fix product taxon grid enabled field always showing true (#18895)
| Q               | A
|-----------------|-----
| Branch?         | 2.1
| Bug fix?        | yes
| New feature?    | no
| BC breaks?      | no
| Deprecations?   | no
| Related tickets | fixes #18633
| License         | MIT

The `enabled` column in the product taxon grid always displays `true`
regardless of the product's actual enabled status.

The grid's root entity is `ProductTaxon`, not `Product`. The `enabled`
field had `path: product`, which passes the entire `Product` object to
the boolean Twig template. The template does `{% if true == data %}` -
any non-null object is truthy in Twig, so it always evaluates to `true`.

Changed `path: product` to `path: product.enabled` to pass the actual
boolean value.
2026-03-10 17:52:24 +01:00
Kamil Grygierzec
bb17134a98
[CS][DX] Refactor (#18898)
This PR has been generated automatically.
For more details see
[refactor.yaml](/Sylius/Sylius/blob/2.1/.github/workflows/refactor.yaml).
2026-03-10 17:49:02 +01:00
Kamil Grygierzec
1347eb7438
[CS][DX] Refactor (#18899)
This PR has been generated automatically.
For more details see
[refactor.yaml](/Sylius/Sylius/blob/2.1/.github/workflows/refactor.yaml).
2026-03-10 17:48:30 +01:00
Kamil Grygierzec
1c4d73b4a5
[BUGFIX] remove redundant object from PHPDoc union types (#18904)
| Q               | A
|-----------------|-----
| Branch?         | 2.1
| Bug fix?        | yes
| New feature?    | no
| BC breaks?      | no
| Deprecations?   | no
| Related tickets | fixes https://github.com/Sylius/Sylius/issues/18878
| License         | MIT

<!--
 - Bug fixes must be submitted against the 1.14 or 2.1 branch
 - Features and deprecations must be submitted against the 2.2 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
-->
2026-03-10 14:03:56 +01:00
Mateusz
e12db9d562 remove redundant object from PHPDoc union types 2026-03-10 12:33:48 +01:00
Sylius Bot
f91ca6d74d [CS][DX] Refactor 2026-03-10 02:55:51 +00:00
Sylius Bot
53dab0aac7 [CS][DX] Refactor 2026-03-10 02:55:51 +00:00
TheMilek
d74860c3d5
Change application's version to v2.2.4-dev 2026-03-09 14:18:00 +01:00
TheMilek
111d96b1be
Generate changelog for v2.2.3 2026-03-09 14:17:03 +01:00
TheMilek
b6c367e447
Change application's version to v2.2.3 2026-03-09 14:09:49 +01:00
Grzegorz Sadowski
2a454ffcb3
[UPMERGE] 2.1 -> 2.2 (#18897)
This PR has been generated automatically.
For more details see
[upmerge_pr.yaml](/Sylius/Sylius/blob/2.3/.github/workflows/upmerge_pr.yaml).

**Remember!** The upmerge should always be merged with using `Merge pull
request` button.

In case of conflicts, please resolve them manually with usign the
following commands:
```
git fetch upstream
gh pr checkout <this-pr-number>
git merge upstream/2.2 -m "Resolve conflicts between 2.1 and 2.2"
```

If you use other name for the upstream remote, please replace `upstream`
with the name of your remote pointing to the `Sylius/Sylius` repository.

Once the conflicts are resolved, please run `git merge --continue` and
push the changes to this PR.
2026-03-09 14:08:08 +01:00
TheMilek
efac58e781
Change application's version to v2.1.13-dev 2026-03-09 13:59:03 +01:00
TheMilek
d8092f21ee
Generate changelog for v2.1.12 2026-03-09 13:58:09 +01:00
TheMilek
6468dc7463
Change application's version to v2.1.12 2026-03-09 13:57:46 +01:00