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

26117: "Current user does not have an active cart" even when he actually has one #27187

Merged
merged 3 commits into from
Mar 18, 2020

Conversation

engcom-Charlie
Copy link
Contributor

Description (*)

I've changed the error message, also covered change by test. Old message Current user does not have an active cart was incorrect because it throws in case of a quote from a request isn't active, while the user can have another active cart.

Related Pull Requests

Fixed Issues (if relevant)

  1. "Current user does not have an active cart" even when he actually has one #26117: "Current user does not have an active cart" even when he actually has one

Manual testing scenarios (*)

Please see #26117

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 Mar 6, 2020

Hi @engcom-Charlie. 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.

throw new GraphQlNoSuchEntityException(
__('Current user does not have an active cart.')
);
throw new GraphQlNoSuchEntityException(__('This cart isn\'t active.'));
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
throw new GraphQlNoSuchEntityException(__('This cart isn\'t active.'));
throw new GraphQlNoSuchEntityException(__('The cart isn\'t active.'));

@ghost ghost assigned lenaorobei Mar 6, 2020
Copy link
Contributor

@lenaorobei lenaorobei left a comment

Choose a reason for hiding this comment

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

Please see my minor comment.

Functional build failures are not related tom this change.

@magento-engcom-team
Copy link
Contributor

Hi @lenaorobei, thank you for the review.
ENGCOM-7074 has been created to process this Pull Request
✳️ @lenaorobei, could you please add one of the following labels to the Pull Request?

Label Description
Auto-Tests: Covered All changes in Pull Request is covered by auto-tests
Auto-Tests: Not Covered Changes in Pull Request requires coverage by auto-tests
Auto-Tests: Not Required Changes in Pull Request does not require coverage by auto-tests

@m2-assistant
Copy link

m2-assistant bot commented Mar 18, 2020

Hi @engcom-Charlie, 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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants