Skip to content

Conversation

neeta-wagento
Copy link
Contributor

Description

Fixed Issues (if relevant)

  1. Typo in dispatched event name #18355: Typo in dispatched event name

Manual testing scenarios

  1. method Magento\CatalogSearch\Model\Indexer\Fulltext\Action\DataProvider::getSearchableAttributes dispatches event with typo in its name
  2. catelogsearch_searchable_attributes_load_after
    instead of
    catalogsearch_searchable_attributes_load_after

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 on Travis CI are green)

@magento-cicd2
Copy link
Contributor

magento-cicd2 commented Oct 4, 2018

CLA assistant check
All committers have signed the CLA.

@magento-engcom-team magento-engcom-team added Partner: Wagento Pull Request is created by partner Wagento partners-contribution Pull Request is created by Magento Partner Component: AdminNotification Release Line: 2.3 labels Oct 4, 2018
@neeta-wagento neeta-wagento changed the base branch from 2.3-develop to 2.2-develop October 4, 2018 07:05
@orlangur orlangur self-assigned this Oct 4, 2018
@orlangur
Copy link
Contributor

orlangur commented Oct 4, 2018

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.

@neeta-wagento
Copy link
Contributor Author

@orlangur Hello, Is there any update on this?

@davidalger davidalger removed their request for review October 5, 2018 13:41
@@ -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',
Copy link
Contributor

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.

Copy link
Contributor Author

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.

Copy link
Contributor

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',
Copy link
Contributor

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.

@magento-engcom-team
Copy link
Contributor

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

@magento-engcom-team
Copy link
Contributor

Hi @neeta-wagento. Thank you for your contribution.
We will aim to release these changes as part of 2.2.8.
Please check the release notes for final confirmation.

Please, consider to port this solution to 2.3 release line.
You may use Porting tool to port commits automatically.

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

Successfully merging this pull request may close these issues.

4 participants