diff --git a/CHANGELOG.md b/CHANGELOG.md index ebe16b0952d..02b4e79a0d1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,16 @@ # Changelog +## 2.7.0 + +* Metadata: do not set id when identifier is `false` (#4880) +* Metadata: automatic GET operation when none is declared (#4881) +* Metadata: exception to status on operations (#4861) +* Serializer: adds the JSON_INVALID_UTF8_IGNORE flag to JsonEncode (#4741) +* Symfony: autoconfigure legacy Doctrine extensions (#4909) +* Elasticsearch: skip metadata without ES nodes (#4913) + +Various cs fixes and PHPDoc to help upgrading to 3.0. + ## 2.7.0-rc.3 * Symfony: deprecate the `$exceptionOnNoToken` parameter in `ResourceAccessChecker::__construct()` (#4900) diff --git a/src/Elasticsearch/Metadata/Resource/Factory/ElasticsearchProviderResourceMetadataCollectionFactory.php b/src/Elasticsearch/Metadata/Resource/Factory/ElasticsearchProviderResourceMetadataCollectionFactory.php index f61ab4179e7..79f1fcf19ee 100644 --- a/src/Elasticsearch/Metadata/Resource/Factory/ElasticsearchProviderResourceMetadataCollectionFactory.php +++ b/src/Elasticsearch/Metadata/Resource/Factory/ElasticsearchProviderResourceMetadataCollectionFactory.php @@ -21,6 +21,7 @@ use ApiPlatform\Util\Inflector; use Elasticsearch\Client; use Elasticsearch\Common\Exceptions\Missing404Exception; +use Elasticsearch\Common\Exceptions\NoNodesAvailableException; final class ElasticsearchProviderResourceMetadataCollectionFactory implements ResourceMetadataCollectionFactoryInterface { @@ -97,6 +98,8 @@ private function hasIndices(string $shortName): bool return true; } catch (Missing404Exception $e) { return false; + } catch (NoNodesAvailableException) { + return false; } } }