Skip to content

#23053 : sendfriend verifies product visibility instead of status #23118

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

Conversation

Wirson
Copy link
Contributor

@Wirson Wirson commented Jun 4, 2019

Description (*)

Sendfriend feature was verifying product status only. This could cause sending a link for enabled product invisible in catalog and/or search.

Fixed Issues (if relevant)

  1. Sendfriend works for products with visibility not visible individually #23053: Sendfriend works for products with visibility not visible individually

Manual testing scenarios (*)

Follow steps provided in #23053

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 Jun 4, 2019

Hi @Wirson. 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 Assistant documentation

@magento-cicd2
Copy link
Contributor

magento-cicd2 commented Jun 4, 2019

CLA assistant check
All committers have signed the CLA.

Copy link
Contributor

@orlangur orlangur left a comment

Choose a reason for hiding this comment

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

@Wirson please enforce this case with integration test and sign CLA.

After changes are applied and all builds are green, please squash them into a single commit so that we have perfectly clean history 😉

@ghost ghost assigned orlangur Jun 4, 2019
@Wirson Wirson force-pushed the 23053-sendfriend-visibility-fix branch from 7b22ce0 to 84695b1 Compare June 4, 2019 12:10
@Wirson Wirson force-pushed the 23053-sendfriend-visibility-fix branch from 84695b1 to 265e0d4 Compare June 6, 2019 09:09
@Wirson
Copy link
Contributor Author

Wirson commented Jun 6, 2019

@orlangur I added related test case, please review.
Static test returns error:

FILE: /var/www/html/app/code/Magento/SendFriend/Controller/Product.php


FOUND 1 ERROR AFFECTING 1 LINE

64 | ERROR | [x] There must be exactly one blank line between lines

PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY

But I do not really get the point

@magento-engcom-team
Copy link
Contributor

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

@soleksii soleksii self-assigned this Jun 7, 2019
@ysapiga ysapiga self-assigned this Jun 7, 2019
@soleksii
Copy link

soleksii commented Jun 7, 2019

✔️ QA Passed

Before:

before

After:

after

@m2-assistant
Copy link

m2-assistant bot commented Jun 8, 2019

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

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

Successfully merging this pull request may close these issues.

8 participants