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

Fix logging of failure on Customer removal #355

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

sethobey-stripe
Copy link
Contributor

Context

Closes #353

Description

Pre v2, TJ interaction w/ Customer object used Observer classes which extended an abstract class where this logger was originally included. With changes to core code and deprecation of previously observed events, these interactions were migrated to use Plugins instead.

Although the happy-path was not affected by this bug, if TaxJar fails to delete a customer for some reason, the absence of a Logger in the CustomerRepository Plugin would not be able to log the error and would also cause the Magento customer deletion process to fail.

Performance

N/A - bug fix

Testing

Added unit test coverage for changes

Versions

  • Magento 2.4
  • Magento 2.3
  • Magento Open Source (formerly Magento 2 Community Edition)
  • Adobe Commerce (formerly Magento 2 Enterprise Edition)
  • PHP 8.2
  • PHP 8.1
  • PHP 7.4
  • PHP 7.3

@jajajaime
Copy link

Can this get merged?

@lfolco
Copy link

lfolco commented Feb 17, 2024

Apparently not.

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.

Undefined $logger property in CustomerRepository plugin
3 participants