Closed
Description
Preconditions (*)
- Magento Commerce 2.3.4
- Magento async api endpoint for async.magento.catalog.api.specialpricestorageinterface.update.post
Steps to reproduce (*)
- Multiple different updates sent for different skus to : /rest/all/async/V1/products/special-price
- In Magento db operation table and in detailed status for bulk/asynk in API we see the original message.
- After message is processed. A different sku / message is processed and added to operation table.
Expected result (*)
- The proper message and result should be saved in Magento operation table.
Actual result (*)
- Message saved in Magento operation and result from bulk status api endpoint.
{
"operations_list": [
{
"id": 927,
"bulk_uuid": "74bf51dc-60ea-4815-8e7c-047f7a7bdfbb",
"topic_name": "async.magento.catalog.api.specialpricestorageinterface.update.post",
"serialized_data": "{"entity_id":null,"entity_link":"","meta_information":"{\"prices\":[{\"price\":198,\"store_id\":0,\"sku\":\"175025\",\"price_from\":\"2020-04-18 00:00:00\",\"price_to\":\"2020-04-18 23:59:00\"}]}"}",
"result_serialized_data": null,
"status": 4,
"result_message": null,
"error_code": null
}
],
"user_type": 1,
"bulk_id": "74bf51dc-60ea-4815-8e7c-047f7a7bdfbb",
"description": "Topic async.magento.catalog.api.specialpricestorageinterface.update.post",
"start_time": "2020-04-15 09:45:27",
"user_id": 2,
"operation_count": 1
}
- Result after message processed by queue consumer. (Note bulk id and SKU in result.)
{
"operations_list": [
{
"id": 927,
"bulk_uuid": "74bf51dc-60ea-4815-8e7c-047f7a7bdfbb",
"topic_name": "async.magento.catalog.api.specialpricestorageinterface.update.post",
"serialized_data": null,
"result_serialized_data": "[{"message":"Future Update already exists in this time range. Set a different range and try again.","parameters":["138.6","154170","0","2020-04-18 00:00:37","2020-04-18 23:59:38"]},{"message":"The product that was requested doesn't exist. Verify the product and try again. Row ID: SKU = 117890, Store ID: 0, Price From: 2020-04-18 00:00:00, Price To: 2020-04-18 23:59:00.","parameters":["117890","0","2020-04-18 00:00:00","2020-04-18 23:59:00"]},{"message":"The product that was requested doesn't exist. Verify the product and try again. Row ID: SKU = 117890, Store ID: 0, Price From: 2020-04-18 00:00:00, Price To: 2020-04-18 23:59:00.","parameters":["117890","0","2020-04-18 00:00:00","2020-04-18 23:59:00"]},{"message":"The product that was requested doesn't exist. Verify the product and try again. Row ID: SKU = 117890, Store ID: 0, Price From: 2020-04-18 00:00:00, Price To: 2020-04-18 23:59:00.","parameters":["117890","0","2020-04-18 00:00:00","2020-04-18 23:59:00"]},{"message":"The product that was requested doesn't exist. Verify the product and try again. Row ID: SKU = 117890, Store ID: 0, Price From: 2020-04-18 00:00:00, Price To: 2020-04-18 23:59:00.","parameters":["117890","0","2020-04-18 00:00:00","2020-04-18 23:59:00"]}]",
"status": 1,
"result_message": "Service execution success Magento\Catalog\Model\Product\Price\SpecialPriceStorage::update",
"error_code": null
}
],
"user_type": 1,
"bulk_id": "74bf51dc-60ea-4815-8e7c-047f7a7bdfbb",
"description": "Topic async.magento.catalog.api.specialpricestorageinterface.update.post",
"start_time": "2020-04-15 09:45:27",
"user_id": 2,
"operation_count": 1
}