Skip to content

Conversation

Jarzebowsky
Copy link
Member

@Jarzebowsky Jarzebowsky commented Sep 15, 2019

Description (*)

The change covers adding a default typeId set to simple for new products created if no other is sent in post request.

Related Pull Requests

https://github.com/magento/partners-magento2ee/pull/345
https://github.com/magento/partners-magento2b2b/pull/349

Fixed Issues (if relevant)

  1. magento/magento2#8171: Price not saved when creating product via REST API
  2. Fixes 2.4 : When saving a product using the product repository, the price is not saved #13639
  3. Fixes Price not saved when creating product via REST API #30487

Manual testing scenarios (*)

  1. Do a POST request to /products with a minimum payload to create a product.
{
"product": {
"sku": "test",
"name": "test",
"price": 12.5,
"attribute_set_id": 4
}
}
  1. Created product should have visible and set price.

Questions or comments

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)

Resolved issues:

  1. resolves [Issue] magento/magento2#8171: Price not saved when creating product via REST API #29504: magento/magento2#8171: Price not saved when creating product via REST API

@m2-assistant
Copy link

m2-assistant bot commented Sep 15, 2019

Hi @Jarzebowsky. Thank you for your contribution
Here is some useful tips how you can test your changes using Magento test environment.
Add the comment under your pull request to deploy test or vanilla Magento instance:

  • @magento give me test instance - deploy test instance based on PR changes
  • @magento give me 2.3-develop instance - deploy vanilla Magento instance

For more details, please, review the Magento Contributor Guide documentation.

@miguelbalparda miguelbalparda self-assigned this Sep 19, 2019
@miguelbalparda
Copy link
Contributor

Hi @Jarzebowsky I just realized I can't process this PR because you haven't signed the CLA, you mind doing it so we can move forward? Thanks!

@Jarzebowsky
Copy link
Member Author

Hi @miguelbalparda I'm not able to get into license page as I saw you were doing some changes there. Could you please provide steps to make it go thru? :)

@sidolov sidolov closed this Oct 4, 2019
@m2-assistant
Copy link

m2-assistant bot commented Oct 4, 2019

Hi @Jarzebowsky, thank you for your contribution!
Please, complete Contribution Survey, it will take less than a minute.
Your feedback will help us to improve contribution process.

@sidolov sidolov reopened this Oct 4, 2019
@ghost ghost unassigned miguelbalparda Oct 4, 2019
@sidolov
Copy link
Contributor

sidolov commented Oct 4, 2019

@Jarzebowsky please, use Adobe CLA Signed? to sign the agreement.

@Jarzebowsky Jarzebowsky closed this Oct 7, 2019
@m2-assistant
Copy link

m2-assistant bot commented Oct 7, 2019

Hi @Jarzebowsky, thank you for your contribution!
Please, complete Contribution Survey, it will take less than a minute.
Your feedback will help us to improve contribution process.

@Jarzebowsky Jarzebowsky reopened this Oct 7, 2019
@sidolov sidolov changed the base branch from 2.3-develop to 2.4-develop December 5, 2019 17:19
Copy link
Contributor

@novikor novikor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, @Jarzebowsky ! Thank you for your contribution.
Please fix the static tests

@ghost ghost assigned novikor Feb 10, 2020
@engcom-Golf engcom-Golf self-assigned this Feb 13, 2020
@engcom-Foxtrot
Copy link
Contributor

@magento run all tests

@engcom-Foxtrot
Copy link
Contributor

Performance tests are failing here. Looks like API is failing. @Jarzebowsky could you please check if these API endpoints are working after your fix?

2020/02/25 16:01:04 ERROR - jmeter.protocol.http.sampler.HTTPJavaImpl: readResponse: java.io.IOException: Server returned HTTP response code: 400 for URL: http://localhost/builds/rest/default/V1/products 
2020/02/25 16:01:04 ERROR - jmeter.protocol.http.sampler.HTTPJavaImpl: Cause: java.io.IOException: Server returned HTTP response code: 400 for URL: http://localhost/builds/rest/default/V1/products 
2020/02/25 16:01:04 INFO  - jmeter.protocol.http.sampler.HTTPJavaImpl: Error Response Code: 400 

2020/02/25 16:01:04 ERROR - jmeter.protocol.http.sampler.HTTPJavaImpl: readResponse: java.io.IOException: Server returned HTTP response code: 500 for URL: http://localhost/builds/rest/default/V1/products//stockItems/ 
2020/02/25 16:01:04 ERROR - jmeter.protocol.http.sampler.HTTPJavaImpl: Cause: java.io.IOException: Server returned HTTP response code: 500 for URL: http://localhost/builds/rest/default/V1/products//stockItems/ 
2020/02/25 16:01:04 INFO  - jmeter.protocol.http.sampler.HTTPJavaImpl: Error Response Code: 500 

2020/02/25 16:01:04 ERROR - jmeter.protocol.http.sampler.HTTPJavaImpl: readResponse: java.io.IOException: Server returned HTTP response code: 400 for URL: http://localhost/builds/rest/default/V1/products/ 
2020/02/25 16:01:04 ERROR - jmeter.protocol.http.sampler.HTTPJavaImpl: Cause: java.io.IOException: Server returned HTTP response code: 400 for URL: http://localhost/builds/rest/default/V1/products/ 
2020/02/25 16:01:04 INFO  - jmeter.protocol.http.sampler.HTTPJavaImpl: Error Response Code: 400 

PAT failures should be fixed by 25c37b5

# Conflicts:
#	app/code/Magento/Catalog/Model/ProductRepository.php
@engcom-Foxtrot
Copy link
Contributor

@magento run all tests

@engcom-Foxtrot engcom-Foxtrot added QA: Ready to add to Regression Scope Should be analyzed and added to Regression Testing Scope(if applicable) and removed Progress: needs update labels Sep 22, 2020
@gabrieldagama gabrieldagama added this to the 2.5 milestone Sep 23, 2020
@gabrieldagama
Copy link
Contributor

This PR changes the behavior of an API, previously products were created on payloads without price, now they will fail. Since this is BIC we will aim to deliver this on 2.5.

@gabrieldagama
Copy link
Contributor

@magento run all tests

@gabrieldagama
Copy link
Contributor

@magento run all tests

2 similar comments
@gabrieldagama
Copy link
Contributor

@magento run all tests

@gabrieldagama
Copy link
Contributor

@magento run all tests

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Auto-Tests: Covered All changes in Pull Request is covered by auto-tests Award: bug fix Component: Catalog Event: mm19pl Partner: Accenture Priority: P2 A defect with this priority could have functionality issues which are not to expectations. Progress: needs update QA: Ready to add to Regression Scope Should be analyzed and added to Regression Testing Scope(if applicable) Release Line: 2.5 Severity: S2 Major restrictions or short-term circumventions are required until a fix is available.

Projects

None yet