Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed Issue with tier price 0 when saving product second time #26162

Merged

Conversation

ravi-chandra3197
Copy link
Contributor

Description (*)

Fixed Issue with tier price 0 when saving product second time

Fixed Issues (if relevant)

  1. Issue with tier price 0 when saving product second time #25195: Issue with tier price 0 when saving product second time Issue with tier price 0 when saving product second time #25195

Manual testing scenarios (*)

  1. ...
  2. ...

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)

@m2-assistant
Copy link

m2-assistant bot commented Dec 23, 2019

Hi @ravi-chandra3197. 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.4-develop instance - deploy vanilla Magento instance

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

@magento-engcom-team magento-engcom-team added Partner: Krish TechnoLabs partners-contribution Pull Request is created by Magento Partner labels Dec 23, 2019
@rogyar rogyar self-assigned this Dec 23, 2019
Copy link
Contributor

@rogyar rogyar left a comment

Choose a reason for hiding this comment

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

Hi, @ravi-chandra3197. Please, cover your change by an automated test. It's a required step for further PR processing. I would suggest adjusting the existing unit test for this purpose.

Thank you.

@rogyar rogyar added Component: Catalog Auto-Tests: Not Covered Changes in Pull Request requires coverage by auto-tests labels Dec 23, 2019
@ravi-chandra3197
Copy link
Contributor Author

Hi, @ravi-chandra3197. Please, cover your change by an automated test. It's a required step for further PR processing. I would suggest adjusting the existing unit test for this purpose.

Thank you.

Hello @rogyar
I have added an automated test in the existing unit test.
can review it.

@rogyar
Copy link
Contributor

rogyar commented Jan 7, 2020

Hi @ravi-chandra3197.

Thank you for the update. Let me help you with this one a little bit. Asserting the null value in the unit tests does not cover the case we are trying to fix here. In order to check our change works as expected, we need to pass an empty array element in the $update array upon invoking the updateValues method. After that, we need to make sure that updateValues method returns true.
The second assertion should check that we have false as a result of updateValues method in case if we are passing null as an element of $valuesToUpdate parameter.

@ravi-chandra3197 ravi-chandra3197 force-pushed the patch-25195 branch 6 times, most recently from 8d36c08 to b6c2dac Compare January 8, 2020 11:01
@engcom-Golf engcom-Golf added Auto-Tests: Covered All changes in Pull Request is covered by auto-tests and removed Auto-Tests: Not Covered Changes in Pull Request requires coverage by auto-tests labels Jan 20, 2020
@engcom-Echo engcom-Echo requested review from engcom-Echo and removed request for engcom-Echo January 20, 2020 09:32
@engcom-Echo engcom-Echo self-assigned this Jan 20, 2020
@engcom-Echo
Copy link
Contributor

I will take care of fix static tests.

@Nazar65
Copy link
Member

Nazar65 commented Jan 20, 2020

@magento run unit tests

@magento-engcom-team
Copy link
Contributor

Hi @rogyar, thank you for the review.
ENGCOM-6647 has been created to process this Pull Request

@engcom-Alfa
Copy link
Contributor

✔️ QA Passed

@m2-assistant
Copy link

m2-assistant bot commented Feb 9, 2020

Hi @ravi-chandra3197, 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.

@sdzhepa sdzhepa mentioned this pull request May 9, 2022
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 Component: Catalog Partner: Krish TechnoLabs partners-contribution Pull Request is created by Magento Partner Progress: accept Release Line: 2.4
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants