Commit graph

32491 commits

Author SHA1 Message Date
Jan Goralski
2283134805
[Maintenance] Update RepositoryInterface FQCN 2024-09-04 09:08:59 +02:00
Jan Goralski
0718d5babd
[Maintenance] Bumped Sylius resource packages to ^1.11 2024-09-04 09:08:58 +02:00
Grzegorz Sadowski
27ba5d8ba1
Merge branch '1.13' into 1.14
* 1.13:
  [CS][DX] Refactor
2024-09-03 07:33:33 +02:00
Rafał Jaskulski
9833bd8ee8
chore #16836 [CS][DX] Refactor (github-actions[bot])
This PR was merged into the 1.13 branch.

Discussion
----------

This PR has been generated automatically.
For more details see [refactor.yaml](/Sylius/Sylius/blob/1.12/.github/workflows/refactor.yaml).

Commits
-------
  [CS][DX] Refactor
2024-09-03 06:39:44 +02:00
Rafał Jaskulski
878f4c7371
[CS][DX] Refactor (#16837)
This PR has been generated automatically.
For more details see
[refactor.yaml](/Sylius/Sylius/blob/1.12/.github/workflows/refactor.yaml).
2024-09-03 06:39:06 +02:00
Sylius Bot
004848770e [CS][DX] Refactor 2024-09-03 02:23:14 +00:00
Sylius Bot
2f2377ab82 [CS][DX] Refactor 2024-09-03 02:23:09 +00:00
Kamil Grygierzec
88091340c5
minor #16825 [CI] Update Sylius branches in refactor workflow (GSadee)
This PR was merged into the 1.14 branch.

Discussion
----------

| Q               | A
|-----------------|-----
| Branch?         | 1.14
| 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.13 branch
 - Features and deprecations must be submitted against the 1.14 branch
 - Features, removing deprecations and BC breaks must be submitted against the 2.0 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 Sylius branches in refactor workflow
2024-09-02 15:34:55 +02:00
Grzegorz Sadowski
1b4a4c007d
Merge branch '1.13' into 1.14
* 1.13:
  [CS][DX] Refactor
2024-09-02 14:59:12 +02:00
Grzegorz Sadowski
21577fbee5
refactor #16812 [CS][DX] Refactor ()
This PR was merged into the 1.13 branch.

Discussion
----------

This PR has been generated automatically.
For more details see [refactor.yaml](/Sylius/Sylius/blob/1.12/.github/workflows/refactor.yaml).

Commits
-------

1a7bf27bc0 [CS][DX] Refactor
2024-09-02 14:58:33 +02:00
Grzegorz Sadowski
69a105b4fb
[CI] Update Sylius branches in refactor workflow 2024-09-02 14:54:53 +02:00
Grzegorz Sadowski
7cca9fc107
Merge branch '1.13' into 1.14
* 1.13:
  [Behat] Switch another random JS failed scenarios to Chromedriver
  [Behat] Switch another random JS failed scenarios to Chromedriver
  [Behat] Switch random JS failed scenarios to Chromedriver
2024-09-02 14:49:20 +02:00
Karol
cfd86e4638
minor #16827 [Behat] Switch random JS failed scenarios to Chromedriver (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.13 branch
 - Features and deprecations must be submitted against the 1.14 branch
 - Features, removing deprecations and BC breaks must be submitted against the 2.0 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
-------
  [Behat] Switch random JS failed scenarios to Chromedriver
  [Behat] Switch another random JS failed scenarios to Chromedriver
  [Behat] Switch another random JS failed scenarios to Chromedriver
2024-09-02 14:45:07 +02:00
Grzegorz Sadowski
797e10e58a
[Behat] Switch another random JS failed scenarios to Chromedriver 2024-09-02 13:27:54 +02:00
Grzegorz Sadowski
e0cd54b0df
[Behat] Switch another random JS failed scenarios to Chromedriver 2024-09-02 12:51:30 +02:00
Grzegorz Sadowski
8ebb064557
[Behat] Switch random JS failed scenarios to Chromedriver 2024-09-02 12:28:14 +02:00
Grzegorz Sadowski
61e8d7aa06
Merge branch '1.13' into 1.14
* 1.13:
  Minor improvements in PHPStan configuration
  [Taxonomy] Fix Taxon spec
  [PHPStan] Support both sylius/resource-bundle 1.10 and 1.11
2024-09-02 08:36:55 +02:00
Grzegorz Sadowski
cfcd9d429b
bug #16819 Fix static analysis to support both sylius/resource-bundle 1.11 and older versions (Rafikooo, 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 | replaces #16816 
| License         | MIT

<!--
 - Bug fixes must be submitted against the 1.13 branch
 - Features and deprecations must be submitted against the 1.14 branch
 - Features, removing deprecations and BC breaks must be submitted against the 2.0 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
-------

77ca7f4afe [PHPStan] Support both sylius/resource-bundle 1.10 and 1.11
a4f2a50a69 [Taxonomy] Fix Taxon spec
597fafc33d Minor improvements in PHPStan configuration
2024-09-02 08:36:15 +02:00
Grzegorz Sadowski
597fafc33d
Minor improvements in PHPStan configuration 2024-09-02 07:22:25 +02:00
Rafikooo
a4f2a50a69
[Taxonomy] Fix Taxon spec 2024-09-02 07:20:38 +02:00
Rafikooo
77ca7f4afe
[PHPStan] Support both sylius/resource-bundle 1.10 and 1.11 2024-08-30 11:07:07 +02:00
Sylius Bot
1a7bf27bc0 [CS][DX] Refactor 2024-08-30 02:24:05 +00:00
Grzegorz Sadowski
43686746bd
Merge branch '1.13' into 1.14
* 1.13:
  Minor CS fix in workflow
  [Resource] Add validation for translatable interface with new namespace
  Apply suggestions from code review
  Both resource and grid unstable versions
  Try SyliusGridBundle 1.13
  [Core] Move validation of translation classes to Core
2024-08-29 13:35:28 +02:00
Jan Góralski
97c94269af
minor #15706 Try SyliusResourceBundle 1.11 & SyliusGridBundle 1.13 (loic425)
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                                                          |

<!--
 - 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
-->

Inspired by #15119 


Commits
-------
  Try SyliusGridBundle 1.13
  Both resource and grid unstable versions
  Apply suggestions from code review
  [Resource] Add validation for translatable interface with new namespace
  Minor CS fix in workflow
2024-08-28 13:39:57 +02:00
Grzegorz Sadowski
5f56fef3c3
Minor CS fix in workflow 2024-08-28 12:19:40 +02:00
Grzegorz Sadowski
ca45aea6f8
[Resource] Add validation for translatable interface with new namespace 2024-08-28 12:19:40 +02:00
Loïc Frémont
b860b555bf
Apply suggestions from code review
Co-authored-by: Łukasz Chruściel <lchrusciel@gmail.com>
2024-08-28 12:19:40 +02:00
Loïc Frémont
614c79c3ad
Both resource and grid unstable versions 2024-08-28 12:19:02 +02:00
Loïc Frémont
8779ecfb65
Try SyliusGridBundle 1.13 2024-08-28 12:19:02 +02:00
Kamil Grygierzec
4984605df8
minor #16794 [Core] Move validation of translation classes to Core (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 | extracted from #15706 
| License         | MIT

This is a change to allow support for SyliusResourceBundle 1.11 (and older), where this validation has just been added globally on `AbstractTranslation`. PR with enabled tests: #15706.

<!--
 - Bug fixes must be submitted against the 1.13 branch
 - Features and deprecations must be submitted against the 1.14 branch
 - Features, removing deprecations and BC breaks must be submitted against the 2.0 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
-------
  [Core] Move validation of translation classes to Core
2024-08-28 11:34:29 +02:00
Grzegorz Sadowski
cdf6899627
[Core] Move validation of translation classes to Core 2024-08-28 10:07:46 +02:00
Grzegorz Sadowski
e03020d88b
Merge branch '1.13' into 1.14
* 1.13:
  [CS][DX] Refactor
2024-08-23 14:47:03 +02:00
Jan Góralski
6191c0083f
minor #16769 [Money] Deprecate unneeded templating helpers (GSadee)
This PR was merged into the 1.14 branch.

Discussion
----------

| Q               | A
|-----------------|-----
| Branch?         | 1.14
| Bug fix?        | no
| New feature?    | no
| BC breaks?      | no
| Deprecations?   | yes
| Related tickets | #16757
| License         | MIT

<!--
 - Bug fixes must be submitted against the 1.13 branch
 - Features and deprecations must be submitted against the 1.14 branch
 - Features, removing deprecations and BC breaks must be submitted against the 2.0 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
-------
  [Money] Deprecate unneeded templating helpers
2024-08-23 14:20:56 +02:00
Grzegorz Sadowski
310e49a5c5
[Money] Deprecate unneeded templating helpers 2024-08-23 12:52:54 +02:00
Rafał Jaskulski
fefbcc0e2a
chore #16753 [CS][DX] Refactor (github-actions[bot])
This PR was merged into the 1.13 branch.

Discussion
----------

This PR has been generated automatically.
For more details see [refactor.yaml](/Sylius/Sylius/blob/1.12/.github/workflows/refactor.yaml).

Commits
-------
  [CS][DX] Refactor
2024-08-23 07:54:29 +02:00
Sylius Bot
6631cf5ca3 [CS][DX] Refactor 2024-08-23 02:20:51 +00:00
Grzegorz Sadowski
5596cd38da
Merge branch '1.13' into 1.14
* 1.13:
  Change application's version to v1.13.6-dev
  Generate changelog for v1.13.5
  Change application's version to v1.13.5
  Fixing customer order view
  [BC-Break][1.13] Do not enforce soft method requirement on ProductVariantPricesCalculatorInterface
2024-08-22 12:55:42 +02:00
Grzegorz Sadowski
739876071b
Change application's version to v1.13.6-dev 2024-08-22 12:45:04 +02:00
Grzegorz Sadowski
9f418b56d7
Generate changelog for v1.13.5 2024-08-22 12:44:33 +02:00
Grzegorz Sadowski
d86206d97e
Change application's version to v1.13.5 2024-08-22 12:43:16 +02:00
Grzegorz Sadowski
2631963ed9
bug #16645 [BC-Break Fix][1.13] Do not enforce soft method requirement on ProductVar… (lchrusciel)
This PR was merged into the 1.13 branch.

Discussion
----------

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

While testing out https://github.com/Brille24/SyliusTierpricePlugin, I've encountered 500 errors when trying to access the product detail page. This is because even tho the `calculateLowestPriceBeforeDiscount` method has a soft requirement on `Sylius\Component\Core\Calculator\ProductVariantPricesCalculatorInterface`, it is used in several classes and therefore enforced. This PR fixes that with checks if the method exists.

I had to use PHPUnit tests to ensure the correctness of this fix, as PHPSpec, by default, treats methods declared in doc block as defined on the class. 

Commits
-------

55759bb09d [BC-Break][1.13] Do not enforce soft method requirement on ProductVariantPricesCalculatorInterface
2024-08-21 14:30:28 +02:00
Grzegorz Sadowski
de87b1d868
bug #16699 Fixing configuration for customer order view (mamazu)
This PR was merged into the 1.13 branch.

Discussion
----------

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

In the Pull request linked above @jakubtobiasz configured repository method was changed to also require a criteria argument (of type array). Which resulted in this:
![image](https://github.com/user-attachments/assets/b4d24387-b0e4-478f-8e27-2d4dafba976b)

The reason for this is despite the fact that it looks like they're being passed as named arguments from the config, the grid bundle does an `array_values` on the array to throw away the keys. This PR fixes that and just passes a default value for the criteria.

## Steps to reproduce

* Create a customer
* Go to the customers details page in the admin
* Click on "Show orders"
* See creash


Commits
-------

40d973f9a7 Fixing customer order view
2024-08-21 14:26:34 +02:00
Rafał Jaskulski
c54c667255
[UPMERGE] 1.13 -> 1.14 (#16736)
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.14 -m "Resolve conflicts between 1.13 and 1.14"
```

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.
2024-08-17 21:11:47 +02:00
Rafał Jaskulski
aea07ed346
[CS][DX] Refactor (#16728)
This PR has been generated automatically.
For more details see
[refactor.yaml](/Sylius/Sylius/blob/1.12/.github/workflows/refactor.yaml).
2024-08-16 04:52:55 +02:00
Sylius Bot
8e3b3816f4 [CS][DX] Refactor 2024-08-16 02:20:24 +00:00
Jan Góralski
f6a3f43620
minor #16715 [Admin] Fix resending order confirmation emails (Wojdylak)
This PR was merged into the 1.14 branch.

Discussion
----------

| Q               | A
|-----------------|-----
| Branch?         | 1.14
| Bug fix?        | yes
| New feature?    | no
| BC breaks?      | no
| Deprecations?   | no
| Related tickets | #16703
| License         | MIT


Commits
-------
  [Admin] Fix resending order confirmation emails
2024-08-15 13:24:33 +02:00
Wojdylak
82f4e63b10
[Admin] Fix resending order confirmation emails 2024-08-15 12:41:10 +02:00
Grzegorz Sadowski
028715d748
refactor #16703 [Maintenance] Less referrer usage in static redirects (NoResponseMate, GSadee)
This PR was merged into the 1.14 branch.

Discussion
----------

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

We are changing the referrers to static routes where appropriate to make the code more streamlined and predictable.

Commits
-------

dc61d08b21 [Maintenance] Less referrer usage in static redirects
c2fe0de635 Add a note to UPGRADE file about ResendOrderConfirmationEmailAction constructor change
30268e3b99 Fix builds after referrers refactor
2024-08-14 06:32:56 +02:00
Grzegorz Sadowski
30268e3b99
Fix builds after referrers refactor 2024-08-13 14:40:23 +02:00
Grzegorz Sadowski
c2fe0de635
Add a note to UPGRADE file about ResendOrderConfirmationEmailAction constructor change 2024-08-13 13:05:21 +02:00