diff --git a/.circleci/config.yml b/.circleci/config.yml index af2f5aabc..2e26777a0 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -159,7 +159,7 @@ jobs: working_directory: ~/Sites command: | bin/cli bash -c "cd ./dev/tests/integration && export $(cat .env | xargs) && ../../../vendor/bin/phpunit --debug --exclude-group problematic ../../../vendor/algolia/algoliasearch-magento-2/Test/Integration/" - + notify: docker: - image: cimg/base:current diff --git a/CHANGELOG.md b/CHANGELOG.md index bf5766790..95dfd4afa 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,21 +1,6 @@ # CHANGE LOG -## 3.17.0-dev - -### Bug fixes -- Fixed issue where missing pricing keys were not handled gracefully in the Autocomplete product template -- Fixed issue where category was not properly checked in the configuration block - thank you @benjamin-volle - -## 3.17.0-beta.2 - -### Updates -- Removed all `is_null` occurrences - -### Bug fixes -- Fixed 3.17 setup:upgrade on PHP 8.4 -- Fixed many Codacy issues - -## 3.17.0-beta.1 +## 3.17.0 ### Features - Added an Algolia indexing cache for storing metadata to prevent extra queries. Large collections that run periodic full indexes can benefit from this cache. @@ -30,9 +15,14 @@ - Updated default "Maximum number of records sent per indexing request" to 1000 (previously 300). - Updated `ConfigHelper` class, it now has more methods deprecated and ported to separate helper classes. - Updated Unit and Integration tests. +- Removed all `is_null` occurrences ### Bug fixes - Fixed indexing queue templates escaping. +- Fixed 3.17 setup:upgrade on PHP 8.4 +- Performed code sanitization for Codacy compliance +- Fixed issue where missing pricing keys were not handled gracefully in the Autocomplete product template +- Fixed issue where category was not properly checked in the configuration block - thank you @benjamin-volle ## 3.16.1 diff --git a/README.md b/README.md index 558854773..eaead7ab1 100755 --- a/README.md +++ b/README.md @@ -1,9 +1,8 @@ Algolia Search & Discovery extension for Magento 2 ================================================== -![Latest version](https://img.shields.io/badge/latest-3.16.0-green) +![Latest version](https://img.shields.io/badge/latest-3.17.0-green) ![Magento 2](https://img.shields.io/badge/Magento-2.4.7+-orange) -![Beta version](https://img.shields.io/badge/beta-3.17.0--beta.1-purple) ![PHP](https://img.shields.io/badge/PHP-8.1%2C8.2%2C8.3%2C8.4-blue) diff --git a/Test/Integration/Indexing/Config/ConfigTest.php b/Test/Integration/Indexing/Config/ConfigTest.php index 2f6af8375..3cc32e90e 100644 --- a/Test/Integration/Indexing/Config/ConfigTest.php +++ b/Test/Integration/Indexing/Config/ConfigTest.php @@ -32,7 +32,13 @@ public function testRenderingContent() { $this->setConfig('algoliasearch_instant/instant_facets/enable_dynamic_facets', '1'); - $this->syncSettingsToAlgolia(); + try { + $this->syncSettingsToAlgolia(); + } catch (AlgoliaException $e) { + // Skip this test if the renderingContent feature isn't enabled on the application + $this->setConfig('algoliasearch_instant/instant_facets/enable_dynamic_facets', '0'); + $this->markTestSkipped($e->getMessage()); + } $indexOptions = $this->indexOptionsBuilder->buildWithEnforcedIndex($this->indexPrefix . 'default_products'); $indexSettings = $this->algoliaConnector->getSettings($indexOptions); diff --git a/Test/Integration/Indexing/Queue/QueueTest.php b/Test/Integration/Indexing/Queue/QueueTest.php index 00559137e..9eb931127 100644 --- a/Test/Integration/Indexing/Queue/QueueTest.php +++ b/Test/Integration/Indexing/Queue/QueueTest.php @@ -188,6 +188,7 @@ public function testSettings() ]); $this->setConfig(QueueHelper::IS_ACTIVE, '1'); + $this->setConfig(ConfigHelper::ENABLE_INDEXER_QUEUE, '1'); $this->connection->query('DELETE FROM algoliasearch_queue'); @@ -221,6 +222,7 @@ public function testSettings() public function testMergeSettings() { $this->setConfig(QueueHelper::IS_ACTIVE, '1'); + $this->setConfig(ConfigHelper::ENABLE_INDEXER_QUEUE, '1'); $this->setConfig(QueueHelper::NUMBER_OF_JOB_TO_RUN, 1); $this->setConfig(ConfigHelper::NUMBER_OF_ELEMENT_BY_PAGE, 300); diff --git a/composer.json b/composer.json index 506307b03..3ad156dc2 100755 --- a/composer.json +++ b/composer.json @@ -3,7 +3,7 @@ "description": "Algolia Search & Discovery extension for Magento 2", "type": "magento2-module", "license": ["MIT"], - "version": "3.17.0-beta.2", + "version": "3.17.0", "require": { "php": "~8.2|~8.3|~8.4", "magento/framework": "~103.0", diff --git a/etc/module.xml b/etc/module.xml index b22b86847..f450526eb 100755 --- a/etc/module.xml +++ b/etc/module.xml @@ -1,6 +1,6 @@ - +