-
Notifications
You must be signed in to change notification settings - Fork 0
Magento 2.2.5 compatibility #55
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
Conversation
category product indexing change in Magento 2.2, it uses one index table per store now. We are using that now after checking for the Magento version.
… index It has changed in Magento 2.2.5, so the check for the version (>= 2.2) was not correct. See https://twitter.com/sergeivaschenko/status/1032926575195574274.
public function __construct( | ||
Context $context, | ||
ProductMetadataInterface $productMetadata, | ||
?string $connectionName = null |
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.
nullable types (?string
) were introduced in PHP 7.1, using this signature will bump the minimum version from 7.0 to 7.1 for both, Magento 2.1 and Magento 2.2. We should be careful with this.
we are using the object manager because the class should not appear in the constructor as it doesn't exist before Magento 2.2.5
Asynchronous indexing failed because the area code was set to "crontab" instead of "frontend".
One more bug fix was added to this PR. Async indexing failed because of the wrong area code, so we are emulating the frontend area now for indexing. |
the catalog_product_entity_* tables use row_id instead of entity_id as its primary key.
UrlFactoryPlugin calls
be6b6ed
to
1ea4799
Compare
@avstudnitz I updated the unit tests for area code emulation. they also reported that |
9ba94c4
to
0d7d4f5
Compare
64dcd09
to
0a61982
Compare
ecd4398
to
9ae1d21
Compare
NOTE: Tests were failing in Magento 2.2, PHP 7.0 compatibility is not guaranteed anymore
9ae1d21
to
c115ba1
Compare
Wercker configuration has been updated to work with current Magento 2.1 and 2.2 versions. |
ed4e4d7
to
fd58712
Compare
It occurs in several tests that use product fixtures, possibly related to tddwizard/magento2-fixtures#13 |
fd58712
to
de2adb3
Compare
Otherwise we get this error: User Error: DDL statements are not allowed in transactions in /var/www/magento/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php:504.
de2adb3
to
986b3c4
Compare
The scope hint wasn't displayed, as well as the "use default" check box.
…duct-assign Add indexing of products if they are assigned to a category
Fix category attributes
Skip html index if unnecessary
Category product indexing changed in Magento 2.2, it uses one index table per
store now. We are using that now after checking for the Magento version.