-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Resolve typo despatch event #18372
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
Resolve typo despatch event #18372
Conversation
Unfortunately such change is not allowed: https://devdocs.magento.com/guides/v2.0/contributor-guide/backward-compatible-development/#magento-apis Checking in Slack whether it's possible to introduce a new event deprecating this one. |
@orlangur Hello, Is there any update on this? |
@@ -317,7 +317,7 @@ public function getSearchableAttributes($backendType = null) | |||
$attributes = $productAttributes->getItems(); | |||
|
|||
$this->eventManager->dispatch( | |||
'catelogsearch_searchable_attributes_load_after', | |||
'catalogsearch_searchable_attributes_load_after', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As event cannot be removed, add a comment near old one that it is deprecated and add one more event dispatching, with corrected name.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@orlangur Thankyou for review. I have added add a comment near old one that it is deprecated and add one more event dispatching, with corrected name.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After the change, old event must still be dispatched.
Also, do not specify version near deprecation tag, it is done automatically when needed.
@@ -317,7 +317,7 @@ public function getSearchableAttributes($backendType = null) | |||
$attributes = $productAttributes->getItems(); | |||
|
|||
$this->eventManager->dispatch( | |||
'catelogsearch_searchable_attributes_load_after', | |||
'catalogsearch_searchable_attributes_load_after', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After the change, old event must still be dispatched.
Also, do not specify version near deprecation tag, it is done automatically when needed.
Hi @orlangur, thank you for the review. |
Hi @neeta-wagento. Thank you for your contribution. Please, consider to port this solution to 2.3 release line. |
Description
Fixed Issues (if relevant)
Manual testing scenarios
instead of
catalogsearch_searchable_attributes_load_after
Contribution checklist