Skip to content

Enabled 'Shopping Cart' tab for customer edit interface in admin #20918

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

rav-redchamps
Copy link
Contributor

@rav-redchamps rav-redchamps commented Feb 3, 2019

Description (*)

Fixed Issues (if relevant)

  1. Customer Admin Shopping Cart View Missing #6287: Customer Admin Shopping Cart View Missing

Manual testing scenarios (*)

  1. Navigated to 'Customers > All Customers > Edit Specific Customer' in admin and verified the visibility of 'Shopping Cart' tab and its content grid
  2. Added few products to customer's cart in frontend and verified their visibility in 'Shopping Cart' tab
  3. Tested product 'Delete' and 'Configure' actions in the tab

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 on Travis CI are green)

@magento-cicd2
Copy link
Contributor

magento-cicd2 commented Feb 3, 2019

CLA assistant check
All committers have signed the CLA.

@magento-engcom-team
Copy link
Contributor

Hi @rav-redchamps. 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-engcom-team give me test instance - deploy test instance based on PR changes
  • @magento-engcom-team give me 2.3-develop instance - deploy vanilla Magento instance

For more details, please, review the Magento Contributor Assistant documentation

@rav-redchamps
Copy link
Contributor Author

@magento-engcom-team give me test instance

@magento-engcom-team
Copy link
Contributor

Hi @rav-redchamps. Thank you for your request. I'm working on Magento instance for you

@magento-engcom-team
Copy link
Contributor

Hi @rav-redchamps, here is your new Magento instance.
Admin access: https://pr-20918.instances.magento-community.engineering/admin
Login: admin Password: 123123q

@rav-redchamps
Copy link
Contributor Author

@magento-engcom-team seems like the Travis automated tests stucked. It is running for more than 24 hours. Kindly check.

@magento-engcom-team
Copy link
Contributor

Hi @ihor-sviziev, thank you for the review.
ENGCOM-4126 has been created to process this Pull Request

@magento-engcom-team
Copy link
Contributor

@rav-redchamps thank you for contributing. Please accept Community Contributors team invitation here to gain extended permissions for this repository.

@sivaschenko
Copy link
Member

@magento-engcom-team give me test instance

@magento-engcom-team
Copy link
Contributor

Hi @sivaschenko. Thank you for your request. I'm working on Magento instance for you

@magento-engcom-team
Copy link
Contributor

Hi @sivaschenko, here is your new Magento instance.
Admin access: https://pr-20918.instances.magento-community.engineering/admin
Login: admin Password: 123123q

Copy link
Member

@sivaschenko sivaschenko left a comment

Choose a reason for hiding this comment

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

Hi @rav-redchamps , thanks for the pull request!

Public methods should not be added to classes marked as API without approval by the architect because of backward compatibility concerns.

Please consider introducing a new block class implementing TabInterface to avoid adding new public methods to an API class?

@rav-redchamps
Copy link
Contributor Author

@sivaschenko make sense. Will do it by tomorrow via introducing a new block class implementing TabInterface

@rav-redchamps
Copy link
Contributor Author

@sivaschenko just pushed the changes. Please have a look

@ghost ghost added the Progress: on hold label Apr 26, 2019
@ihor-sviziev
Copy link
Contributor

Hi @sivaschenko,
Could you clarify why this PR was moved to "On hold"?

Copy link
Member

@sivaschenko sivaschenko left a comment

Choose a reason for hiding this comment

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

Hi @rav-redchamps , thanks for your patience! Unfortunately, we couldn't approve the newly introduced usage of deprecated Registry. Can you please replace it with i.e. service class storing the current customer id.

*/
public function canShowTab()
{
return $this->coreRegistry->registry(RegistryConstants::CURRENT_CUSTOMER_ID);
Copy link
Member

Choose a reason for hiding this comment

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

The registry is a deprecated class, please use another way to retrieve the current customer id. I.e. passing through an introduced service class.

Copy link
Member

@sivaschenko sivaschenko Jun 3, 2019

Choose a reason for hiding this comment

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

For example, introduce a class that will init customer id from the request and provide a method to retrieve this customer id.

@sivaschenko
Copy link
Member

@ihor-sviziev the pull request was put on hold as I needed to discuss and decide on whether the registry usage, in this case, can be accepted

@p-bystritsky
Copy link
Contributor

@sivaschenko PR updated, please review.

@magento-engcom-team
Copy link
Contributor

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

@makkoff makkoff self-assigned this Jun 13, 2019
@makkoff
Copy link

makkoff commented Jun 13, 2019

✔️ QA Passed

@nelero
Copy link

nelero commented Jul 5, 2019

hi,
any news on it ? can we use the PR or still buggy ?
Thanks

@magento-engcom-team magento-engcom-team merged commit bca244c into magento:2.3-develop Jul 6, 2019
@m2-assistant
Copy link

m2-assistant bot commented Jul 6, 2019

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

@magento-engcom-team magento-engcom-team added this to the Release: 2.3.3 milestone Jul 6, 2019
@sidolov sidolov added the Auto-Tests: Not Covered Changes in Pull Request requires coverage by auto-tests label Sep 14, 2019
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.