- Notifications
You must be signed in to change notification settings - Fork 9.4k
#27504 fix joinprocessor behavior with consecutive calls #37550
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
#27504 fix joinprocessor behavior with consecutive calls #37550
Conversation
Hi @fgerodez. Thank you for your contribution! Add the comment under your pull request to deploy test or vanilla Magento instance:
❗ Automated tests can be triggered manually with an appropriate comment:
Allowed build names are:
You can find more information about the builds here For more details, review the Code Contributions documentation. |
@magento run all tests |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please message the #magento-devops slack channel if they don't show in a reasonable amount of time and a representative will look into any issues. |
@magento run all tests |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please message the #magento-devops slack channel if they don't show in a reasonable amount of time and a representative will look into any issues. |
@magento run all tests |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please message the #magento-devops slack channel if they don't show in a reasonable amount of time and a representative will look into any issues. |
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.
Hello @fgerodez
Thank you for your contribution
Could you please check my suggestion and fix copyright?
Thank you in advance.
...ion/testsuite/Magento/Framework/Api/SearchCriteria/CollectionProcessor/JoinProcessorTest.php Show resolved Hide resolved
…iteria/CollectionProcessor/JoinProcessorTest.php Co-authored-by: Andrii Beziazychnyi <a.beziazychnyi@atwix.com>
@magento run all tests |
@magento run WebAPI Tests, Functional Tests CE, Functional Tests EE |
@magento run all tests |
@magento run all tests |
@magento run Functional Tests B2B, Functional Tests EE |
1 similar comment
@magento run Functional Tests B2B, Functional Tests EE |
Hi @fgerodez and @andrewbess, Thank you for the contribution! As the review is pending, moving it back to Pending review. Thank you! |
@magento run all tests |
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.
Hello @fgerodez,
Thanks for the contribution!
Please fix the failed automated tests, specifically static test, and look into the review comments below.
Thanks
class JoinProcessorTest extends TestCase | ||
{ | ||
/** | ||
* @var \Magento\Framework\ObjectManagerInterface |
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.
This qualifier can be replaced with an import. Import the ObjectManagerInterface and use it as below:
* @var \Magento\Framework\ObjectManagerInterface | |
* @var ObjectManagerInterface |
| ||
protected function setUp(): void | ||
{ | ||
$this->objectManager = \Magento\TestFramework\Helper\Bootstrap::getObjectManager(); |
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.
Same here
$this->objectManager = \Magento\TestFramework\Helper\Bootstrap::getObjectManager(); | |
$this->objectManager = Bootstrap::getObjectManager(); |
| ||
$collection1 = $this->getMockBuilder(AbstractDb::class) | ||
->disableOriginalConstructor() | ||
->getMockForAbstractClass(); |
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.
The getMockForAbstractClass
method has been deprecated, please use alternate method.
| ||
$collection2 = $this->getMockBuilder(AbstractDb::class) | ||
->disableOriginalConstructor() | ||
->getMockForAbstractClass(); |
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.
The getMockForAbstractClass
method has been deprecated, please use alternate method.
@magento run all tests |
@engcom-Hotel: I have implemented the suggested changes and fixed the integration failures. Moving it back to Pending Review. NOTE: The failed integration tests are not related to the PR changes and can also be seen in other PRs. |
@magento run Integration Tests, Functional Tests EE |
@magento run all tests |
@magento run all tests |
@magento run Unit Tests, Integration Tests, Functional Tests EE, Functional Tests CE, Functional Tests B2B |
c93b59c
into magento:2.4-develop
Description (*)
When a JoinProcessor is called multiple times during a request the join definitions are only applied the first time. Subsequent calls will leave the collections unmodified.
Fixed Issues (if relevant)
Contribution checklist (*)