Commit graph

39289 commits

Author SHA1 Message Date
Grzegorz Sadowski
bee4567502
[Bunnyshell] Increase memory limit 2025-06-11 14:47:51 +02:00
Grzegorz Sadowski
36f3838b2e
Change application's version to v2.1.2-dev 2025-06-04 15:22:52 +02:00
Grzegorz Sadowski
9b9de8e7b3
Generate changelog for v2.1.1 2025-06-04 15:22:17 +02:00
Grzegorz Sadowski
97f36ad3ec
Change application's version to v2.1.1 2025-06-04 15:21:12 +02:00
Grzegorz Sadowski
c6c945bc76
Merge branch '2.0' into 2.1
* 2.0:
  Change application's version to v2.0.10-dev
  Generate changelog for v2.0.9
  Change application's version to v2.0.9
  Fix en translations in Product and Taxonomy bundles
2025-06-04 15:19:14 +02:00
Grzegorz Sadowski
e9185ca6e5
Change application's version to v2.0.10-dev 2025-06-04 15:17:56 +02:00
Grzegorz Sadowski
16acf97761
Generate changelog for v2.0.9 2025-06-04 15:17:09 +02:00
Grzegorz Sadowski
f065c4834b
Change application's version to v2.0.9 2025-06-04 15:16:06 +02:00
Grzegorz Sadowski
be6f0ffdbc
Fix en translations in Product and Taxonomy bundles (#18127)
| Q               | A
|-----------------|-----
| Branch?         | 2.0
| Bug fix?        | yes
| New feature?    | no
| BC breaks?      | no
| Deprecations? | no<!-- don't forget to update the UPGRADE-*.md file
-->
| Related tickets | fixes #18096 and #18095 
| License         | MIT

<!--
 - Bug fixes must be submitted against the 1.14 or 2.0 branch
 - Features and deprecations must be submitted against the 2.1 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
-->
2025-06-04 15:14:58 +02:00
Grzegorz Sadowski
227a96d4ab
Fix en translations in Product and Taxonomy bundles 2025-06-04 15:12:54 +02:00
Grzegorz Sadowski
8aedbb6b60
Change application's version to v2.1.1-DEV 2025-06-04 13:17:47 +02:00
Grzegorz Sadowski
a5a816f9f1
Generate changelog for v2.1.0 2025-06-04 13:14:32 +02:00
Grzegorz Sadowski
e68138584b
Change application's version to v2.1.0 2025-06-04 13:11:41 +02:00
Grzegorz Sadowski
c1b8ec1d36
[API][Maintenance] Parametrize product association class in filter (#18125)
| Q               | A
|-----------------|-----
| Branch?         | 2.1
| Bug fix?        | no
| New feature?    | no
| BC breaks?      | no
| Deprecations?   | no
| Related tickets | -
| License         | MIT


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

## Summary by CodeRabbit

- **Chores**
- Improved configurability of product association filters for enhanced
flexibility. No visible changes to user experience.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-06-04 13:04:34 +02:00
Grzegorz Sadowski
aac90461db
[API][Shop][Product] Allow serializing the default variant (#18083)
| Q               | A
|-----------------|-----
| Branch?         | 2.1
| Bug fix?        | no
| New feature?    | yes
| BC breaks?      | no
| Deprecations?   | yes
| Related tickets | -
| License         | MIT

<s>Allowed the serialization of `defaultVariant` field on shop's product
endpoints (before it was a hardcoded cast to iri), and expanded its data
to contain name, prices and appliedPromotions.</s>

#### Update:
Left the `defaultVariant` field as is due to BC;
Added a `defaultVariantData` field on shop's product endpoints and
configured it to contain the name, prices and appliedPromotions.

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

- **New Features**
- Product details in the API now include a new field with comprehensive
information about the default product variant, in addition to its URI.
- The product variant name is now visible in more product listing and
detail views.

- **Bug Fixes**
- Improved accuracy and consistency of product variant information in
API responses.
- Reduced redundant API calls by embedding default variant data directly
in product responses.

- **Tests**
  - Enhanced test data with new translations for product variants.
- Updated API response examples to reflect the enriched product variant
data structure.
- Extended product normalization tests to cover inclusion of detailed
default variant data.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-06-04 13:04:15 +02:00
Jan Goralski
81a068ad97
[API][Maintenance] Parametrize product association class in filter 2025-06-04 12:30:18 +02:00
Jan Goralski
5b2f0e77c3
[API] Fix product association related tests 2025-06-04 12:24:11 +02:00
Jan Goralski
4604a154c4
[API][Shop][Product] Add configurable serialization group for default variant 2025-06-04 12:24:11 +02:00
Jan Goralski
52105383e0
[API][Product] Convert ProductNormalizer spec changes to phpunit 2025-06-04 12:24:10 +02:00
Jan Goralski
effbedd274
[API][Shop][Product] Add default variant data as a separate property 2025-06-04 12:18:36 +02:00
Jan Góralski
ee00ff3e72
Adjust Sylius versions for 2.1 (#18123)
| Q               | A
|-----------------|-----
| Branch?         | 2.1
| 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.14 or 2.0 branch
 - Features and deprecations must be submitted against the 2.1 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
-->
2025-06-04 12:15:45 +02:00
Grzegorz Sadowski
b8f02a85fd
Adjust Sylius versions for 2.1 2025-06-04 12:14:08 +02:00
Grzegorz Sadowski
2c17d68b4b
Merge branch '2.0' into 2.1
* 2.0:
  Change application's version to v2.0.9-dev
  Generate changelog for v2.0.8
  Change application's version to v2.0.8
2025-06-04 12:06:15 +02:00
Grzegorz Sadowski
200ed12c53
Change application's version to v2.0.9-dev 2025-06-04 12:01:00 +02:00
Grzegorz Sadowski
779ef8f3e2
Generate changelog for v2.0.8 2025-06-04 11:59:43 +02:00
Grzegorz Sadowski
79e6a58686
Change application's version to v2.0.8 2025-06-04 11:53:44 +02:00
Grzegorz Sadowski
547a64f2e6
[CS][DX] Refactor (#18122)
This PR has been generated automatically.
For more details see
[refactor.yaml](/Sylius/Sylius/blob/2.1/.github/workflows/refactor.yaml).
2025-06-04 11:47:21 +02:00
Grzegorz Sadowski
dce9d6ec16
[UPMERGE] 2.0 -> 2.1 (#18120)
This PR has been generated automatically.
For more details see
[upmerge_pr.yaml](/Sylius/Sylius/blob/2.1/.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.1 -m "Resolve conflicts between 2.0 and 2.1"
```

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.
2025-06-04 11:46:45 +02:00
Sylius Bot
aea2e056c9 [CS][DX] Refactor 2025-06-04 09:39:52 +00:00
Grzegorz Sadowski
b9945965d1
[DOCUMENTATION] Synchronize 2.0-docs -> 2.0 (#18119)
Automated changes by
[create-pull-request](https://github.com/peter-evans/create-pull-request)
GitHub action
2025-06-04 11:37:04 +02:00
Grzegorz Sadowski
b6c0100edd
[2.0] German swiss translations (#18043)
| Q               | A
|-----------------|-----
| Branch?         | 2.0
| License         | MIT
2025-06-04 11:32:28 +02:00
Grzegorz Sadowski
73bbe8fc98
[2.0] Norwegian translations (#18095)
| Q               | A
|-----------------|-----
| Branch?         | 2.0
| License         | MIT
2025-06-04 11:31:30 +02:00
Grzegorz Sadowski
cec0b4d479
[2.0] Mandarin Chinese translations (#18096)
| Q               | A
|-----------------|-----
| Branch?         | 2.0
| License         | MIT
2025-06-04 11:30:29 +02:00
Grzegorz Sadowski
0615f97c19
[2.0] French translations (#18109)
| Q               | A
|-----------------|-----
| Branch?         | 2.0
| License         | MIT
2025-06-04 11:29:25 +02:00
Grzegorz Sadowski
c47ae64704
[API][Shop] Add index endpoints for ProductOption/Value (#18100)
| Q               | A
|-----------------|-----
| Branch?         | 2.1
| Bug fix?        | no
| New feature?    | yes
| BC breaks?      | no
| Deprecations?   | yes
| Related tickets | -
| License         | MIT


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

## Summary by CodeRabbit

- **New Features**
- Added new API endpoints to retrieve product options and product option
values in the shop, with support for filtering by product code.
- Introduced filtering capabilities for product options and option
values based on related product codes in the shop API.
- **Bug Fixes**
- Updated serialization settings to ensure correct fields are included
in shop product option and option value listings.
- **Tests**
- Added new test cases and fixtures to verify retrieval and filtering of
product options and option values by product code in the shop API.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-06-04 10:57:28 +02:00
Grzegorz Sadowski
b2a194611c
[API][Shop] Improve product's associations querying (#18097)
| Q               | A
|-----------------|-----
| Branch?         | 2.1
| Bug fix?        | no
| New feature?    | kinda
| BC breaks?      | no
| Deprecations?   | no
| Related tickets | -
| License         | MIT


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

- **New Features**
- Added the ability to filter products in the shop API by association
type code and owner code.
- Introduced a new API endpoint to retrieve product association types,
with support for filtering by product code.
- **Bug Fixes**
- Ensured only enabled associated products are returned in product
association queries.
- **Tests**
- Added and updated tests to verify product filtering by association and
retrieval of product association types.
- **Documentation**
- Enhanced API documentation to describe new filtering options for
products and product association types.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-06-04 10:51:17 +02:00
Michał Pysiak
62d0f2e562
Make PHPUnit configs and tests directories consistent in all Bundles (#18113)
| Q               | A
|-----------------|-----
| Branch?         | 2.1
| 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.14 or 2.0 branch
 - Features and deprecations must be submitted against the 2.1 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
-->


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

## Summary by CodeRabbit

- **Refactor**
- Standardized directory and namespace naming from "Tests" to "tests"
across all bundles for consistency.
- Updated configuration files and autoload mappings to reflect the
lowercase "tests" directory.
- Adjusted test namespaces and import paths to align with the new
structure.

- **Chores**
- Modified export-ignore and .gitignore rules to match the updated test
directory naming.
- Updated PHPUnit configuration files for improved naming and local
schema references.

- **Bug Fixes**
- Corrected minor issues in test setup and exception handling within
test files.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-06-04 09:23:27 +02:00
Grzegorz Sadowski
edbdcedcbc
[API][Order] Add more data to responses (#18087)
| Q               | A
|-----------------|-----
| Branch?         | 2.1
| Bug fix?        | no
| New feature?    | sorta
| BC breaks?      | no
| Deprecations?   | no
| Related tickets | -
| License         | MIT


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

- **New Features**
- Added API endpoint for retrieving promotion coupons by code in the
shop context.
- Order and cart responses now include "promotionCoupon" and
"checkoutCompletedAt" fields for enhanced order and cart detail
visibility.

- **Bug Fixes**
- Ensured consistent display of promotion coupon and checkout completion
information across order and cart API responses.

- **Tests**
- Enhanced test coverage for carts and orders to validate presence and
correctness of promotion coupon and checkout completion fields.
- Updated test fixtures to reflect new response fields, promotion
scenarios, and checkout completion timestamps.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-06-04 08:55:13 +02:00
Grzegorz Sadowski
801dadd680
Upgrade file for refined assets management review fixes (#18118)
| Q               | A
|-----------------|-----
| Branch?         | 2.1 <!-- see the comment below -->
| Bug fix?        | no
| New feature?    | no
| BC breaks?      | no
| License         | MIT

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

This is the PR with review fixes from
https://github.com/Sylius/Sylius/pull/18106


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

## Summary by CodeRabbit

- **Documentation**
- Updated upgrade guide for version 2.1 with new shared controllers
configuration details, revised controller naming conventions, and
updated examples for manual controller registration.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-06-04 08:45:30 +02:00
Jan Góralski
19eb148a06
[Composer] Remove beta version from sylius/resource-bundle dependency (#18117)
| Q               | A
|-----------------|-----
| Branch?         | 2.1
| 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.14 or 2.0 branch
 - Features and deprecations must be submitted against the 2.1 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
-->


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

## Summary by CodeRabbit

- **Chores**
- Updated dependency requirements to restrict the
"sylius/resource-bundle" package to stable version ^1.12 only, removing
support for beta versions. No other changes were made.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-06-04 08:40:02 +02:00
SzymonFilipek
ad2e5aa99a
Update src/Sylius/Bundle/AddressingBundle/Resources/translations/validators.fr.yml
Co-authored-by: Estelle Gaits <74190794+stlgaits@users.noreply.github.com>
2025-06-04 08:18:13 +02:00
TheMilek
b980525f81
Upgrade file for refined assets management review fixes 2025-06-04 08:00:36 +02:00
Grzegorz Sadowski
e889c50713
[Composer] Remove beta version from sylius/resource-bundle dependency 2025-06-04 07:59:09 +02:00
Grzegorz Sadowski
9029b58e54
[CoreBundle] Fix PostgreSQLDefaultSchemaListenerTest for different versions of ORM 2025-06-04 07:52:18 +02:00
Grzegorz Sadowski
23a6f974e5
[CoreBundle] Fix tests 2025-06-04 07:51:38 +02:00
Grzegorz Sadowski
3231088302
Adjust RoboFile 2025-06-04 07:51:38 +02:00
Grzegorz Sadowski
6b44661df7
Adjust .gitattributes in bundles 2025-06-04 07:51:38 +02:00
Grzegorz Sadowski
7d7b8673f1
[TaxonomyBundle] Fix tests configs 2025-06-04 07:51:38 +02:00
Grzegorz Sadowski
ff14bbc3c4
[PromotionBundle] Fix namespaces and tests configs 2025-06-04 07:51:37 +02:00
Grzegorz Sadowski
384785213f
[PaymentBundle] Fix namespaces and tests configs 2025-06-04 07:51:37 +02:00