Commit graph

30194 commits

Author SHA1 Message Date
Jacob Tobiasz
7df78676c4
Upmerge 1.12 into 1.13 2023-08-29 09:07:42 +02:00
Jacob Tobiasz
60ea9c2ba9
bugfix #15252 [Admin][Taxon] Fix slug generation to work based on the parent field (NoResponseMate)
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 |
| Related tickets | fixes #13749, replaces #13889                      |
| License         | MIT                                                          |

Commits
-------
  [Admin][Taxon] Fix slug generation to work based on the parent field
  [Behat][Admin][Taxon] Autogenerate slug based on selected parent
  [Admin][Taxon] Fallback from parent code to id when generating a slug
2023-08-28 16:12:48 +02:00
Jacob Tobiasz
91f642a286
bugfix #15255 [Admin][Product] Add language names to attribute values (NoResponseMate)
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 |
| Related tickets | -                      |
| License         | MIT                                                          |

## Existing attributes

<details>
<summary>Before</summary>
<br>
<img width="963" alt="Screenshot 2023-08-25 at 14 14 18" src="https://github.com/Sylius/Sylius/assets/9448101/b89ef388-188f-42c8-ac80-ad76c3e84e91">
</details>

<details>
<summary>After</summary>
<br>
<img width="952" alt="Screenshot 2023-08-25 at 14 43 32" src="https://github.com/Sylius/Sylius/assets/9448101/a5276954-60b6-43a9-bb91-de1bf55bf676">
</details>

## Newly added attributes

<details>
<summary>Before</summary>
<br>
<img width="953" alt="Screenshot 2023-08-25 at 14 23 31" src="https://github.com/Sylius/Sylius/assets/9448101/fd25b667-56d9-4cf2-91c7-b20ac734d5bc">
</details>

<details>
<summary>After</summary>
<br>
<img width="955" alt="Screenshot 2023-08-25 at 14 43 47" src="https://github.com/Sylius/Sylius/assets/9448101/39c575fe-f82e-4afd-aaf8-98e3162e6321">
</details>

Commits
-------
  [Admin][Product] Add language names to attribute values
2023-08-28 13:53:07 +02:00
dependabot[bot]
a18f4e8498
Update rector/rector requirement from ^0.17.0 to ^0.18.0 (#15258) 2023-08-28 11:52:40 +00:00
dependabot[bot]
fb2e1f18b8
Update rector/rector requirement from ^0.17.0 to ^0.18.0
Updates the requirements on [rector/rector](https://github.com/rectorphp/rector) to permit the latest version.
- [Release notes](https://github.com/rectorphp/rector/releases)
- [Commits](https://github.com/rectorphp/rector/compare/0.17.0...0.18.0)

---
updated-dependencies:
- dependency-name: rector/rector
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-28 11:10:20 +00:00
Sylius Bot
1250672ffa [CS][DX] Refactor 2023-08-28 07:08:58 +02:00
Jacob Tobiasz
c30131f91b
bugfix #14806 [Admin][ProductOptions] Changed form ProductOptionChoiceType to Produ… (ulinskas)
This PR was merged into the 1.12 branch.

Discussion
----------

…ctOptionAutocompleteType

| Q               | A                                                            |
|-----------------|--------------------------------------------------------------|
| Branch?         | 1.12 <!-- see the comment below -->                  |
| Bug fix?        | yes                                                       |
| New feature?    | no                                                       |
| BC breaks?      | no                                                       |
| Deprecations?   | no <!-- don't forget to update the UPGRADE-*.md file --> |
| Related tickets | fixes #13742                      |
| 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
-->

Before:
![image](https://github.com/Sylius/Sylius/assets/53942444/07723697-2297-4662-b963-e95c7215603a)

After:
![image](https://github.com/Sylius/Sylius/assets/53942444/10e706d8-441a-4080-b3e6-af745cc402b7)



Commits
-------
  [Admin][ProductOptions] Changed form ProductOptionChoiceType to ProductOptionAutocompleteType
  Revert BC breaking changes
  minor improvements
  Show option name as a choice name instead of code
  Fix Main Taxon autocomplete scenarios
2023-08-28 06:57:33 +02:00
Jacob Tobiasz
76347c589b
bugfix #15250 [Admin][Country] Add violation for adding provinces with duplicated codes or names (NoResponseMate)
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 |
| Related tickets | -                      |
| License         | MIT                                                          |

Commits
-------
  [Country] Add violation for adding provinces with duplicated codes
  [Behat][Admin][Country] Tests for saving duplicated provinces
  Update phpstan baseline
  [Country] Additional validation for duplicated provinces names
  [Behat][Admin][Country] Validation of saving duplicated province names
2023-08-28 06:55:36 +02:00
Jan Goralski
472cb7370d
[Admin][Product] Add language names to attribute values 2023-08-25 14:44:22 +02:00
Kamil Grygierzec
124252f17d
minor #15056 Improve registration workflow (fabianaromagnoli, 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?   | no
| Related tickets | continuation of #13097
| License         | MIT                                                          |

I rebased the PR, but couldn't push it due to permissions issues. I pushed the rebased branch onto my fork, and created this replacement PR (ofc. authorship behaved :))

Commits
-------

185e876a77 Improve registration workflow
90932ff752 Add return type
f551968738 Implement "Then only one email should have been sent to" step
74d9a71746 Fix sending both verification and registration emails at once
b2991fc3e9 Cover SendAccountRegistrationEmailHandler with spec
79f889e394 Remove Italian translation
49ad834d86 Add missing return types in the Behat's steps
1e88917a1f Cover new MailerListener methods with spec
bd0637a5cd Fix CI
fc98505bcc Improve RegistrationThankYouController
0284acad88 Add email verification methods in API's EmailContext
852f2db9f5 Provide post-CR fixes
474f12a819 Provide post-CR fixes
2023-08-25 14:17:50 +02:00
TheMilek
acfb7e4411
Fix Main Taxon autocomplete scenarios 2023-08-25 13:36:27 +02:00
TheMilek
d3d02d42d1
Show option name as a choice name instead of code 2023-08-25 13:36:26 +02:00
TheMilek
49756634d0
minor improvements 2023-08-25 13:36:26 +02:00
TheMilek
9e9ee18866
Revert BC breaking changes 2023-08-25 13:36:00 +02:00
andriusulins
ba3abc9eac
[Admin][ProductOptions] Changed form ProductOptionChoiceType to ProductOptionAutocompleteType 2023-08-25 13:36:00 +02:00
Jacob Tobiasz
290029bff5
bugfix #15251 Fix error with being unable to add product review while being logged in using remember me (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                                                      |
| Deprecations?   | no <!-- don't forget to update the UPGRADE-*.md file --> |
| Related tickets | fixes https://github.com/Sylius/Sylius/issues/14898 and https://github.com/Sylius/Sylius/issues/9430                      |
| 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
-->

As being said [here](https://github.com/Sylius/Sylius/issues/14898) we were checking access against `IS_AUTHENTICATED_FULLY` while creating product review and it leads to a problem, that prevents us from creating review while using remember me functionality:

![image](https://github.com/Sylius/Sylius/assets/53942444/4e07bb72-361f-417f-be9f-e2306fc75306)

By changing it to `IS_AUTHENTICATED_REMEMBERED` resolves the bug

Commits
-------
  Fix error with being unable to add product review when the user is logged in by remember me option
2023-08-25 13:31:15 +02:00
TheMilek
8448d136df
Fix error with being unable to add product review when the user is logged in by remember me option 2023-08-25 12:27:41 +02:00
Jan Goralski
a24c696fdf
[Admin][Taxon] Fallback from parent code to id when generating a slug 2023-08-25 10:48:44 +02:00
Jan Goralski
86807fb177
[Behat][Admin][Country] Validation of saving duplicated province names 2023-08-25 08:40:12 +02:00
Jan Goralski
a8d28988c5
[Country] Additional validation for duplicated provinces names 2023-08-25 08:40:12 +02:00
Jan Goralski
2d5aa6864f
[Behat][Admin][Taxon] Autogenerate slug based on selected parent 2023-08-24 15:58:26 +02:00
Jan Goralski
99cd870789
[Admin][Taxon] Fix slug generation to work based on the parent field
Co-authored-by: Benjamin Vauchel <benjamin.v@onatera.com>
2023-08-24 15:57:16 +02:00
Jan Goralski
cddec53fdf
Update phpstan baseline 2023-08-24 11:10:07 +02:00
Jan Goralski
c46c713c5f
[Behat][Admin][Country] Tests for saving duplicated provinces 2023-08-24 10:44:49 +02:00
Jan Goralski
e174055ed9
[Country] Add violation for adding provinces with duplicated codes 2023-08-24 10:44:49 +02:00
dependabot[bot]
24507b62db Update vimeo/psalm requirement from 5.14.* to 5.15.*
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.14.0...5.15.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-22 20:01:50 +02:00
dependabot[bot]
544c72caec Update stripe/stripe-php requirement from ^10.4 to ^12.0
Updates the requirements on [stripe/stripe-php](https://github.com/stripe/stripe-php) to permit the latest version.
- [Release notes](https://github.com/stripe/stripe-php/releases)
- [Changelog](https://github.com/stripe/stripe-php/blob/master/CHANGELOG.md)
- [Commits](https://github.com/stripe/stripe-php/compare/v10.4.0...v12.0.0)

---
updated-dependencies:
- dependency-name: stripe/stripe-php
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-22 20:01:28 +02:00
Sylius Bot
c3f10ebee8 [CS][DX] Refactor 2023-08-22 14:02:08 +02:00
dependabot[bot]
8921743ebd
Update phpstan/phpstan-doctrine requirement from 1.3.40 to 1.3.42 (#15247) 2023-08-22 10:44:20 +00:00
dependabot[bot]
0cff28ebba
Update phpstan/phpstan-doctrine requirement from 1.3.40 to 1.3.42
Updates the requirements on [phpstan/phpstan-doctrine](https://github.com/phpstan/phpstan-doctrine) to permit the latest version.
- [Release notes](https://github.com/phpstan/phpstan-doctrine/releases)
- [Commits](https://github.com/phpstan/phpstan-doctrine/compare/1.3.40...1.3.42)

---
updated-dependencies:
- dependency-name: phpstan/phpstan-doctrine
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-22 10:17:11 +00:00
Jacob Tobiasz
00d57c87ab
minor #15244 Refresh README.md (kulczy)
This PR was merged into the 1.13 branch.

Discussion
----------



Commits
-------
  Refresh README.md
2023-08-22 11:04:52 +02:00
Szymon
43db3ba764
Refresh README.md 2023-08-21 18:16:58 +02:00
Jacob Tobiasz
eafbdeefaa
[UPMERGE] 1.12 -> 1.13 (#15246) 2023-08-21 18:16:16 +02:00
Jacob Tobiasz
65bc7a32e4
minor #15245 Fix CI 2023-08-21 (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
-------
  Silence the error about deprecated getUsername method in HWI OAuth Bundle
2023-08-21 17:18:55 +02:00
Jacob Tobiasz
8f6958f0f5
Silence the error about deprecated getUsername method in HWI OAuth Bundle 2023-08-21 15:14:20 +02:00
Jacob Tobiasz
474f12a819
Provide post-CR fixes 2023-08-19 08:10:54 +02:00
Jacob Tobiasz
0b743ec24a
[UPMERGE] 1.12 -> 1.13 (#15236) 2023-08-19 07:07:10 +02:00
Jacob Tobiasz
d6d19e6928
minor #13954 [Docker] Add custom docker composer file to gitignore (lchrusciel)
This PR was merged into the 1.12 branch.

Discussion
----------

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

<!--
 - Bug fixes must be submitted against the 1.10 or 1.11 branch(the lowest possible)
 - Features and deprecations must be submitted against the master 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
-------
  [Docker] Add custom docker composer file to gitignore
2023-08-19 07:05:33 +02:00
Łukasz Chruściel
ae82752e9d
[Docker] Add custom docker composer file to gitignore 2023-08-18 19:13:41 +02:00
Jakub Tobiasz
852f2db9f5
Provide post-CR fixes 2023-08-18 18:58:13 +02:00
Jakub Tobiasz
0284acad88
Add email verification methods in API's EmailContext 2023-08-18 18:58:13 +02:00
Jakub Tobiasz
fc98505bcc
Improve RegistrationThankYouController 2023-08-18 18:58:13 +02:00
Jakub Tobiasz
bd0637a5cd
Fix CI 2023-08-18 18:58:13 +02:00
Jakub Tobiasz
1e88917a1f
Cover new MailerListener methods with spec 2023-08-18 18:58:13 +02:00
Jakub Tobiasz
49ad834d86
Add missing return types in the Behat's steps 2023-08-18 18:58:13 +02:00
Jakub Tobiasz
79f889e394
Remove Italian translation 2023-08-18 18:58:13 +02:00
Jakub Tobiasz
b2991fc3e9
Cover SendAccountRegistrationEmailHandler with spec 2023-08-18 18:58:13 +02:00
Jakub Tobiasz
74d9a71746
Fix sending both verification and registration emails at once 2023-08-18 18:58:13 +02:00
Jakub Tobiasz
f551968738
Implement "Then only one email should have been sent to" step 2023-08-18 18:58:13 +02:00
Jakub Tobiasz
90932ff752
Add return type 2023-08-18 18:58:13 +02:00