Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[UPMERGE] 1.13 -> 2.0 #15519

Merged
merged 69 commits into from Nov 13, 2023
Merged

[UPMERGE] 1.13 -> 2.0 #15519

merged 69 commits into from Nov 13, 2023

Conversation

SyliusBot
Copy link

This PR has been generated automatically.
For more details see upmerge_pr.yaml.

Remember! Use Rebase and merge when merging this PR if no conflict occurred. If any conflict occurs, checkout the branch, push changes and use Create a merge commit.

TheMilek and others added 30 commits October 25, 2023 15:49
Co-authored-by: Dmitri Perunov <diimpp@gmail.com>
Wojdylak and others added 21 commits November 8, 2023 15:17
…ojdylak)

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
-------

96aee9f [ApiBundle] Add TranslatableLocaleKeyDenormalizer class
0bc4efe [AttributeBundle] Add validation on locale of translation
24e3500 [ProductBundle] Add validation on locale of translation
a079062 [PromotionBundle] Add validation on locale of translation
5d1b951 [ShippingBundle] Add validation on locale of translation
db58b52 [TaxonomyBundle] Add validation on locale of translation
b070c24 [ApiBundle] Add contract test to check validation of locale
a27f5c2 [ApiBundle] Improve readability
aceb04b Standardize locale validation translations
4ec72b5 [AttributeBundle] Standardize locale validation translations
91ba39e [PromotionBundle] Remove unnecessary constraint
64cfae4 [ApiBundle] Fix type-hint
b557adb [ApiBundle] Translation key as locale
504afcf [ApiBundle] Remove unnecessary method in TranslatableLocaleKeyDenormalizer
a5f132c [ApiBundle] Fix ProductAssociationTypesTest
… tokens (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 | #13902
| License         | MIT

Commits
-------
  [UserBundle] Implement TTL validation for password reset tokens
  [ApiBundle] Add ttl type-hint
  [UserBundle] Change type-hint
…(mamazu)

This PR was merged into the 1.13 branch.

Discussion
----------

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

## The problem
Currently we have a user database of about 1 million users and we noticed that resetting your password is rather slow. It turns out that there isn't any index on neither the password reset nor the verification token.

## The solution
The simplest solution would be to add an index to those fields and call it a day. But we can do even better. We know that those tokens are unique. Because all throughout the Sylius application those fields are queried with the `findOneBy` which crashes on result sets bigger than one. So adding a unique constraint should not break backwards compatibility (except for already broken entries).

## What still needs to be done
I still need to generate a migration that actually adds those indices to the database. I will do that when the base idea of the PR is accepted.

Commits
-------
  Making the verification and password reset token unqiue
  Implementing suggestions
  Update src/Sylius/Bundle/CoreBundle/Migrations/Version20231103004216.php
  Removing useless files
  Fixing minor issues
…-checkout-nvp` (Prometee)

This PR was merged into the 1.13 branch.

Discussion
----------

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

See this comment for more explanations : #14805 (comment)

This PR also add a way to not use `payum/paypal-express-checkout-nvp` and suggestion to install stripe or paypal packages

Commits
-------
  Allow to not use PayPal Express NVP
  Check the Payum factory instead of the Stripe library class
  Add Paypal and Stripe suggestions to the SyliusPayumBundle
  Add return type
  Re-add payum/stripe and remove stripe lib from require-dev
  Move payum gateways to require-dev
  Add PAYPAL convert action service ID to the removed services
  Clean requirements
  Fix coding standard
  Update composer-require-checker
…nseMate)

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
-------
  [Maintenance] Fix AdminFilterSubscriber failing when no _route attribute present
  [Maintenance] Fix other possibly invalid route attribute getting
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
-------
  [CS][DX] Refactor
…us_shop_cart_c… (dsbe-ak)

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 #15505                      |
| License         | MIT                                                          |


Commits
-------
  Fix cart styles after form submission (data-route="sylius_shop_cart_checkout")
…le (GSadee)

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 | related to #15501 |
| 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] Improve contract test of creating a product with invalid translation locale
  [API] Disallow removing the translation in default locale
  [API] Adjust contract tests after changes with translations
@SyliusBot SyliusBot requested a review from a team as a code owner November 11, 2023 02:28
@probot-autolabeler probot-autolabeler bot added the Maintenance CI configurations, READMEs, releases, etc. label Nov 11, 2023
Copy link

github-actions bot commented Nov 13, 2023

Bunnyshell Preview Environment deleted

Available commands:

  • /bns:deploy to redeploy the environment

@jakubtobiasz jakubtobiasz merged commit 3fb9695 into 2.0 Nov 13, 2023
17 checks passed
@jakubtobiasz jakubtobiasz deleted the upmerge/1.13_2.0-2c71274fa9 branch November 13, 2023 16:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Maintenance CI configurations, READMEs, releases, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

9 participants