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

Injects logger into CustomerRepository plugin class to fix regression… #354

Closed

Conversation

sethobey
Copy link
Contributor

@sethobey sethobey commented Feb 2, 2023

… on failure

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

@sethobey sethobey closed this Feb 2, 2023
@sethobey sethobey deleted the 353-Customer-repository-undefined-logger-regression branch February 2, 2023 22:38
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
2 participants