Commit graph

29486 commits

Author SHA1 Message Date
dawkaa
65f39f2057 Add a taxon delete section
I added a taxon delete section.
2023-04-25 16:45:30 +08:00
Jacob Tobiasz
daa6dbd23f
Merge branch 1.12 into 1.13
* 1.12:
  fix english word and add shipment state in admin show shipment
  apply suggestion with new translation key
  add english translation
  [ApiBundle][Maintenance] Remove conflict with doctrine/dbal:3.*
2023-04-21 08:38:16 +02:00
Rafikooo
fee7df2354
[ApiBundle][Maintenance] Remove conflict with doctrine/dbal:3.* 2023-04-21 08:06:57 +02:00
BastienGoze
2fb86245e8
add english translation 2023-04-21 08:04:27 +02:00
BastienGoze
6f1425f877
apply suggestion with new translation key 2023-04-21 08:03:01 +02:00
BastienGoze
ff64be7312
fix english word and add shipment state in admin show shipment 2023-04-21 08:03:01 +02:00
Jan Góralski
4a5643fca7
minor #14951 Cover Api steps in paying offline during checkout scenario (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
-->


Commits
-------

9ae966d756 Cover Api steps in paying offline during checkout scenario
2023-04-20 16:44:59 +02:00
Grzegorz Sadowski
515a5ece2b
minor #14924 Update sylius/calendar requirement from ^0.3 || ^0.4 to ^0.5.0 (dependabot[bot], jakubtobiasz)
This PR was merged into the 1.13 branch.

Discussion
----------

Updates the requirements on [sylius/calendar](https://github.com/Sylius/Calendar) to permit the latest version.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/Sylius/Calendar/releases">sylius/calendar's releases</a>.</em></p>
<blockquote>
<h2>v0.5.0</h2>
<h3>Details</h3>
<ul>
<li><a href="https://redirect.github.com/Sylius/Calendar/issues/13">#13</a> Move Behat dependencies to the test app (<a href="https://github.com/coldic3"><code>@​coldic3</code></a>)</li>
<li><a href="https://redirect.github.com/Sylius/Calendar/issues/14">#14</a> [GitHub Actions] Configure workflow to run on the workflow_dispatch event (<a href="https://github.com/GSadee"><code>@​GSadee</code></a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/Sylius/Calendar/blob/main/CHANGELOG.md">sylius/calendar's changelog</a>.</em></p>
<blockquote>
<h3>v0.5.0 (2023-03-31)</h3>
<ul>
<li><a href="https://redirect.github.com/Sylius/Calendar/issues/13">#13</a> Move Behat dependencies to the test app (<a href="https://github.com/coldic3"><code>@​coldic3</code></a>)</li>
<li><a href="https://redirect.github.com/Sylius/Calendar/issues/14">#14</a> [GitHub Actions] Configure workflow to run on the workflow_dispatch event (<a href="https://github.com/GSadee"><code>@​GSadee</code></a>)</li>
</ul>
<h3>v0.4.0 (2022-09-05)</h3>
<ul>
<li><a href="https://redirect.github.com/Sylius/Calendar/issues/9">#9</a> Add support for Symfony 6 (<a href="https://github.com/loic425"><code>@​loic425</code></a>)</li>
<li><a href="https://redirect.github.com/Sylius/Calendar/issues/10">#10</a> [Composer][Maintenance] Allow plugins - symfony/flex, config directory moved, phpunit's bump (<a href="https://github.com/Rafikooo"><code>@​Rafikooo</code></a>)</li>
</ul>
<h3>v0.3.0 (2022-01-28)</h3>
<ul>
<li><a href="https://redirect.github.com/Sylius/Calendar/issues/8">#8</a> [Behat] Add calendar hook to remove temporary date after scenario (<a href="https://github.com/GSadee"><code>@​GSadee</code></a>)</li>
</ul>
<h3>v0.2.0 (2022-01-28)</h3>
<ul>
<li><a href="https://redirect.github.com/Sylius/Calendar/issues/7">#7</a> Make it a bundle (<a href="https://github.com/GSadee"><code>@​GSadee</code></a>)</li>
</ul>
<h3>v0.1.0 (2022-01-25)</h3>
<ul>
<li><a href="https://redirect.github.com/Sylius/Calendar/issues/1">#1</a> [Calendar] add provider with current date (<a href="https://github.com/AdamKasp"><code>@​AdamKasp</code></a>)</li>
<li><a href="https://redirect.github.com/Sylius/Calendar/issues/2">#2</a> configure application with behats and symfony (<a href="https://github.com/AdamKasp"><code>@​AdamKasp</code></a>)</li>
<li><a href="https://redirect.github.com/Sylius/Calendar/issues/3">#3</a> Composer version correction (<a href="https://github.com/TheMilek"><code>@​TheMilek</code></a>)</li>
<li><a href="https://redirect.github.com/Sylius/Calendar/issues/4">#4</a> [Composer] Update composer lock + fix indentation (<a href="https://github.com/GSadee"><code>@​GSadee</code></a>)</li>
<li><a href="https://redirect.github.com/Sylius/Calendar/issues/5">#5</a> Initialize empty changelog file (<a href="https://github.com/GSadee"><code>@​GSadee</code></a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li>See full diff in <a href="https://github.com/Sylius/Calendar/commits/v0.5.0">compare view</a></li>
</ul>
</details>
<br />


Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)


</details>

Commits
-------

34671f22aa Update sylius/calendar requirement from ^0.3 || ^0.4 to ^0.5.0
5e5ada7059 Allow to install sylius/calendar:^0.5
08cdd3413c Import sylius/calendar Behat services
20697acdf4 Ignore on.push event in CI for dependabot's branches
2023-04-20 15:07:31 +02:00
Grzegorz Sadowski
662e68a807
feature #14921 [Fixtures] add possibility to configure shipping_address_in_checkout_required (BastienGoze)
This PR was merged into the 1.13 branch.

Discussion
----------

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


Commits
-------

7dd12907e7 add possibility to configure shipping_address_in_checkout_required with fixtures
2023-04-20 15:06:32 +02:00
Jakub Tobiasz
20697acdf4
Ignore on.push event in CI for dependabot's branches 2023-04-20 12:48:42 +02:00
Jakub Tobiasz
08cdd3413c
Import sylius/calendar Behat services 2023-04-20 12:48:19 +02:00
Jakub Tobiasz
5e5ada7059
Allow to install sylius/calendar:^0.5 2023-04-20 12:48:19 +02:00
dependabot[bot]
34671f22aa
Update sylius/calendar requirement from ^0.3 || ^0.4 to ^0.5.0
Updates the requirements on [sylius/calendar](https://github.com/Sylius/Calendar) to permit the latest version.
- [Release notes](https://github.com/Sylius/Calendar/releases)
- [Changelog](https://github.com/Sylius/Calendar/blob/main/CHANGELOG.md)
- [Commits](https://github.com/Sylius/Calendar/commits/v0.5.0)

---
updated-dependencies:
- dependency-name: sylius/calendar
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-20 12:48:19 +02:00
Grzegorz Sadowski
5f82cd5620
Merge branch '1.12' into 1.13
* 1.12:
  Ignore upmerge branches CI build on push event
  Update BuildTestApp actions within workflows
2023-04-20 12:07:21 +02:00
Grzegorz Sadowski
dfc72d94c9
minor #14957 Ignore push event on upmerge (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
| Deprecations?   | no
| Related tickets | n/a
| License         | MIT

It'll prevent running minimal CI twice.

Commits
-------

de1423777d Ignore upmerge branches CI build on push event
2023-04-20 12:06:55 +02:00
Jakub Tobiasz
de1423777d
Ignore upmerge branches CI build on push event 2023-04-20 10:53:52 +02:00
Rafał Jaskulski
a10da71652
minor #14953 Update BuildTestApp actions within workflows (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
| Deprecations?   | no
| Related tickets | n/a
| License         | MIT                                                          |



Commits
-------

acfc256b57 Update BuildTestApp actions within workflows
2023-04-20 10:09:31 +02:00
Jakub Tobiasz
acfc256b57
Update BuildTestApp actions within workflows 2023-04-20 08:50:58 +02:00
TheMilek
9ae966d756
Cover Api steps in paying offline during checkout scenario 2023-04-19 14:25:49 +02:00
Kamil Grygierzec
db561c9b1f
minor #14947 Cover reapplying promotion on cart changes scenarios in API (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 | n/a
| License         | MIT




Commits
-------

2f56278d9d Cover reapplying promotion on cart changes scenarios in API
2023-04-19 12:34:43 +02:00
Kamil Grygierzec
c53b676523
minor #14942 Cover applying correct taxes for shipping with tax rate included in price scenarios (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 | contains changes from #14937 and #14936, they'll disappear after merge               
| License         | MIT



Commits
-------

a743297922 Cover applying correct taxes for shipping with tax rate included in price scenarios
2023-04-19 11:18:25 +02:00
Jacob Tobiasz
fd8b8b3c22
Merge branch 1.12 into 1.13
* 1.12:
  [Migrations] Check MySqlPlatform class existance case-sensitive
  bugfix #14925 [Migrations] Sylius-Standard installation fix (Rafikooo)

This PR was merged into the 1.12 branch.

Discussion
----------

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

The `bin/console sylius:install` command ends with the following error when using the PostgreSQL database:
<img width="1660" alt="image" src="https://user-images.githubusercontent.com/40125720/231223850-5f44fb63-4fa2-4799-828b-2cd8f65774b6.png">


Commits
-------

b4cb9e7702 [Migrations] Check MySqlPlatform class existance case-sensitive
2023-04-19 10:32:20 +02:00
Jacob Tobiasz
f1c37f486a
bugfix #14925 [Migrations] Sylius-Standard installation fix (Rafikooo)
This PR was merged into the 1.12 branch.

Discussion
----------

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

The `bin/console sylius:install` command ends with the following error when using the PostgreSQL database:
<img width="1660" alt="image" src="https://user-images.githubusercontent.com/40125720/231223850-5f44fb63-4fa2-4799-828b-2cd8f65774b6.png">


Commits
-------

b4cb9e7702 [Migrations] Check MySqlPlatform class existance case-sensitive
2023-04-19 09:47:59 +02:00
Jakub Tobiasz
2f56278d9d
Cover reapplying promotion on cart changes scenarios in API 2023-04-19 08:29:02 +02:00
Jakub Tobiasz
a743297922
Cover applying correct taxes for shipping with tax rate included in price scenarios 2023-04-19 06:45:49 +02:00
Jacob Tobiasz
c75bc1e9e2
refactor #14922 [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
-------

5923a45553 [CS][DX] Refactor
2023-04-19 06:40:02 +02:00
Grzegorz Sadowski
963af2544b
feature #14936 Cover applying correct taxes for shipping scenarios (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 | to be merged after #14937
| License         | MIT                                                          |


Commits
-------

7fc6734ca2 Add calculating OrderItemsSubtotal to the Order model
add6f4a285 Cover applying correct taxes for shipping scenarios
2023-04-18 19:59:20 +02:00
Grzegorz Sadowski
8de6fadd9d
Merge branch '1.12' into 1.13
* 1.12:
  [API] Restore default API Platform exception response codes
2023-04-18 19:46:44 +02:00
Grzegorz Sadowski
d3ce45dfbf
bug #14926 [API] API Platform's default exception mappings (Rafikooo)
This PR was merged into the 1.12 branch.

Discussion
----------

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

According to this doc: https://api-platform.com/docs/core/errors/#converting-php-exceptions-to-http-errors
we were missing the API Platform's default exception mappings to status, as YAML overwrites the default config

An incorrectly sent JSON by a client ends up with a 500 HTTP status code, which in production does not inform the client of the reason.

Before (lack of JSON object):
<img width="1439" alt="image" src="https://user-images.githubusercontent.com/40125720/231375258-232d2af5-4414-48e2-8877-63bcc153b0d1.png">
 After: 
<img width="1435" alt="image" src="https://user-images.githubusercontent.com/40125720/231376223-ba1315d9-eb71-4e19-9904-e096c762d420.png">
<img width="1441" alt="image" src="https://user-images.githubusercontent.com/40125720/231376330-194f7440-a5a5-423e-8eb1-a14694ebf52c.png">


Commits
-------

600ef008a3 [API] Restore default API Platform exception response codes
2023-04-18 19:46:17 +02:00
Jan Góralski
aa8e7a01d0
minor #14937 Add calculating OrderItemsSubtotal to the Order model (jakubtobiasz)
This PR was merged into the 1.13 branch.

Discussion
----------

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

The logic in `\Sylius\Bundle\ShopBundle\Calculator\OrderItemsSubtotalCalculator` is simple and can be moved to the model.

Commits
-------

c68fd42d99 Add calculating OrderItemsSubtotal to the Order model
2023-04-18 14:20:24 +02:00
Jan Góralski
114b6f7ef2
minor #14939 [Behat][API] Add "no-api" tag to the changing payment method page scenario (coldic3)
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                                                          |

I mark this scenario as a `no-api` because in the API, "thank you" page with payment methods doesn't exist. There is a `GET
/api/v2/shop/payment-methods` endpoint but it's independent of the order.

Commits
-------

fec60fffa9 [Behat][API] Add "no-api" tag to the changing payment method page scenario
2023-04-18 14:17:24 +02:00
Kevin Kaniaburka
fec60fffa9
[Behat][API] Add "no-api" tag to the changing payment method page scenario 2023-04-18 11:38:35 +02:00
Rafał Jaskulski
a12af20720
minor #14943 Cover handling different currencies on multiple channels via API scenarios (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 | contains changes from #14941 
| License         | MIT


Commits
-------

f750f33357 Silence Http\Message\MessageFactory deprecation report
dc4cd8a71c Cover handling different currencies on multiple channels via API scenarios
2023-04-18 08:41:05 +02:00
Rafikooo
600ef008a3
[API] Restore default API Platform exception response codes 2023-04-18 07:41:07 +02:00
Grzegorz Sadowski
2e383eaa8a
feature #14933 Allow to filter products via API only by enabled taxon (jakubtobiasz)
This PR was merged into the 1.13 branch.

Discussion
----------

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


Commits
-------

39b3e61e47 Allow to filter products via API only by enabled taxon
fef6e4e5dc Silence Http\Message\MessageFactory deprecation report
2023-04-17 23:01:31 +02:00
Grzegorz Sadowski
30de280ec0
Merge branch '1.12' into 1.13
* 1.12:
  Silence Http\Message\MessageFactory deprecation report
2023-04-17 06:50:07 +02:00
Sylius Bot
5923a45553 [CS][DX] Refactor 2023-04-17 02:21:56 +00:00
Jakub Tobiasz
dc4cd8a71c
Cover handling different currencies on multiple channels via API scenarios 2023-04-15 10:31:42 +02:00
Jakub Tobiasz
f750f33357
Silence Http\Message\MessageFactory deprecation report 2023-04-15 10:03:15 +02:00
Mateusz Zalewski
092131c91e
bug #14941 Fix build (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
| Deprecations?   | no
| Related tickets | 
| License         | MIT


Commits
-------

628a131be1 Silence Http\Message\MessageFactory deprecation report
2023-04-15 08:53:13 +02:00
Jakub Tobiasz
fef6e4e5dc
Silence Http\Message\MessageFactory deprecation report 2023-04-15 08:28:53 +02:00
Jakub Tobiasz
39b3e61e47
Allow to filter products via API only by enabled taxon 2023-04-15 08:28:53 +02:00
Jakub Tobiasz
628a131be1
Silence Http\Message\MessageFactory deprecation report 2023-04-15 08:05:05 +02:00
Grzegorz Sadowski
96401164d4
Merge branch '1.12' into 1.13
* 1.12:
  Revert "Add conflict for doctrine/orm:2.14.2"
2023-04-14 15:14:11 +02:00
Grzegorz Sadowski
a21480bd56
minor #14938 Revert "Add conflict for doctrine/orm:2.14.2" (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
| Deprecations?   | no
| Related tickets | n/a
| License         | MIT

This reverts commit de58169f58.



Commits
-------

057960f4ac Revert "Add conflict for doctrine/orm:2.14.2"
2023-04-14 15:13:51 +02:00
Jakub Tobiasz
057960f4ac
Revert "Add conflict for doctrine/orm:2.14.2"
This reverts commit de58169f58.
2023-04-14 14:03:54 +02:00
Rafał Jaskulski
e9dfe3313a
minor #14934 Cover accessing non-existing product via API scenario (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
-------

895ae9fd63 Cover accessing non-existing product via API scenario
2023-04-14 13:58:35 +02:00
Jakub Tobiasz
c68fd42d99
Add calculating OrderItemsSubtotal to the Order model 2023-04-14 12:57:54 +02:00
Jakub Tobiasz
add6f4a285
Cover applying correct taxes for shipping scenarios 2023-04-14 11:15:20 +02:00
Jakub Tobiasz
7fc6734ca2
Add calculating OrderItemsSubtotal to the Order model 2023-04-14 11:15:20 +02:00