Commit graph

27 commits

Author SHA1 Message Date
piotrbalcerzak
e804eb3026
Add upgrade note 2026-04-08 12:52:34 +02:00
Marek Rzytki
5c0e79ff9d Restore missing page titles for admin resource show pages 2026-04-07 12:02:25 +02:00
Marek Rzytki
593d93f233 Update upgrade 2026-03-30 10:48:14 +02:00
TheMilek
291be2a7c7
Add upgrade file 2026-03-18 15:34:17 +01:00
TheMilek
cb53fce3f5
Fix open redirect 2026-03-09 13:25:08 +01:00
TheMilek
435151e879
Fix migrations skip commands 2025-12-17 12:38:35 +01:00
Grzegorz Sadowski
81d067d937
Add missing upgrade note to the 2.1 2025-12-17 06:43:53 +01:00
Grzegorz Sadowski
247463a382
Remove choice_value from autocomplete types to fix performance issue (#18629)
| Q               | A
|-----------------|-----
| Branch?         | 2.1
| Bug fix?        | yes
| New feature?    | no
| BC breaks?      | no
| Deprecations?   | no
| Fixed tickets   | fixes #17953
| License         | MIT

## Summary

Removes explicit `choice_value => 'code'` from autocomplete form types
to fix a **critical performance issue**.

### The Problem

When `choice_value` is explicitly set (even to a property like `code`),
Symfony's `DoctrineChoiceLoader` cannot use the optimized
`getEntitiesByIds()` query. Instead, it falls back to loading **ALL
entities** via `getEntities()` without any WHERE clause.

With 4000+ products, this causes severe performance degradation.

### The Solution

- Remove `choice_value` option, letting Symfony use the default (entity
ID)
- This enables the optimized `WHERE id IN (...)` query
- Update all Behat contexts/elements to use `getId()` instead of
`getCode()`

### References

- [Symfony UX Issue #2736](https://github.com/symfony/ux/issues/2736) -
Extra query without WHERE when choice_value is defined
- [Symfony Issue
#57724](https://github.com/symfony/symfony/issues/57724) - EntityType
performance with large datasets
- [Lazy Choice Loader (Symfony
7.2)](https://symfony.com/blog/new-in-symfony-7-2-lazy-choice-loader)

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **Improvements**
* Autocomplete fields across products, variants, options and taxons now
display and select by human-readable names while using stable internal
identifiers for form submissions.
* Catalog promotion scope controls updated for clearer name-based
selection and feedback when adding/removing scopes.
* Product image and variant selection flows enhanced to show and verify
selected variant names more reliably.
* Taxon parent selection improved for richer behavior in
JavaScript-enabled admin pages.

* **Documentation**
* Added upgrade notes explaining autocomplete behavior and migration
considerations.

<sub>✏️ Tip: You can customize this high-level summary in your review
settings.</sub>
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-12-15 06:50:15 +01:00
Rafikooo
90a13011fd
[Docs] Add upgrade note for autocomplete choice_value removal 2025-12-12 14:31:16 +01:00
Rafikooo
76c8febc7a
[Admin] Deprecate unused clock argument in HubNotificationProvider 2025-12-10 20:36:17 +01:00
Rafikooo
ca105ea736
[Admin] Fix shipping address form hooks priorities 2025-12-02 20:57:00 +01:00
Rafikooo
a5d8cbe4c3
[Admin] Fix StatisticsComponent to use ClockInterface for date calculations
StatisticsComponent was using native DateTime for calculating date ranges,
ignoring the mocked clock in Behat tests. This caused flaky tests depending
on the actual system date.

- Add ClockInterface dependency to StatisticsComponent
- Update OrderContext to set checkoutCompletedAt with mocked clock
- Add deprecation notice for missing clock argument
2025-12-02 08:14:34 +01:00
Grzegorz Sadowski
1abb49218e
Update UPGRADE-2.1.md 2025-11-26 12:52:45 +01:00
Michal Kaczmarek
121e3afc9d Add info about disabled callback for state machine sylius_product_review 2025-11-26 11:25:18 +01:00
Tomasz Kaliński
0ed7a42f74 Add optional title and description fields to error responses for improved test compatibility with API Platform 4.2. 2025-09-24 08:52:16 +02:00
TheMilek
d606ce5b4f
Update upgrade file 2025-07-01 14:45:02 +02:00
TheMilek
b980525f81
Upgrade file for refined assets management review fixes 2025-06-04 08:00:36 +02:00
TheMilek
db9fedaff9
Prepare upgrade file for refined assets management 2025-06-03 12:48:10 +02:00
Grzegorz Sadowski
eef0046fca
Fix UPGRADE-2.1 file after rebase 2025-06-03 08:38:55 +02:00
Bartłomiej Sęk
7bf5d882cc
BC adjustment 2025-06-03 08:36:41 +02:00
Grzegorz Sadowski
dd9291be15
Minor clean up in UPGRADE-2.1 file 2025-06-03 07:48:21 +02:00
Piotr Tułacz
23167f569f
BC fix 2025-06-03 07:43:43 +02:00
Bartłomiej Sęk
b7fb3ac8bf Update upgrade file 2025-05-28 13:23:30 +02:00
Bartłomiej Sęk
8f5aea58fe Update upgrade file 2025-05-21 13:51:37 +02:00
Grzegorz Sadowski
a13bfb045c
[Admin] Add a note to an UPGRADE file about pending actions 2025-05-20 13:32:51 +02:00
Jan Goralski
e291c8cf9b
[Maintenance] Note Symfony 7 version bump in the upgrade file 2025-04-08 11:50:02 +02:00
Grzegorz Sadowski
4c7fb44277
[Admin] Deprecate unused sylius_admin_customer_orders_statistics route 2025-02-11 12:21:56 +01:00