Commit graph

31599 commits

Author SHA1 Message Date
Grzegorz Sadowski
7852fd6f4f
[API][Shop] Minor clean up of address contract tests 2024-02-22 15:34:33 +01:00
Grzegorz Sadowski
79fd759597
minor #15864 [API][Admin][Shop] Fix returned adjustments for order item (Wojdylak)
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 | N/A
| License         | MIT


Commits
-------

0146289e2b [Api][Admin] Add recursively return adjustments for order item
dce6814d9c [Api][Shop][Adjustment] Ensure order item belongs to passed order
2024-02-22 13:21:33 +01:00
Grzegorz Sadowski
c5282b5bb0
minor #15861 [API] Cover adjustments serialization on OrderItemUnit and Shipment resources (Wojdylak)
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 | #15788
| License         | MIT


Commits
-------

9bea130b91 [Api] Add subresource operation for orderItemUnit adjustments
32305d2ab4 [Api][Admin] Add subresource operation for shipment adjustments
56f7b2b0dd [Api] Remove collection operation of adjustments
2024-02-22 12:50:08 +01:00
Grzegorz Sadowski
358616e49e
minor #15857 [Api][ProductTaxon] Disable the ability to update product and taxon fields on productTaxon (Wojdylak)
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 | N/A
| License         | MIT


Commits
-------

215dc694d4 [Api][ProductTaxon] Disable the ability to update product and taxon fields on productTaxon
55a1e8c1b2 Update upgrade file
2024-02-22 06:49:56 +01:00
Wojdylak
dce6814d9c
[Api][Shop][Adjustment] Ensure order item belongs to passed order 2024-02-21 13:54:31 +01:00
Wojdylak
0146289e2b
[Api][Admin] Add recursively return adjustments for order item 2024-02-21 12:31:19 +01:00
Wojdylak
56f7b2b0dd
[Api] Remove collection operation of adjustments 2024-02-20 13:56:58 +01:00
Wojdylak
32305d2ab4
[Api][Admin] Add subresource operation for shipment adjustments 2024-02-20 13:39:38 +01:00
Wojdylak
9bea130b91
[Api] Add subresource operation for orderItemUnit adjustments 2024-02-20 13:26:45 +01:00
Wojdylak
55a1e8c1b2
Update upgrade file 2024-02-19 11:13:09 +01:00
Wojdylak
215dc694d4
[Api][ProductTaxon] Disable the ability to update product and taxon fields on productTaxon 2024-02-19 10:07:44 +01:00
Rafał Jaskulski
e6b3789477
[UPMERGE] 1.12 -> 1.13 (#15848)
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 
git merge upstream/1.13 --no-commit
```

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-02-16 09:32:09 +01:00
Jan Góralski
150d1302c1
minor #15842 [Promotion] Add form type option to AsPromotionAction attribute (Wojdylak)
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 | #15795
| License         | MIT


Commits
-------
  [Promotion] Add form type option to AsPromotionAction attribute
2024-02-15 09:18:56 +01:00
Jan Góralski
43472bd5b5
minor #15839 [FLYSYSTEM] Add directory visibility as public to local storage (Wojdylak)
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 | N/A
| License         | MIT

Currently, the local `sylius.storage` configuration for Flysystem creates folders in `media/image` with 700 permissions.Using the option `directory_visibility: public`, it creates them with 755 permission.

Commits
-------
  [FLYSYSTEM] Add directory visibility as public to local storage
2024-02-15 09:17:43 +01:00
Karol
6dca8f5aa4
minor #15843 Resolve comments (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?    | 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
-->
Continuation of https://github.com/Sylius/Sylius/pull/15788


Commits
-------
  Resolve comments
2024-02-15 09:13:18 +01:00
Kamil Grygierzec
ff50deec10
Resolve comments 2024-02-15 08:47:00 +01:00
Jacob Tobiasz
78ba43534c
minor #15836 Resolve contract tests catalogs (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?    | 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
-->
Based on https://github.com/Sylius/Sylius/pull/15788

Commits
-------
  fix ship shipments
  [Admin][AdminUser] unify contact tests catalog
  [Admin][PriceHistory] unify contract tests catalog
  [Admin][Order] unify contract tests catalog
  [Admin][Locale] unify contract tests catalog
  [Admin][Payment] unify contract tests catalog
  [Admin][ShopBillingData] unify contract tests catalog
  [Shop][Payment] unify contract tests catalog
  [Shop][Locale] unify contract tests catalog
  [Shop][ExchangeRate] unify contract tests catalog
  [Shop][Country] unify contract tests catalog
  [Shop][Order] unify contract tests catalog
  [Shop][Channel] unify contract tests catalog
  [Shop][ShippingMethods] unify contract tests catalog
  [Shop][Product] unify contract tests catalog
  [Shop][Taxon] unify contract tests catalog
  Move all the contract tests to parent catalog Responses and remove expected catalog
2024-02-14 18:38:39 +01:00
Jacob Tobiasz
67ebccbf0f
minor #15794 Usage of E-Mail Managers within CommandHandlers (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 --> |
| Related tickets | https://github.com/Sylius/Sylius/pull/15774                     |
| 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] Deprecate ShipmentEmailManager and its interface
  [Shop] Deprecate ContactEmailManager and its interface
  Minor improvements for ShipmentEmailManager
  Extract reset password email sending to a dedicated manager
  Extract account registration email sending to a dedicated manager
  Extract account verification email sending to a dedicated manager
  Use OrderEmailManager in SendOrderConfirmationHandler
  Use ShipmentEmailManager in SendShipmentConfirmationHandler
  Remove obsolete functional tests
  Use ContactEmailManager in SendContactRequestHandler
  [ECS] Apply ecs fixes
  Move shop part of account verification template
  [Upgrade] Mention constructor changes in command handlers
  Unify account verification template naming in Shop and Core bundles
  [Email] Move e-mail sending from SendResetPasswordEmailHandler into ResetPasswordEmailManager
  [ApiBundle] Include resource objects checks in the SendAccountVerificationEmailHandler
  [Test] Move isSwiftmailerTestEnv helper function into trait
  [Email] Change verification email subject path
  [Test] Remove swiftmailer test
  [Test] Use new user verification message id
  [Email] Change translation keys regarding user account verification
  [CoreBundle] Add aliases to the new mailer services
  [Refactor] Place the EmailManager construct arguments after the repository arguments within command handler classes
  Update upgrade api file
  Update upgrade file
2024-02-14 18:37:22 +01:00
Jan Góralski
ab06c676cb
minor #15844 Fix serialization groups config formatting (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?    | no                                                       |
| BC breaks?      | no                                                       |
| 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
-->
Duplicating the serialization groups exposed some places where formatting is wrong [REF](https://github.com/Sylius/Sylius/pull/15803)

Commits
-------
  Fix serialization groups config formatting
2024-02-14 15:39:05 +01:00
Wojdylak
61e1f67042
Update upgrade file 2024-02-14 14:50:36 +01:00
Kamil Grygierzec
e2b4e1d508
Fix serialization groups config formatting 2024-02-14 14:00:54 +01:00
Kamil Grygierzec
e4827d74c9
Move all the contract tests to parent catalog Responses and remove expected catalog 2024-02-14 13:06:48 +01:00
Kamil Grygierzec
a793b25757
[Shop][Taxon] unify contract tests catalog 2024-02-14 13:05:58 +01:00
Kamil Grygierzec
fa5a276d18
[Shop][Product] unify contract tests catalog 2024-02-14 13:05:58 +01:00
Kamil Grygierzec
a46dc9a4b2
[Shop][ShippingMethods] unify contract tests catalog 2024-02-14 13:05:58 +01:00
Kamil Grygierzec
ab323c5d08
[Shop][Channel] unify contract tests catalog 2024-02-14 13:05:58 +01:00
Kamil Grygierzec
09c717c787
[Shop][Order] unify contract tests catalog 2024-02-14 13:05:58 +01:00
Kamil Grygierzec
35cee772f3
[Shop][Country] unify contract tests catalog 2024-02-14 13:05:57 +01:00
Kamil Grygierzec
448c5653d9
[Shop][ExchangeRate] unify contract tests catalog 2024-02-14 13:05:57 +01:00
Kamil Grygierzec
2b2660f257
[Shop][Locale] unify contract tests catalog 2024-02-14 13:05:57 +01:00
Kamil Grygierzec
67b0b3b396
[Shop][Payment] unify contract tests catalog 2024-02-14 13:05:57 +01:00
Kamil Grygierzec
ed374c39d4
[Admin][ShopBillingData] unify contract tests catalog 2024-02-14 13:05:57 +01:00
Kamil Grygierzec
932dba03c2
[Admin][Payment] unify contract tests catalog 2024-02-14 13:05:57 +01:00
Kamil Grygierzec
a5dbafbfa7
[Admin][Locale] unify contract tests catalog 2024-02-14 13:05:56 +01:00
Kamil Grygierzec
b41e3ab280
[Admin][Order] unify contract tests catalog 2024-02-14 13:05:56 +01:00
Kamil Grygierzec
c48689f606
[Admin][PriceHistory] unify contract tests catalog 2024-02-14 13:05:56 +01:00
Kamil Grygierzec
cda4326622
[Admin][AdminUser] unify contact tests catalog 2024-02-14 13:05:56 +01:00
Wojdylak
52c6a7dd22
Update upgrade api file 2024-02-14 12:18:40 +01:00
Wojdylak
6ef6ad29e0
[Promotion] Add form type option to AsPromotionAction attribute 2024-02-14 11:30:17 +01:00
Kamil Grygierzec
8c9b23297b
fix ship shipments 2024-02-14 10:51:20 +01:00
Rafikooo
ef2b428121
[Refactor] Place the EmailManager construct arguments after the repository arguments within command handler classes 2024-02-14 10:17:21 +01:00
Rafikooo
ddfcaedd8e
[CoreBundle] Add aliases to the new mailer services 2024-02-14 10:17:21 +01:00
Rafikooo
02ce4bcc40
[Email] Change translation keys regarding user account verification 2024-02-14 10:17:20 +01:00
Rafikooo
7771553c09
[Test] Use new user verification message id 2024-02-14 08:40:33 +01:00
Rafikooo
974a1d2616
[Test] Remove swiftmailer test 2024-02-14 08:40:32 +01:00
Rafikooo
ecfbc0de4a
[Email] Change verification email subject path 2024-02-14 08:40:32 +01:00
Rafikooo
3f8b9e8990
[Test] Move isSwiftmailerTestEnv helper function into trait 2024-02-14 08:40:32 +01:00
Rafikooo
1386959b95
[ApiBundle] Include resource objects checks in the SendAccountVerificationEmailHandler 2024-02-14 08:40:32 +01:00
Rafikooo
5f25adc2e9
[Email] Move e-mail sending from SendResetPasswordEmailHandler into ResetPasswordEmailManager 2024-02-14 08:40:32 +01:00
Rafikooo
28c8712506
Unify account verification template naming in Shop and Core bundles 2024-02-14 08:40:32 +01:00