[Forwardport] Use batches and direct queries to fix sales address upgrade - #20785
Conversation
|
Hi @ihor-sviziev. Thank you for your contribution
For more details, please, review the Magento Contributor Assistant documentation |
|
Hi, |
|
Hi @slavvka, thank you for the review. |
124aac1 to
53bbfd2
Compare
|
@ihor-sviziev there is not such column as "orderAddressId" in "sales_order_address" table, used in 'where' clause in https://github.com/magento/magento2/pull/19098/files#diff-0815805b2d40fcf0d22ebd639e0d73c4R247. Which will lead to an error during update. |
| 'quote_address_id' => $quoteAddresses[$orderAddress['quote_id']]['address_id'] ?? null, | ||
| ]; | ||
| $where = [ | ||
| 'orderAddressId' => $orderAddress['entity_id'] |
There was a problem hiding this comment.
| 'orderAddressId' => $orderAddress['entity_id'] | |
| 'entity_id' => $orderAddress['entity_id'] |
|
As we discussed with @p-bystritsky in slack - change with entity_id fixed SQL error, but in general - data is incorrect. Need to re-check. |
|
Hi @p-bystritsky, |
|
Hi @ihor-sviziev, thank you for your contribution! |
…s address upgrade #20785
…s address upgrade magento#20785 - Merge Pull Request magento#20785 from ihor-sviziev/magento2:2.3-performance_sales_address_upgrade - Merged commits: 1. 70fb3da 2. 53bbfd2
…s address upgrade magento#20785 - Merge Pull Request magento#20785 from ihor-sviziev/magento2:2.3-performance_sales_address_upgrade - Merged commits: 1. 70fb3da 2. 53bbfd2 3. 649fad6
…s address upgrade magento#20785 - Merge Pull Request magento#20785 from ihor-sviziev/magento2:2.3-performance_sales_address_upgrade - Merged commits: 1. 70fb3da 2. 53bbfd2 3. 649fad6 4. d3482b7
Accepted Public Pull Requests: - magento#21713: Resolve Issue : Search REST API returns wrong total_count (by @ronak2ram) - magento#20512: Sorting by Websites not working in product grid in backoffice magento#20511 (by @XxXgeoXxX) - magento#20840: Missed form validation in Admin Order Address Edit route sales/order/address (by @XxXgeoXxX) - magento#20785: [Forwardport] Use batches and direct queries to fix sales address upgrade (by @ihor-sviziev) - magento#19859: MUI controller lacks JSON response, instead returns status 200 with empty body (by @woutersamaey) Fixed GitHub Issues: - magento#17295: Search REST API returns wrong total_count (reported by @mohamed-karam) has been fixed in magento#21713 by @ronak2ram in 2.3-develop branch Related commits: 1. 7c55811 2. a546e14 3. 9dc26cc - magento#20511: Sorting by 'Websites' not working in product grid in backoffice (reported by @KiraLis) has been fixed in magento#20512 by @XxXgeoXxX in 2.3-develop branch Related commits: 1. 0dfe0f0 2. e61b399 3. fa49579 4. 8170bd7 5. f4d1442 6. 93da772 7. 5362c5a 8. f57e5e8 9. a6f266d 10. a32d27b 11. c76d248 - magento#19360: Missed form validation in Admin Order Address Edit route sales/order/address (reported by @ilnytskyi) has been fixed in magento#20840 by @XxXgeoXxX in 2.3-develop branch Related commits: 1. 54469ce 2. 464e981 3. 7b8e969 4. fd4ed41 5. 7d6cca6 6. 8b99ea2 7. 5867a48
Description (*)
This is forwardport of #19098 to 2.3-develop
Magento Commerce compatible fix for sales address upgrade script.
Fixed Issues (if relevant)
Manual testing scenarios (*)
Magento Commerce compatible fix for sales address upgrade script.
Contribution checklist (*)