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

adding code changes to handle infinite loop issue #136

Merged
merged 1 commit into from
Sep 9, 2021

Conversation

klaviyojad
Copy link
Contributor

This pertains to github issue here and implements some of the logic here as its still unreleased code.

It addresses the bug where if a quote with a coupon has trigger_recollect = 1 then any api calls to retrieve the quote will hang forever. Instead of relying on the magento libraries to retrieve the masked quote id, we implement code to retrieve it ourselves from the DB

@jordanallain
Copy link
Contributor

Looks good, were you able to test it?

@klaviyojad
Copy link
Contributor Author

@jordanallain was tested by api call [store url]/rest/V1/carts/[quote id] that hangs for quote with coupon and trigger_recollect = 1 before change and doesnt after this change is made

@klaviyojad klaviyojad merged commit f730daa into master Sep 9, 2021
@klaviyojad klaviyojad deleted the 202109_m2_infinite_loop_issue_fix branch September 9, 2021 15:59
* QuoteIdMask Resource model
* @codeCoverageIgnore
*/
class QuoteIdMask extends AbstractDb
Copy link
Contributor

Choose a reason for hiding this comment

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

FYI The resource models in Magento2 projects are usually located in the Model/ResourceModel/ folder.
It's better to move it eventually to prevent confusion.

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

Successfully merging this pull request may close these issues.

None yet

3 participants