Commit graph

37322 commits

Author SHA1 Message Date
Michał Pysiak
9e75e50b21
Install only needed APIP packages 2024-10-28 08:26:30 +01:00
Grzegorz Sadowski
c5bf79925b
Fix CI matrix APIP versions (#17349)
| Q               | A
|-----------------|-----
| Branch?         | 2.0
| Bug fix?        | no
| New feature?    | no
| BC breaks?      | no
| Deprecations?   | no
| Related tickets | n/a
| 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
-->
2024-10-28 08:22:36 +01:00
Michał Pysiak
27b9d239b1
Fix phpunit tests 2024-10-28 07:31:45 +01:00
Michał Pysiak
808875a872
Turn of composerchecker for now 2024-10-28 07:20:31 +01:00
Michał Pysiak
9c73245833
Fix CI matrix APIP versions 2024-10-28 06:53:15 +01:00
Grzegorz Sadowski
dcf5284cc6
[CS][DX] Refactor (#17347)
This PR has been generated automatically.
For more details see
[refactor.yaml](/Sylius/Sylius/blob/1.12/.github/workflows/refactor.yaml).
2024-10-28 06:48:28 +01:00
Grzegorz Sadowski
5779498423
[Maintenance][API] Install API Platform 4.0 (#16989)
| Q               | A
|-----------------|-----
| Branch?         | 2.0
| Bug fix?        | no
| New feature?    | no
| BC breaks?      | no
| Deprecations?   | no
| 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
-->
2024-10-28 06:34:34 +01:00
Sylius Bot
9efe28e35a [CS][DX] Refactor 2024-10-28 02:28:35 +00:00
Kamil Grygierzec
a71f3659b5
[Shop] Reorganize Twig hooks on register page (#17344)
| Q               | A
|-----------------|-----
| Branch?         | 2.0
| Bug fix?        | no
| New feature?    | no
| BC breaks?      | no
| Deprecations?   | no
| 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
-->

The idea is to remove the header part from the form.
I've added a main content item to keep having the first container
handled with Twig hooks.

Login page has the same strange thing.
So register link is on the form.


![image](https://github.com/user-attachments/assets/910a7fe5-964a-4719-b84f-6dd53bbc771f)
2024-10-27 19:55:34 +01:00
Grzegorz Sadowski
768f5a5615
[AdminBundle] Customer index - add info that customer doesn't have a ShopUser (#17343)
| Q               | A
|-----------------|-----
| Branch?         | 2.0
| Bug fix?        | no
| New feature?    | no
| BC breaks?      | no
| Deprecations?   | no
| Related tickets | n/a
| License         | MIT


![image](https://github.com/user-attachments/assets/051669dc-4911-4227-ae1b-b3782ec0335c)
2024-10-25 16:28:19 +02:00
Grzegorz Sadowski
029f17fe8b
[OrderPay] Avoid instantiating all available Payum gateways (#17339)
| Q               | A
|-----------------|-----
| Branch?         | 2.0
| Bug fix?        | no
| New feature?    | no
| BC breaks?      | no
| Deprecations?   | no
| Related tickets | 
| License         | MIT

`$this->payum->getGateways()` is kind of heavy if you have huge Payum
gateways, the flag `use_payum` and can now be used to avoid
instantiating all available Payum gateways.
2024-10-25 16:13:36 +02:00
Karol
344da5d95a
[Admin] Remove NotificationController (#17341)
| Q               | A
|-----------------|-----
| Branch?         | 2.0
| Bug fix?        | no
| New feature?    | no
| BC breaks?      | no
| Deprecations? | no<!-- don't forget to update the UPGRADE-*.md file
-->
| Related tickets | related to #17340 
| 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
-->
2024-10-25 16:02:46 +02:00
Grzegorz Sadowski
9850a4d292
Merge branch '2.0' into test-apip-4 2024-10-25 15:02:06 +02:00
Grzegorz Sadowski
f3349a49d1
[PaymentRequest] Encryption of payment related data (#17283)
| Q               | A
|-----------------|-----
| Branch?         | 2.0
| Bug fix?        | no
| New feature?    | kinda
| BC breaks?      | yes?
| Deprecations?   | no
| Related tickets | -
| License         | MIT
2024-10-25 14:58:24 +02:00
Loïc Frémont
874ae7a96d [Shop] Reorganize Twig hooks on register page 2024-10-25 14:50:22 +02:00
Wojdylak
95073f3b55
[AdminBundle] Customer index - add info that customer doesn't have a ShopUser 2024-10-25 14:47:44 +02:00
Grzegorz Sadowski
58cb417a1f
[Maintenance] Fix invalid install command argument (#17335)
| Q               | A
|-----------------|-----
| Branch?         | 2.0
| Bug fix?        | yes
| New feature?    | no
| BC breaks?      | no
| Deprecations?   | no
| Related tickets | related #16785
| License         | MIT

Due to this typehint the installation command is creating a hardcoded
`1/` directory instead of whatever is set under
`sylius_core.public_dir`.
2024-10-25 14:36:13 +02:00
Francis Hilaire
e022527a0a
Fix wrong suffix 2024-10-25 14:23:01 +02:00
Grzegorz Sadowski
b00ce4a05c
[Admin] Remove NotificationController 2024-10-25 14:20:09 +02:00
Jan Goralski
40908d1248
Cleanup v2 2024-10-25 14:09:30 +02:00
Jan Goralski
7b79ffef1a
Refactor creating encryption key
Hook key file generation to the installation command
2024-10-25 14:09:30 +02:00
Francis Hilaire
385bc223f4
Missing interface 2024-10-25 13:39:10 +02:00
Francis Hilaire
14ae2dbe4e
Do not get all available gateways just rely on database data 2024-10-25 13:25:03 +02:00
Michał Pysiak
53b5dfaefd
Remove services 2024-10-25 12:34:59 +02:00
Michał Pysiak
55e281d67a
Bump minimal version to 4.0.3 2024-10-25 12:34:52 +02:00
Jan Goralski
0ad1b6cf56
[Maintenance] Fix invalid install command argument 2024-10-25 11:23:03 +02:00
Grzegorz Sadowski
063bde88a6
Fix gateway factory not exist (#17332)
| Q               | A
|-----------------|-----
| Branch?         | 2.0
| Bug fix?        | yes
| New feature?    | yes
| BC breaks?      | no
| Deprecations?   | no
| Related tickets | 
| License         | MIT

When `$this->payum->getGateways()` is called, Payum will try to create
all available gateways including those present in the database. This
create an issue if your gateway is not using Payum. This PR is aiming to
filter out all gateways which are not willing to use Payum.

To do so:

- [x] a new field has been added to the `GatewayConfig`, it allows to
choose if you want to use payum or not.
- [x] the displayed checkbox is NOT disabled if the gateway support both
Payum and PaymentRequest.
- [x] if only PaymentRequest is supported, then the flag is set to
false.
2024-10-25 11:00:15 +02:00
Jan Goralski
1e823152a4
Switch from password and salt to an encryption key 2024-10-25 10:36:13 +02:00
Jan Goralski
8b087aeecb
Parametrize password and salt used for encoding 2024-10-25 10:36:13 +02:00
Jan Goralski
aa70cf6404
Cleanup 2024-10-25 10:36:13 +02:00
Jan Goralski
7daa3a2c70
Functional tests of encrypting and decrypting 2024-10-25 10:36:13 +02:00
Jan Goralski
df920da196
Add disabling concrete gateway factories 2024-10-25 10:36:13 +02:00
Jan Goralski
1ff66598fb
Cover disabling encryption 2024-10-25 10:36:13 +02:00
Jan Goralski
86cd6f2c07
Hook encryption to doctrine events 2024-10-25 10:36:12 +02:00
Jan Goralski
2bcd5b48ea
Create encrypters per specific entity 2024-10-25 10:36:12 +02:00
Jan Goralski
bb92fc1370
Create an encryption service 2024-10-25 10:36:12 +02:00
Jan Goralski
54f85b5ed6
[Configuration] Basic payment-related encryption config 2024-10-25 10:36:12 +02:00
Michał Pysiak
bf1a337d9b
Fix update password behat context 2024-10-25 10:18:10 +02:00
Michał Pysiak
f8d3d40465
Revert removed services 2024-10-25 10:18:10 +02:00
Michał Pysiak
aa4e7a6f5e
Revert changes to ApiClient 2024-10-25 10:18:10 +02:00
Michał Pysiak
51bbd59e1d
Remove services 2024-10-25 10:18:10 +02:00
Michał Pysiak
9a2260b962
Revert CI changes 2024-10-25 10:18:09 +02:00
Michał Pysiak
de841ff3f2
Fix response when route not found 2024-10-25 10:18:09 +02:00
Michał Pysiak
33ca5784a0
Fix changed response field 2024-10-25 10:18:09 +02:00
Michał Pysiak
137d4d3c79
Fix after rebase 2024-10-25 10:18:09 +02:00
Michał Pysiak
e04d8871b0
turn on unit and turn off rerun (for now) 2024-10-25 10:18:09 +02:00
Michał Pysiak
2b576dda75
move problematic test 2024-10-25 10:18:09 +02:00
Michał Pysiak
79ea166fc8
Remove duplicated operations 2024-10-25 10:18:09 +02:00
Michał Pysiak
8e95467caf
Fix response test 2024-10-25 10:18:09 +02:00
Michał Pysiak
a4e13f312e
Fix ApiBundle unit test 2024-10-25 10:18:08 +02:00