Commit graph

4038 commits

Author SHA1 Message Date
Rafikooo
06a8da9a21
[Behat] Implement the admin order shipping scenarios 2023-11-22 13:38:10 +01:00
Rafikooo
054b1ae1b4
[Behat] Enable the rest of the admin order billing scenarios 2023-11-22 13:38:10 +01:00
Rafikooo
ac824ffd96
[Behat] Improve order billing address scenarios 2023-11-22 13:37:31 +01:00
Rafikooo
28962c0af7
[API][Admin] Add modifying billing address scenarios 2023-11-22 13:37:30 +01:00
Wojdylak
77124ac2a8 Resolve phpstan isssues 2023-11-22 08:36:20 +01:00
Wojdylak
10c33085ca Add behat tests for Promotion 2023-11-22 08:36:20 +01:00
Grzegorz Sadowski
0604c99e06
feature #15530 [API] Cover payment method management (TheMilek)
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
-->


Commits
-------

04dc0b504d [API] Cover payment method management
b213efbc80 [Behat] Cover API scenarios
116d2dead0 Prevent removing payment method that is in use
9c462870eb Add contract tests
80be385cfe Adjust existing tests to changes
2023-11-22 06:37:07 +01:00
Jacob Tobiasz
0a5878f745
Cover sequential_order_number_generation.feature scenario in API 2023-11-21 17:57:04 +01:00
Jacob Tobiasz
b9b1217e13
Cover seeing_orders_with_different_currency_on_index.feature scenario in API 2023-11-21 17:56:59 +01:00
Jacob Tobiasz
79de1fcc17
Cover seeing_orders_currency_on_index.feature scenario in API 2023-11-21 17:56:53 +01:00
Kamil Grygierzec
b213efbc80
[Behat] Cover API scenarios 2023-11-21 15:53:09 +01:00
Francis Hilaire
3d72280fa9
Add Scenario to test default variant 2023-11-20 19:31:27 +01:00
Wojdylak
d082a91362 [Behat] Change steps in ManagingPromotionsContext class 2023-11-20 11:37:02 +01:00
Wojdylak
ace6ff43a9 [Behat] Fix promotions_filter_validation.feature 2023-11-20 11:37:02 +01:00
Wojdylak
5d82fd1781 [ApiBundle] Add behat tests for promotion resource 2023-11-20 11:37:02 +01:00
Grzegorz Sadowski
067fe7a691
Revert "[API][Admin] Add possibility to change uploaded taxon image file"
This reverts commit aefd44b44c.
2023-11-20 07:05:40 +01:00
Grzegorz Sadowski
aefd44b44c
[API][Admin] Add possibility to change uploaded taxon image file 2023-11-17 08:26:29 +01:00
Grzegorz Sadowski
104f6bba7a
[Behat][API][Admin] Cover changing images of taxon 2023-11-16 15:02:58 +01:00
Grzegorz Sadowski
aa5f2e829f
[Behat][API][Admin] Cover removing images of taxon 2023-11-16 15:02:58 +01:00
Grzegorz Sadowski
dea5df6fc8
[Behat][API][Admin] Cover adding images to existing taxon 2023-11-16 15:02:57 +01:00
Jacob Tobiasz
68e776bef2
minor #15501 [API] Automatically add a default translation to translatables (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                                                          |

Commits
-------
  [API] Automatically add a default translation to translatables
  [API] Adjust tests after missing translation validation kicked in
  [API] Less naive default translation checking
2023-11-08 10:38:40 +01:00
Jan Goralski
0708088156
[API] Adjust tests after missing translation validation kicked in 2023-11-07 11:23:07 +01:00
Grzegorz Sadowski
072bf8723c
feature #15452 [API] Cover editing and deleting channels (TheMilek, jakubtobiasz)
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
-->


Commits
-------

a0b29867eb Cover editing and deleting channels
f8222e5a4c [Behat] Add api tag to managing channel scenarios
67761b9626 [Behat] Add replaceRequestData method to ApiPlatformClient
6e0edf1db3 Prevent from deleting last available channel
4b9df1dc0b Add put operation to ShopBillingDataResource
3b7a343ddb Update ChannelDenormalizer to create ShopBillingData by default
53a120af07 Update upgrade file
14a94c043b [Behat] Create shopBillingData by default in channel setup step
8d4214d18c Refactor checking whether the channel can be deleted
2023-11-07 10:59:39 +01:00
Grzegorz Sadowski
0e6ac906c6
feature #15457 [API] Add Customer resources (Wojdylak)
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 | N/A
| License         | MIT


Commits
-------

2df7d79909 [ApiBundle] Add customer resource to APIP2, admin scope
b962bfb6fc [ApiBundle] Add behat tests for customer resources
df266cc161 ApiBundle] Add customer modification feature to APIP2
1549c9d4b8 [ApiBundle] Add behat tests for customer resources
3801a7c293 [ApiBundle] Remove unused field
f2cae6f456 [ApiBundle][Swagger] Hide shop user get endpoint
b287891ca2 [ApiBundle] Add filtering customers by groups
fa0ad8d3a7 [ApiBundle] Add contract tests for Customer Api resources
a84513bb19 [ApiBundle] Add validation group to put action on customer
d53ed1413e [ApiBundle] Add notified password step to ManagingCustomersContext
0ccbcf8943 [ApiBundle] ManagingCustomersContext - refactor methods for simplicity
0cd1fa74d2 [ApiBundle] Unify behat tests for customer management
90f7a1b788 [ApiBundle] Remove endpoint subresource order for customer and use endpoint order with customer filter
2d50bd66a8 [ApiBundle] Fix seeing customer's basic information test
ba5c4e8ffb [ApiBundle] Fix seeing customer's basic information test
dddf3c5198 [ApiBundle] Remove order property from customer
2023-11-02 07:54:19 +01:00
Kamil Grygierzec
9518e82a41
feature #15460 [API][Admin] Managing product variants (GSadee)
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 | 
| 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][Admin] Extend GET endpoints for getting product variants
  [API][Admin] Extend POST endpoint for creating a product variant
  [API][Admin] Extend PUT endpoint for updating the product variant
  [API][Admin] Add DELETE endpoint for product variant resource
  [Behat][API] Cover scenarios for adding a product variant
  [Behat][API] Cover scenarios for browsing product variants
  [Behat][API] Cover scenarios for deleting a product variant
  [API][Behat] Mark scenarios for generating product variants as no-api
  [API][Behat] Cover scenarios for editing and validating product variants
  [API] Validate option values on product variants
  Fix CS and static analysis
  [API] Fix contract tests after changing fixtures for product variants
  [Behat][API] Extract some steps to separate contexts to resolve duplications
  [Behat][API] Change setting code on option value to resolve problem with case sensitive PostgreSQL
2023-10-31 16:07:35 +01:00
Kamil Grygierzec
f8222e5a4c
[Behat] Add api tag to managing channel scenarios 2023-10-31 09:09:26 +01:00
Wojdylak
0cd1fa74d2 [ApiBundle] Unify behat tests for customer management 2023-10-30 08:19:19 +01:00
Grzegorz Sadowski
e99377eeed
[Behat][API] Change setting code on option value to resolve problem with case sensitive PostgreSQL 2023-10-24 15:16:13 +02:00
Wojdylak
b287891ca2 [ApiBundle] Add filtering customers by groups 2023-10-24 13:00:13 +02:00
Grzegorz Sadowski
3fddabca2d
[API] Validate option values on product variants 2023-10-24 09:09:04 +02:00
Wojdylak
1549c9d4b8 [ApiBundle] Add behat tests for customer resources 2023-10-24 08:50:35 +02:00
Grzegorz Sadowski
e5d9a161dc
[API][Behat] Cover scenarios for editing and validating product variants 2023-10-23 08:43:01 +02:00
Grzegorz Sadowski
42a0c129ad
[API][Behat] Mark scenarios for generating product variants as no-api 2023-10-23 08:43:00 +02:00
Grzegorz Sadowski
d8adf86ee6
[Behat][API] Cover scenarios for deleting a product variant 2023-10-23 08:43:00 +02:00
Grzegorz Sadowski
76c39a6691
[Behat][API] Cover scenarios for browsing product variants 2023-10-23 08:43:00 +02:00
Grzegorz Sadowski
7403d1c08e
[Behat][API] Cover scenarios for adding a product variant 2023-10-23 08:43:00 +02:00
Grzegorz Sadowski
1a11d5875c
[API] Fixes and improvements to product management after PR review 2023-10-20 15:49:27 +02:00
Wojdylak
b962bfb6fc [ApiBundle] Add behat tests for customer resources 2023-10-20 15:28:32 +02:00
Grzegorz Sadowski
3527441eda
[API] Validate values of product attributes on product 2023-10-20 14:02:55 +02:00
Grzegorz Sadowski
8bf40cc431
[Behat][API] Cover scenarios for validating setting attributes on a product 2023-10-20 14:02:54 +02:00
Grzegorz Sadowski
ba1a1b08dd
[Behat][API] Cover scenarios for validating a product 2023-10-20 14:02:54 +02:00
Grzegorz Sadowski
f7be453fdc
[Behat] Mark scenarios for removing product price from simple products as no-api 2023-10-20 14:02:54 +02:00
Grzegorz Sadowski
19eef45d3e
[Behat][API] Cover scenarios for preventing deletion of purchased product 2023-10-20 14:02:54 +02:00
Grzegorz Sadowski
b6a2f165ae
[Behat][API] Cover scenarios for editing an existing product 2023-10-20 14:02:53 +02:00
Grzegorz Sadowski
9d167bcd07
[Behat] Make features names for toggling inventory and simple products consistent with other 2023-10-20 14:02:53 +02:00
Grzegorz Sadowski
20d81ef294
[Behat] Mark scenarios for accessing product show page from admin as no-api 2023-10-20 14:02:53 +02:00
Grzegorz Sadowski
c4324e5123
[Behat][API] Cover scenarios for adding a product 2023-10-20 14:02:53 +02:00
Grzegorz Sadowski
4210f4a42f
[Behat][API] Cover managing attribute values on product 2023-10-20 14:02:52 +02:00
Grzegorz Sadowski
1f08df0b35
[Behat] Mark scenarios for accessing variants management as no-api 2023-10-20 14:02:51 +02:00
Grzegorz Sadowski
6c2c877041
feature #13902 [API] Reset password : add validations to produce 422 instead of 500 status code (Prometee, Wojdylak)
This PR was merged into the 1.13 branch.

Discussion
----------

| Q               | A
| --------------- | -----
| Branch?         | master
| Bug fix?        | no
| New feature?    | no
| BC breaks?      | no
| Deprecations?   | yes
| Related tickets | mentioned in #13899
| License         | MIT

Previously there was no validation on the `RequestPassword` object leading to 500 errors during the execution of the command handler.

With this PR, `ResetPasswordTokenExists` and `ResetPasswordTokenExpires` have been added to validate the `RequestPassword` object before the command handler is executed. A new scenario is now testing the expiration of a reset password request.


Commits
-------

768018edef Add validation on reset password token
a00fa79b26 Add new scenario testing expired password requested token
3673af1840 Add new spec files for the two new validators
fc94751d9a Alphabetic ordering
623e184fe7 Rename method
e4eabd5f30 Add new UserNotFound validator to the RequestResetPasswordToken object
4b5f3f5142 Add a new scenario to test validation
1fba577fe0 Rename validators and spec methods
2b80f9dee8 Use ShopUser prefix because validators can't be use with AdminUser
0d146878a4 Mirror UI behaviour within the API call
38e2069524 Remove not used constraints
e2fc25a1c1 Use the already present contexts
926081a7ac Add API validator message check
7c82a3788d Revert method name
a4bf2368a8 Remove not used uses
13346a258d Merge method
11154a1ddb Remove no more used method
25c96c5d2f Subtract twice to ensure the ttl is passed
71da3cd160 Fix and enhance method name
530a471d6e Remove not used translation
7f5e880728 Ensure no false positive assertion and use string literal instead of variable
4fec06d295 Add mixed type
47c2feb8fe Update src/Sylius/Bundle/ApiBundle/Resources/translations/validators.en.yaml
7e1538badb Fix not available constant
d20a5e4422 [Maintenance] Update the copyright block
4ad5e4c174 Fix coding style
dd65439ba7 Remove unused method
142601b439 Fix coding style
6b809c8a09 Fix coding style
7159d33293 Explicit var renaming
8763404483 Make the sentence applies to both UI and API
2023-10-12 14:33:36 +02:00