Commit graph

32323 commits

Author SHA1 Message Date
Rafikooo
4ce30bf2b6
Resolve conflicts between 2.0 and bootstrap-admin-panel 2024-03-08 10:00:12 +01:00
Jacob Tobiasz
b181d5d187
[UPMERGE] 1.13 -> 2.0 (#15959)
This PR has been generated automatically.
For more details see
[upmerge_pr.yaml](/Sylius/Sylius/blob/1.13/.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.0 -m "Resolve conflicts between 1.13 and 2.0"
```

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
change the commit title to
```
Resolve conflicts between 1.13 and 2.0
```
2024-03-07 13:48:35 +01:00
Rafikooo
a2dd31d4db
Add symfony/cache-contracts dependency in ^2.5 version 2024-03-07 10:00:17 +01:00
Rafikooo
41aaa444e6
Resolve conflicts between 1.13 and 2.0 2024-03-07 09:29:25 +01:00
Sylius Bot
1fab78f40a [CS][DX] Refactor 2024-03-06 11:46:54 +01:00
Kamil Grygierzec
283d4a325c
minor #15682 Improve Product's show page performance (jakubtobiasz)
This PR was merged into the 1.13 branch.

Discussion
----------

| Q               | A                                                            |
|-----------------|--------------------------------------------------------------|
| Branch?         | 1.13
| Bug fix?        | kinda
| New feature?    | no
| BC breaks?      | no
| Deprecations?   | no
| Related tickets | improved #15493
| License         | MIT

`~250` attributes, higher numbers were hanging edit page when the execution limit is set to `30s`.

![CleanShot 2023-12-25 at 12 13 06@2x](https://github.com/Sylius/Sylius/assets/80641364/770ab125-49e6-41a5-9bf3-0924d2403936)

I was wondering against which version this PR should be opened, but I decided it better fits for the `1.13`, as it isn't a bug fix, it's a performance improvement. With so broad definition of bug, we could define almost anything as a bug.

Comparing to the original PR:
- Already present hydration mechanism has been used.
- No need to open anything against Sylius Resource repository, the custom `LocaleToCodeTransformer` has been created (thanks @NoResponseMate for the suggestion).
- Symonfy's cache mechanism has been leveraged.

Commits
-------
  Create a service providing a cached collection of locales
  Replace default resource's ResourceToIdentifierTransformer with a custom LocaleToCodeTransformer
  Use hydration while displaying the product's show page
  Adjust deprecation triggers
  Apply PHPStan fixes
  Add locales cache removing on Locale create/updated/remove operation
  Improve error handling
  Add "symfony/cache-contracts": "^2.5 || ^3.0" as a dependency
  Make LocaleCollectionProvider returning an array of locales with a locale's code as a key
  Return null when try to transform a value not being an instance of LocaleInterface
  [Behat] Add CacheContext
  [Behat] Add sylius.behat.context.hook.cache to suites
2024-03-05 09:55:23 +01:00
Jacob Tobiasz
6267b8ad43
[UPMERGE] 1.13 -> 2.0 (#15940)
This PR has been generated automatically.
For more details see
[upmerge_pr.yaml](/Sylius/Sylius/blob/1.13/.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.0 -m "Resolve conflicts between 1.13 and 2.0"
```

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
change the commit title to
```
Resolve conflicts between 1.13 and 2.0
```
2024-03-01 17:21:16 +01:00
Rafikooo
dbfec245e2
Resolve conflicts between 1.13 and 2.0 2024-03-01 11:33:54 +01:00
Wojdylak
c999c06620
[Behat] Add sylius.behat.context.hook.cache to suites 2024-03-01 10:45:10 +01:00
Wojdylak
90f5c851ba
[Behat] Add CacheContext 2024-03-01 09:36:31 +01:00
Rafał Jaskulski
e203a51ed4
minor #15937 [API][Maintenance] Fix field name in AddressLogEntry serialization (NoResponseMate)
This PR was merged into the 1.13 branch.

Discussion
----------

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

Commits
-------
  [API][Maintenance] Fix field name in AddressLogEntry serialization
2024-02-29 19:10:40 +01:00
Jan Goralski
545d2b8f3e
[API][Maintenance] Fix field name in AddressLogEntry serialization 2024-02-29 16:11:30 +01:00
Jan Góralski
8debdb2a78
minor #15935 [Unit][Admin] Missing Customer Tests (Rafikooo)
This PR was merged into the 1.13 branch.

Discussion
----------

| Q               | A                                                            |
|-----------------|--------------------------------------------------------------|
| Branch?         | 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                                                          |



Commits
-------
  [Unit][Admin] Add creating customer with already taken email test
  [Unit][Admin] Add removing shop user test
2024-02-29 15:43:11 +01:00
Jacob Tobiasz
176bcd846f
Return null when try to transform a value not being an instance of LocaleInterface 2024-02-29 15:34:41 +01:00
Jacob Tobiasz
87a7ccd74c
Make LocaleCollectionProvider returning an array of locales with a locale's code as a key 2024-02-29 15:34:40 +01:00
Jacob Tobiasz
b09315dd2c
Add "symfony/cache-contracts": "^2.5 || ^3.0" as a dependency 2024-02-29 15:34:38 +01:00
Jacob Tobiasz
7b3fc9bc54
Improve error handling 2024-02-29 15:33:08 +01:00
Jacob Tobiasz
79443af65d
Add locales cache removing on Locale create/updated/remove operation 2024-02-29 15:33:08 +01:00
Jacob Tobiasz
8ed0b54755
Apply PHPStan fixes 2024-02-29 15:33:08 +01:00
Jacob Tobiasz
c258e0773d
Adjust deprecation triggers 2024-02-29 15:33:07 +01:00
Jacob Tobiasz
d3f715cd83
Use hydration while displaying the product's show page 2024-02-29 15:33:07 +01:00
Jacob Tobiasz
81bfce62c4
Replace default resource's ResourceToIdentifierTransformer with a custom LocaleToCodeTransformer 2024-02-29 15:33:07 +01:00
Jacob Tobiasz
7475d717ca
Create a service providing a cached collection of locales 2024-02-29 15:33:06 +01:00
Jan Góralski
165238434d
minor #15936 [Unit][Admin] Missing Exchange Rate Test (Rafikooo)
This PR was merged into the 1.13 branch.

Discussion
----------

| Q               | A                                                            |
|-----------------|--------------------------------------------------------------|
| Branch?         | 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
-------
  [Unit][Admin] Add removing exchange-rate test
2024-02-29 15:29:14 +01:00
Karol
2b6ccab276
minor #15934 [API][Shop] Remove translations' endpoints (NoResponseMate)
This PR was merged into the 1.13 branch.

Discussion
----------

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


Commits
-------
  [API][Shop] Remove product variant translation endpoint
  [API][Shop] Remove payment method translation endpoint
  [API][Shop] Remove product translation endpoint
  [API][Shop] Remove shipping method translation endpoint
  [API][Shop] Remove taxon translation enpoint
  [API][Maintenance] Note the removal of shop translations endpoints
2024-02-29 15:27:05 +01:00
Rafikooo
460d0e51c5
[Unit][Admin] Add removing exchange-rate test 2024-02-29 14:43:15 +01:00
Jan Goralski
259f628b0b
[API][Maintenance] Note the removal of shop translations endpoints 2024-02-29 14:40:07 +01:00
Jan Goralski
cb73ff8ee5
[API][Shop] Remove taxon translation enpoint 2024-02-29 14:40:07 +01:00
Jan Goralski
ebf052263b
[API][Shop] Remove shipping method translation endpoint 2024-02-29 14:40:07 +01:00
Jan Goralski
c4aae73ac8
[API][Shop] Remove product translation endpoint 2024-02-29 14:40:07 +01:00
Jan Goralski
2b514aaf69
[API][Shop] Remove payment method translation endpoint 2024-02-29 14:40:07 +01:00
Rafikooo
3d00f894b2
[Unit][Admin] Add removing shop user test 2024-02-29 14:28:22 +01:00
Rafikooo
31eba54364
[Unit][Admin] Add creating customer with already taken email test 2024-02-29 14:28:22 +01:00
Jan Goralski
655fa36604
[API][Shop] Remove product variant translation endpoint 2024-02-29 13:26:58 +01:00
Jacob Tobiasz
6e6e6614e3
[UPMERGE] 2.0 -> bootstrap-admin-panel (#15929)
This PR has been generated automatically.
For more details see
[upmerge_pr.yaml](/Sylius/Sylius/blob/1.13/.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/bootstrap-admin-panel -m "Resolve conflicts between 2.0 and bootstrap-admin-panel"
```

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
change the commit title to
```
Resolve conflicts between 2.0 and bootstrap-admin-panel
```
2024-02-29 11:24:23 +01:00
Jacob Tobiasz
a0603baf32
[UPMERGE] 1.13 -> 2.0 (#15928)
This PR has been generated automatically.
For more details see
[upmerge_pr.yaml](/Sylius/Sylius/blob/1.13/.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.0 -m "Resolve conflicts between 1.13 and 2.0"
```

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
change the commit title to
```
Resolve conflicts between 1.13 and 2.0
```
2024-02-29 11:23:52 +01:00
Jan Góralski
f122a4a453
minor #15932 [Unit][API] Missing Customer Group Removal Test (Rafikooo)
This PR was merged into the 1.13 branch.

Discussion
----------

| Q               | A                                                            |
|-----------------|--------------------------------------------------------------|
| Branch?         | 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
-------
  [Unit][Admin] Add customer group removal test
2024-02-29 11:09:07 +01:00
Rafikooo
41d5339405
[Unit][Admin] Add customer group removal test 2024-02-29 10:28:22 +01:00
Jan Góralski
109720004e
minor #15924 [Unit][Admin] Missing Payment Methods tests (Rafikooo)
This PR was merged into the 1.13 branch.

Discussion
----------

| Q               | A                                                            |
|-----------------|--------------------------------------------------------------|
| Branch?         | 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                                                          |

Based on #15922

<!--
 - 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
-------
  [Unit][Admin] Add payment method translation test
  [Unit][Admin] Add payment method removal test
  [Unit][Admin] Update test method calls
2024-02-29 09:53:22 +01:00
Rafikooo
bef758a47e
[Unit][Admin] Update test method calls 2024-02-29 09:12:15 +01:00
Jan Góralski
a1d2f81552
minor #15927 [API] Missing AvatarImage Tests (Rafikooo)
This PR was merged into the 1.13 branch.

Discussion
----------

| Q               | A                                                            |
|-----------------|--------------------------------------------------------------|
| Branch?         |  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
-------
  [API] Add contract tests for AvatarImage Api resources
  [Unit][Admin] Cherry-pick avatar-image tests
2024-02-29 09:08:55 +01:00
Rafikooo
d039113ef8
[Unit][Admin] Add payment method removal test 2024-02-29 09:01:05 +01:00
Rafikooo
30c4aea0c5
[Unit][Admin] Add payment method translation test 2024-02-29 09:01:05 +01:00
Jan Góralski
339d39306a
minor #15922 [Unit][Admin] Missing Payments Tests (Rafikooo)
This PR was merged into the 1.13 branch.

Discussion
----------

| Q               | A                                                            |
|-----------------|--------------------------------------------------------------|
| Branch?         | 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
-------
  [Unit][Admin] Add a payment completion test
  [Unit] Add requestPatch method to utils functions
  [Unit][Admin] Add another payment completion test
  [Unit][Admin] Add payments filtering by payment state test
  [ECS] Apply ecs fixes
2024-02-29 08:58:34 +01:00
Karol
bf67089577
minor #15931 [Unit][Admin] Catalog Promotion Removal Test (Rafikooo)
This PR was merged into the 1.13 branch.

Discussion
----------

| Q               | A                                                            |
|-----------------|--------------------------------------------------------------|
| Branch?         | 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
-------
  [Unit][Admin] Add catalog-promotion removal test
2024-02-29 08:50:53 +01:00
Rafikooo
c15cb6506d
[Unit][Admin] Add catalog-promotion removal test 2024-02-29 08:24:32 +01:00
Karol
7a983e1c69
minor #15926 [Unit][Admin] Missing Product Attribute Translations Test (Rafikooo)
This PR was merged into the 1.13 branch.

Discussion
----------

| Q               | A                                                            |
|-----------------|--------------------------------------------------------------|
| Branch?         | 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
-------
  [Unit][Admin] Add product-attribute-translations test
2024-02-29 08:22:33 +01:00
Karol
a8cd1fddc1
minor #15925 [Unit][Admin] Missing Product Association Type Translations Test (Rafikooo)
This PR was merged into the 1.13 branch.

Discussion
----------

| Q               | A                                                            |
|-----------------|--------------------------------------------------------------|
| Branch?         | 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
-------
  [Unit][Admin] Add product-association-type-translations test
2024-02-29 08:07:33 +01:00
Rafikooo
e217c797e8
[Unit][Admin] Cherry-pick avatar-image tests 2024-02-29 01:04:09 +01:00
Wojdylak
900e8c4d7e
[API] Add contract tests for AvatarImage Api resources 2024-02-29 01:00:49 +01:00