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

26064 issuefix #26066

Merged
merged 6 commits into from
Jan 3, 2020
Merged

Conversation

divyajyothi5321
Copy link
Contributor

Description (*)

Fixed Issues (if relevant)

  1. Incorrect Error Message While Sharing Wish list more than Specified Email Address Value in Admin Configuration #26064: Incorrect Error Message While Sharing Wish list more than Specified Email Address Value in Admin Configuration

Manual testing scenarios (*)

  1. Go to frontend and login as Cutomer.
  2. Add any product to wish list.
  3. Go to My account dashboard -> My Wish list
  4. Enter around 20 to 30 email addresses and share wish list.
  5. The issue is fixed with this code. Please refer the screenshot.

wishlist-expected

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 16, 2019

Hi @divyajyothi5321. 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.

@divyajyothi5321
Copy link
Contributor Author

@engcom-Bravo the static check is always failing at the part of the code which we haven't touched, please let us know what action we need to take here.

Copy link
Contributor

@krzksz krzksz left a comment

Choose a reason for hiding this comment

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

Hello @divyajyothi5321, thank you for your contribution! Can you please adjust the rest of the code so that static tests pass?

@ghost ghost assigned krzksz Dec 17, 2019
@divyajyothi5321
Copy link
Contributor Author

@krzksz I have made text change for the message and it is properly formatted. Can you Please let me know the exact place where I need to make the change to pass the static test.

Copy link
Contributor

@krzksz krzksz left a comment

Choose a reason for hiding this comment

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

Static tests ask you to remove @package Magento\Wishlist\Controller\Index and add some meaningful description to the class.

@@ -204,7 +204,7 @@ public function execute()
$error = __('Please enter an email address.');
} else {
if (count($emails) > $emailsLeft) {
$error = __('This wish list can be shared %1 more times.', $emailsLeft);
$error = __('Maximum of %1 Emails can be Sent.', $emailsLeft);
Copy link
Contributor

Choose a reason for hiding this comment

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

Please adjust the wording to Maximum of %1 emails can be sent. (letter casing).

Copy link
Contributor

Choose a reason for hiding this comment

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

This still should be adjusted.

@divyajyothi5321
Copy link
Contributor Author

@krzksz even after changing the file as per your suggestion, the static test failed once again. could you please review and let us know the fix.

Copy link
Contributor

@krzksz krzksz left a comment

Choose a reason for hiding this comment

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

There is one error displayed:

PHPStan detected violation(s):
 ------ -------------------------------------------------------------------- 
  Line   app/code/Magento/Wishlist/Controller/Index/Send.php                 
 ------ -------------------------------------------------------------------- 
  325    Method Magento\Wishlist\Controller\Index\Send::getRssLink() should  
         return mixed but return statement is missing.                       
 ------ -------------------------------------------------------------------- 

 [ERROR] Found 1 error 

FYI: you can check the error yourself by clicking the Details link next to the certain test.

@@ -204,7 +204,7 @@ public function execute()
$error = __('Please enter an email address.');
} else {
if (count($emails) > $emailsLeft) {
$error = __('This wish list can be shared %1 more times.', $emailsLeft);
$error = __('Maximum of %1 Emails can be Sent.', $emailsLeft);
Copy link
Contributor

Choose a reason for hiding this comment

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

This still should be adjusted.

@krzksz krzksz added the Auto-Tests: Not Covered Changes in Pull Request requires coverage by auto-tests label Dec 23, 2019
@krzksz
Copy link
Contributor

krzksz commented Dec 23, 2019

Hey @divyajyothi5321, thank you for the contribution!
According to our Definition of Done, all code changes should be covered by tests.

@magento-engcom-team
Copy link
Contributor

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

@divyajyothi5321
Copy link
Contributor Author

@krzksz how to cover auto testing kindly can you please let me know

@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 2, 2020
@engcom-Golf
Copy link
Contributor

HI @divyajyothi5321 @krzksz all changes covered by unit test, could you please review ?

@engcom-Golf engcom-Golf self-assigned this Jan 2, 2020
@magento-engcom-team
Copy link
Contributor

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

@engcom-Delta
Copy link
Contributor

✔️ QA passed

@engcom-Golf
Copy link
Contributor

Functional test fails on 2.4-develop branch, fix in -> #26225

magento-engcom-team pushed a commit that referenced this pull request Jan 3, 2020
@magento-engcom-team magento-engcom-team merged commit add2bbb into magento:2.4-develop Jan 3, 2020
@m2-assistant
Copy link

m2-assistant bot commented Jan 3, 2020

Hi @divyajyothi5321, 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
Labels
Area: Frontend Auto-Tests: Covered All changes in Pull Request is covered by auto-tests Component: Wishlist Partner: i95Dev 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