Commit graph

31807 commits

Author SHA1 Message Date
Grzegorz Sadowski
a3717cb55f
Change application's version to v1.13.0-ALPHA.2 2024-03-11 11:26:49 +01:00
Rafał Jaskulski
05d935c423
[UPMERGE] 1.12 -> 1.13 (#15977)
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/1.13 -m "Resolve conflicts between 1.12 and 1.13"
```

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.12 and 1.13
```
2024-03-10 23:39:33 +01:00
Jacob Tobiasz
84d83bdc8e
[UPMERGE] 1.12 -> 1.13 (#15973)
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/1.13 -m "Resolve conflicts between 1.12 and 1.13"
```

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.12 and 1.13
```
2024-03-09 08:03:35 +01:00
Jacob Tobiasz
5e78da61be
bugfix #15696 [Admin] Do not disable channel base currency when none set (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 #15668, #12330                      |
| License         | MIT                                                          |

Commits
-------
  [Admin] Do not disable channel base currency when none set
2024-03-09 07:08:12 +01:00
Jacob Tobiasz
280248c98c
Resolve conflicts between 1.12 and 1.13 2024-03-09 06:45:51 +01:00
Rafał Jaskulski
ae48d5117c
minor #15939 BUGFIX: #15938 [AdminBundle] add spacing between choose file button and uploaded image in image_widget (crydotsnake)
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 | #15938                                                       |
| 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
-->

**Description**

As described in: #15938

When you upload a file in the image widget the uploaded image has no spacing between the choose file button. Therfore it looks a bit squeezed which doesent look very nice.

To make it look consistent i added a CSS class arround the button with a `margin-bottom` that has the same spacing as between the Type input, and the choose file button.

<img width="421" alt="before_and_after" src="https://github.com/Sylius/Sylius/assets/39345336/4ec1fcf4-fccb-4ed3-9124-075401815c51">


Commits
-------
  BUGFIX: #15938 add spacing between choose file button and uploaded image in image_widget
  TASK: adjust naming of css class
2024-03-08 13:23:41 +01:00
Grzegorz Sadowski
da79357b5c
minor #15971 [Docs] Refactor information about GUS (CoderMaggie)
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 |     |
| License         | MIT                                                          |

Moving information about GUS to a more appropriate place.


Commits
-------

e41d1081b1 [Docs] refactor information about GUS
2024-03-08 12:46:50 +01:00
Magdalena Sadowska
e41d1081b1 [Docs] refactor information about GUS 2024-03-08 12:34:42 +01:00
Jacob Tobiasz
a6bec53dbd
minor #15970 [Order] Remove dead argument from OrderRepository::countByCustomerAndCoupon (NoResponseMate)
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 | -                      |
| License         | MIT                                                          |

Rationale:
1. The argument is only present in the implementation's signature
2. If someone overwritten the method, nothing changes
3. If someone implemented the interface on their own, nothing changes since the interface doesn't have this argument
4. If someone uses the method w/ 3 arguments, nothing changes since it's not used in the method itself and PHP allows passing more than declared arguments to a method

Commits
-------
  [Order] Remove dead argument from OrderRepository::countByCustomerAndCoupon
2024-03-08 12:19:53 +01:00
Rafał Jaskulski
210254d717
minor #15969 [API] Remove experimental tag from ApiBundle (GSadee)
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<!-- 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
-------
  [API] Remove experimental tag
  [API] Remove experimental note from Swagger + remove unneeded template
2024-03-08 11:59:47 +01:00
Jan Goralski
8291cf6e98
[Order] Remove dead argument from OrderRepository::countByCustomerAndCoupon 2024-03-08 11:13:12 +01:00
Grzegorz Sadowski
4e06582276
[API] Remove experimental note from Swagger + remove unneeded template 2024-03-08 10:37:21 +01:00
Grzegorz Sadowski
08ceefd906
[API] Remove experimental tag 2024-03-08 10:36:07 +01:00
Rafał Jaskulski
602c61bc2c
[UPMERGE] 1.12 -> 1.13 (#15966)
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/1.13 -m "Resolve conflicts between 1.12 and 1.13"
```

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.12 and 1.13
```
2024-03-08 09:24:29 +01:00
Jan Góralski
5dd4140a2f
docs #15968 Remove info about forum from Admin panel and documentation (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 | #15956 and #15957 |
| 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
-------
  [Admin] Remove info about forum from Admin panel
  [Documentation] Remove remaining info about forum
2024-03-08 08:12:45 +01:00
Grzegorz Sadowski
ef3c486fff
[Documentation] Remove remaining info about forum 2024-03-08 07:17:14 +01:00
Grzegorz Sadowski
c1fe6f1e62
[Admin] Remove info about forum from Admin panel 2024-03-08 07:16:24 +01:00
Rafał Jaskulski
baa238027d
minor #15963 [Maintenance] Update GHA (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
-------
  [Maintenance] Update GHA
2024-03-07 19:36:38 +01:00
Jan Goralski
c1466726e9
[Maintenance] Update GHA 2024-03-07 18:22:20 +01:00
Jacob Tobiasz
65d4294fd6
[UPMERGE] 1.12 -> 1.13 (#15958)
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/1.13 -m "Resolve conflicts between 1.12 and 1.13"
```

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.12 and 1.13
```
2024-03-07 08:36:38 +01:00
Grzegorz Sadowski
64d3582871
minor #15957 Update README.md remove info about forum (damonsson)
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                                                          |

Sylius Forum is no longer alive

Commits
-------

319acfde7f Update README.md remove info about forum
2024-03-07 07:08:06 +01:00
Damian Murawski
319acfde7f
Update README.md remove info about forum 2024-03-07 06:41:34 +01:00
Rafał Jaskulski
0c4957f3a5
docs #15956 Bye Sylius Forum ☠️ (CoderMaggie)
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 |                      |
| License         | MIT                                                          |

Sylius Forum is no longer alive, it should not be mentioned in the docs anymore.

Commits
-------
  Forum has retired
2024-03-06 21:55:29 +01:00
Magdalena Sadowska
ea5fdd6923
Forum has retired 2024-03-06 21:27:44 +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
Simon Krull
0360436981 TASK: adjust naming of css class 2024-03-01 14:24:09 +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
Simon Krull
728dd7ea9b BUGFIX: #15938 add spacing between choose file button and uploaded image in image_widget 2024-02-29 19:52:12 +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