Commit graph

29901 commits

Author SHA1 Message Date
Jacob Tobiasz
8ad42c9a1b
Add support for Bunnyshell (#15134)
Co-authored-by: Aris Buzachis <aris.buzachis@bunnyshell.com>
Co-authored-by: Aris Buzachis <114920449+aris-bunnyshell@users.noreply.github.com>
Co-authored-by: Mihai Chitic <m.chitic+github@gmail.com>
2023-06-29 09:20:06 +02:00
Kamil Grygierzec
b600c40b51
feature #15026 Allow removing locales (jakubtobiasz)
This PR was merged into the 1.13 branch.

Discussion
----------

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

![CleanShot 2023-06-01 at 15 26 39@2x](https://github.com/Sylius/Sylius/assets/80641364/87961cad-e9af-467c-8a22-40063e925be8)
<img width="560" alt="CleanShot 2023-06-01 at 15 27 21@2x" src="https://github.com/Sylius/Sylius/assets/80641364/3a5ad0ba-cdc0-4799-9904-89bc8badf8d0">

Only unused locales can be removed. If a locale appears in any translation, automatically, it cannot be removed.

Commits
-------

aad14e7a54 Create LocaleUsageChecker service
1cbe3a99a8 Add Behat scenario covering removing a locale
1c4b55e09f Implement RemoveLocale command
f71029f8a9 Fix CI
343c2ed0bd Provide improvements after code review
7b830979aa Add a delete locale API endpoint
2af0ee80d7 Remove RemoveLocale CLI command
35334343e4 Cover removing a locale via API scenarios
388d0ee7c6 Add contract tests for removing a locale
4251f061c8 Implement DeleteLocaleAction in the SyliusAdmin
383220b49b Create LocaleRemover service
da96a6aa8d Refactor the DeleteLocale action to use the LocaleRemover
7988cbeb33 Refactor the ApiBundle's DeleteLocale action to use the LocaleRemover
11311e3c4c Implement the UI part of removing the locales
e458531de2 Adjust Behat scenario for removing a locale
05bf744c63 Replace custom Action for Locale removing in AP with an event listener
d63d17926d Replace custom Action for Locale removing via API with a data persister
3d5cb02c3e Delete an unused LocaleRemover service
956f86133b Apply ECS fixes
fb9da0583d Provide post-CR fixes
2023-06-28 11:34:08 +02:00
Jakub Tobiasz
23dce64a20 Apply Psalm suggestions 2023-06-28 10:00:14 +02:00
dependabot[bot]
e256674e21 Update vimeo/psalm requirement from 5.12.* to 5.13.*
Updates the requirements on [vimeo/psalm](https://github.com/vimeo/psalm) to permit the latest version.
- [Release notes](https://github.com/vimeo/psalm/releases)
- [Commits](https://github.com/vimeo/psalm/compare/5.12.0...5.13.0)

---
updated-dependencies:
- dependency-name: vimeo/psalm
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-28 10:00:14 +02:00
Jakub Tobiasz
fb9da0583d
Provide post-CR fixes 2023-06-28 08:58:43 +02:00
Jakub Tobiasz
956f86133b
Apply ECS fixes 2023-06-28 08:58:43 +02:00
Jakub Tobiasz
3d5cb02c3e
Delete an unused LocaleRemover service 2023-06-28 08:58:43 +02:00
Jakub Tobiasz
d63d17926d
Replace custom Action for Locale removing via API with a data persister 2023-06-28 08:58:43 +02:00
Jakub Tobiasz
05bf744c63
Replace custom Action for Locale removing in AP with an event listener 2023-06-28 08:58:43 +02:00
Jakub Tobiasz
e458531de2
Adjust Behat scenario for removing a locale 2023-06-28 08:58:43 +02:00
Jakub Tobiasz
11311e3c4c
Implement the UI part of removing the locales 2023-06-28 08:58:43 +02:00
Jakub Tobiasz
7988cbeb33
Refactor the ApiBundle's DeleteLocale action to use the LocaleRemover 2023-06-28 08:58:43 +02:00
Jakub Tobiasz
da96a6aa8d
Refactor the DeleteLocale action to use the LocaleRemover 2023-06-28 08:58:43 +02:00
Jakub Tobiasz
383220b49b
Create LocaleRemover service 2023-06-28 08:58:43 +02:00
Jakub Tobiasz
4251f061c8
Implement DeleteLocaleAction in the SyliusAdmin 2023-06-28 08:58:43 +02:00
Jakub Tobiasz
388d0ee7c6
Add contract tests for removing a locale 2023-06-28 08:58:43 +02:00
Jakub Tobiasz
35334343e4
Cover removing a locale via API scenarios 2023-06-28 08:58:43 +02:00
Jakub Tobiasz
2af0ee80d7
Remove RemoveLocale CLI command 2023-06-28 08:58:43 +02:00
Jakub Tobiasz
7b830979aa
Add a delete locale API endpoint 2023-06-28 08:58:43 +02:00
Jakub Tobiasz
343c2ed0bd
Provide improvements after code review 2023-06-28 08:58:43 +02:00
Jakub Tobiasz
f71029f8a9
Fix CI 2023-06-28 08:58:43 +02:00
Jakub Tobiasz
1c4b55e09f
Implement RemoveLocale command 2023-06-28 08:58:43 +02:00
Jakub Tobiasz
1cbe3a99a8
Add Behat scenario covering removing a locale 2023-06-28 08:58:43 +02:00
Jakub Tobiasz
aad14e7a54
Create LocaleUsageChecker service 2023-06-28 08:58:43 +02:00
Jacob Tobiasz
00935bff8d
[UPMERGE] 1.12 -> 1.13 (#15131) 2023-06-28 08:05:47 +02:00
Jakub Tobiasz
7b04f77408
Merge changes from 1.12 2023-06-28 07:12:42 +02:00
Rafał Jaskulski
eca88f8cdd
minor #15130 Add conflict to symfony/validator 5.4.25, 6.2.12 and 6.3.1 (TheMilek)
This PR was merged into the 1.12 branch.

Discussion
----------

| Q               | A                                                            |
|-----------------|--------------------------------------------------------------|
| Branch?         | 1.12  <!-- see the comment below -->                  |
| Bug fix?        | yes                                                     |
| New feature?    | no                                                      |
| BC breaks?      | no                                                   |
| Related tickets |    https://github.com/symfony/symfony/issues/50780                   |
| 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
-->
It's probably related to [this](81772c1645) change

Commits
-------
  Add conflict to symfony/validator 5.4.25, 6.2.12 and 6.3.1 versions
  Update conflicts file
2023-06-27 12:52:07 +02:00
TheMilek
21bca41a1c
Update conflicts file 2023-06-27 12:15:25 +02:00
TheMilek
0f1509a7d6
Add conflict to symfony/validator 5.4.25, 6.2.12 and 6.3.1 versions 2023-06-27 12:15:24 +02:00
Kamil Grygierzec
79313bc55f
minor #15122 [API] Cover signing in validation (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?    | yes                                                       |
| 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
-->

Ref: https://github.com/Sylius/Sylius/pull/12633
I adjusted the step description to reflect its current state

Commits
-------

2b1a243607 [Scenarios] Add @api tag and change step implementation to reflect current app behaviour
7be12fda6b [Behat][UI] Remove unused step implementation
26775322f5 [ECS] Apply ecs fixes
2023-06-26 12:45:43 +02:00
Rafikooo
26775322f5
[ECS] Apply ecs fixes 2023-06-23 15:09:00 +02:00
Rafikooo
7be12fda6b
[Behat][UI] Remove unused step implementation 2023-06-23 15:08:07 +02:00
Rafikooo
2b1a243607
[Scenarios] Add @api tag and change step implementation to reflect current app behaviour 2023-06-23 15:08:06 +02:00
Rafał Jaskulski
e0d2891eb7
[UPMERGE] 1.12 -> 1.13 (#15124) 2023-06-23 12:38:58 +02:00
Jakub Tobiasz
720cf95804
Add missing entry to phpstan-baseline.neon 2023-06-23 11:27:06 +02:00
Jakub Tobiasz
3e55375943
Apply ECS fixes 2023-06-23 11:20:05 +02:00
Jakub Tobiasz
a5f98ac19c
Include children taxons while executing InForTaxonsScopeVariantChecker 2023-06-23 11:20:05 +02:00
Rafał Jaskulski
45bc40851d
bugfix #15110 Include children taxons while executing InForTaxonsScopeVariantChecker (jakubtobiasz)
This PR was merged into the 1.12 branch.

Discussion
----------

| Q               | A                                                            |
|-----------------|--------------------------------------------------------------|
| Branch?         | 1.12
| Bug fix?        | yes
| New feature?    | no
| BC breaks?      | no
| License         | MIT

Commits
-------
  Include children taxons while executing InForTaxonsScopeVariantChecker
  Apply ECS fixes
  Update PHPStan baseline for 1.12 branch
2023-06-23 10:55:25 +02:00
Jakub Tobiasz
b56bad878d
Update PHPStan baseline for 1.12 branch 2023-06-23 10:21:36 +02:00
Jakub Tobiasz
538fe976c4
Apply ECS fixes 2023-06-23 10:21:36 +02:00
Jakub Tobiasz
8e38c77061
Include children taxons while executing InForTaxonsScopeVariantChecker 2023-06-23 10:21:36 +02:00
Kamil Grygierzec
b97140b112
bug #15121 Fix CI (jakubtobiasz)
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
-------

b25ec66833 Adjust upmerge PR message body
cd1b835117 Fix composer.json
6dab1aba12 Update PHPStan baseline file
2023-06-23 09:55:37 +02:00
Jakub Tobiasz
6dab1aba12
Update PHPStan baseline file 2023-06-23 09:06:32 +02:00
Jakub Tobiasz
cd1b835117
Fix composer.json 2023-06-23 08:39:59 +02:00
Jakub Tobiasz
b25ec66833
Adjust upmerge PR message body 2023-06-23 08:35:56 +02:00
Grzegorz Sadowski
70107318d0
Merge branch '1.12' into 1.13
* 1.12:
  Add a conflict for doctrine/orm:2.15.3
  Ignore ApiPlatform\Core\Api\IriConverterInterface DeprecatedInterface Psalm error
  Ignore ApiPlatform\Core\Api\IriConverterInterface DeprecatedClass Psalm error
  Fix misleading signing in the admin panel feature description
  Update PHPStan baseline file
  [PHPStan] Upgrade to level 6 (#14019)
  [Maintenance] Update the copyright block
  [Docs] Update Vision role
  [Fixture] Improve LazyOption performance
  [CS][DX] Refactor
2023-06-23 08:11:04 +02:00
Grzegorz Sadowski
f9633e9745
bug #15118 Fix CI (jakubtobiasz)
This PR was merged into the 1.12 branch.

Discussion
----------

| Q               | A                                                            |
|-----------------|--------------------------------------------------------------|
| Branch?         | 1.12
| Bug fix?        | no
| New feature?    | no
| BC breaks?      | no
| License         | MIT

Commits
-------

7f0e55485f Ignore ApiPlatform\Core\Api\IriConverterInterface DeprecatedInterface Psalm error
c6eab12107 Add a conflict for doctrine/orm:2.15.3
2023-06-23 08:00:25 +02:00
Jakub Tobiasz
c6eab12107
Add a conflict for doctrine/orm:2.15.3 2023-06-23 07:03:40 +02:00
Jakub Tobiasz
7f0e55485f
Ignore ApiPlatform\Core\Api\IriConverterInterface DeprecatedInterface Psalm error 2023-06-22 15:32:58 +02:00
Jacob Tobiasz
f9c3a543d3
feature #15099 [Product] Composite variant resolver (NoResponseMate)
This PR was merged into the 1.13 branch.

Discussion
----------

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

Commits
-------
  [Product] Composite variant resolver
  [Product] Variant resolver BC layer
  [Maintenance] Swap internal usage of default variant resolver to the composite
  Note product variant resolving refactor in the upgrade file
  [Product] Add attribute for product variant resolvers
  Update upgrade file with AsProductVariantResolver attribute
  [Maintenance] Update copyrights
  Simplify product varaint resolvers autoconfiguration
2023-06-22 15:29:18 +02:00