Skip to content
This repository has been archived by the owner on Dec 19, 2019. It is now read-only.

[Checkout] Prevent generating new masked quote id for same quote #797

Merged
merged 2 commits into from Aug 13, 2019

Conversation

pmclain
Copy link
Contributor

@pmclain pmclain commented Jul 31, 2019

Description (*)

This commit prevents the createEmptyCart mutation from generating a new masked quote id for the same customer quote.

Fixed Issues

  1. Investigate the changes in createEmptyCart for Customer #773

Manual testing scenarios (*)

Follow the steps to reproduce outlined in #773
The result of createEmptyCart should be unique per quote and not per request.

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)

This commit prevents the `createEmptyCart` mutation from generating a new
masked quote id for the same customer quote.

Fixes magento#773
) {
$this->cartManagement = $cartManagement;
$this->quoteIdMaskFactory = $quoteIdMaskFactory;
$this->quoteIdMaskResourceModel = $quoteIdMaskResourceModel;
$this->quoteIdToMaskedQuoteId = $quoteIdToMaskedQuoteId ?? ObjectManager::getInstance()
Copy link
Contributor

Choose a reason for hiding this comment

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

This is redundant here. We need to keep BC fro schema only.

@magento-engcom-team
Copy link
Contributor

Hi @lenaorobei, thank you for the review.
ENGCOM-5544 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

@magento-engcom-team
Copy link
Contributor

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

@ghost
Copy link

ghost commented Aug 13, 2019

Hi @pmclain, 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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
Development

Successfully merging this pull request may close these issues.

None yet

3 participants