Closed
Description
This issue is automatically created based on existing pull request: #29205: #29174 Add save_rewrites_history to categories via API
Support save_rewrites_history to categories API
Preconditions (*)
- Magento 2.4-develop
Description (*)
See #29174
Fixed Issues (if relevant)
Steps to reproduce (*)
- Go to Catalog - Categories and create a new Subcategory
- Open Swagger (http://magentositewname.domain/swagger)
- Generate Admin token via integrationAdminTokenServiceV1 POST /V1/integration/admin/token request
- Copy the generated token into api_key field and click **apply
- Perform the catalogCategoryRepositoryV1 PUT /V1/categories/{id} request with the following Parameters:
- id 2 (id of the previously created category)
- body
{
"category": {
"id": 5,
"parent_id": 2,
"name": "new name",
"is_active": true,
"position": 0,
"level": 0,
"created_at": "string",
"updated_at": "string",
"path": "string",
"include_in_menu": true,
"extension_attributes": {},
"custom_attributes": [
{
"attribute_code": "url_key",
"value": "new name1"
},{
"attribute_code":"save_rewrites_history",
"value":1
}
]
}
}
Actual result (*)
The old url_rewriew record has been removed, and only the new record existed
Expected result (*)
The previous record is not removed
See example in #29174
Contribution checklist (*)
- Pull request has a meaningful description of its purpose
- All commits are accompanied by meaningful commit messages
- All new or changed code is covered with unit/integration tests (if applicable)
- All automated tests passed successfully (all builds are green)
Metadata
Metadata
Assignees
Labels
The issue has been fixed in 2.4-develop branchGate 3 Passed. Manual verification of the issue completed. Issue is confirmedGate 1 Passed. Automatic verification of issue format passedGate 4. Acknowledged. Issue is added to backlog and ready for developmentA defect with this priority could have functionality issues which are not to expectations.Indicates original Magento version for the Issue report.The issue has been reproduced on latest 2.4-develop branchMajor restrictions or short-term circumventions are required until a fix is available.
Type
Projects
Status
Done