Skip to content

async.magento.catalog.api.specialpricestorageinterface.update.post - operations report different result than sent in message #27865

Closed
@bjornmeat

Description

@bjornmeat

Preconditions (*)

  1. Magento Commerce 2.3.4
  2. Magento async api endpoint for async.magento.catalog.api.specialpricestorageinterface.update.post

Steps to reproduce (*)

  1. Multiple different updates sent for different skus to : /rest/all/async/V1/products/special-price
  2. In Magento db operation table and in detailed status for bulk/asynk in API we see the original message.
  3. After message is processed. A different sku / message is processed and added to operation table.

Expected result (*)

  1. The proper message and result should be saved in Magento operation table.

Actual result (*)

  1. 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
}

  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
    }

Metadata

Metadata

Assignees

Labels

Component: CatalogFixed in 2.4.xThe issue has been fixed in 2.4-develop branchIssue: Format is validGate 1 Passed. Automatic verification of issue format passedReported on 2.3.4Indicates original Magento version for the Issue report.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions