From 0d83417af841aa869ee007dcaf830b2c3924318c Mon Sep 17 00:00:00 2001 From: Martin Eiber Date: Wed, 24 Jan 2024 15:50:12 +0100 Subject: [PATCH 1/5] PD-115 Fix PHPStan --- src/Service/SearchIndex/OpenSearch/OpenSearchService.php | 2 +- src/Service/SearchIndex/OpenSearch/PathService.php | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Service/SearchIndex/OpenSearch/OpenSearchService.php b/src/Service/SearchIndex/OpenSearch/OpenSearchService.php index 453fb22b..f827ab59 100644 --- a/src/Service/SearchIndex/OpenSearch/OpenSearchService.php +++ b/src/Service/SearchIndex/OpenSearch/OpenSearchService.php @@ -227,7 +227,7 @@ public function putMapping(array $params): array public function countByAttributeValue(string $indexName, string $attribute, string $value): int { - $this->openSearchClient->search([ + $countResult = $this->openSearchClient->search([ 'index' => $indexName, 'track_total_hits' => true, 'rest_total_hits_as_int' => true, diff --git a/src/Service/SearchIndex/OpenSearch/PathService.php b/src/Service/SearchIndex/OpenSearch/PathService.php index 57b0dec8..c266d2f8 100644 --- a/src/Service/SearchIndex/OpenSearch/PathService.php +++ b/src/Service/SearchIndex/OpenSearch/PathService.php @@ -34,7 +34,8 @@ public function __construct( } /** - * Directly update children paths in OpenSearch for assets as otherwise you might get strange results if you rename a folder in the portal engine frontend. + * Directly update children paths in OpenSearch for assets as otherwise you might get strange results + * if you rename a folder in the portal engine frontend. * * @throws Exception */ @@ -134,7 +135,7 @@ private function updatePath(string $indexName, string $currentPath, string $newP private function countDocumentsByPath(string $indexName, string $path): int { - $this->openSearchClient->search([ + $countResult = $this->openSearchClient->search([ 'index' => $indexName, 'track_total_hits' => true, 'rest_total_hits_as_int' => true, From 786d5e7146f99d829e361ff2707d29dbca9666b4 Mon Sep 17 00:00:00 2001 From: Martin Eiber Date: Mon, 29 Jan 2024 10:05:08 +0100 Subject: [PATCH 2/5] PD-105 Update composer dependencies. --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 44688a04..f2ea82f4 100644 --- a/composer.json +++ b/composer.json @@ -22,7 +22,7 @@ "pimcore/pimcore": "^11.0", "opensearch-project/opensearch-php": "^2.2.0", "doctrine/orm": "^2.17.2", - "symfony/scheduler": "^6.3|^7.0" + "symfony/scheduler": "^6.4" }, "require-dev": { "roave/security-advisories": "dev-latest", From 2b71d9e65f41f20955ab813f07232908d06c4c8b Mon Sep 17 00:00:00 2001 From: Martin Eiber Date: Mon, 29 Jan 2024 10:07:26 +0100 Subject: [PATCH 3/5] PD-105 Update composer description. --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index f2ea82f4..37b2632f 100644 --- a/composer.json +++ b/composer.json @@ -2,7 +2,7 @@ "name": "pimcore/generic-data-index-bundle", "license": "Pimcore Enterprise License (PEL)", "type": "pimcore-bundle", - "description": "Pimcore xTemplate Bundlex", + "description": "Pimcore Generic data index Bundle", "config": { "discard-changes": true, "sort-packages": true, From d0b2cab123fd039b5799b11364997349dbe539da Mon Sep 17 00:00:00 2001 From: Martin Eiber Date: Mon, 29 Jan 2024 10:07:48 +0100 Subject: [PATCH 4/5] PD-105 Removed unused autoload. --- composer.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 37b2632f..a3411476 100644 --- a/composer.json +++ b/composer.json @@ -40,8 +40,7 @@ }, "autoload": { "psr-4": { - "Pimcore\\Bundle\\GenericDataIndexBundle\\": "src/", - "Pimcore\\": "core-extension/Pimcore/" + "Pimcore\\Bundle\\GenericDataIndexBundle\\": "src/" } }, "autoload-dev": { From 4a19ad434929c823e91226dc9777b73925ae361d Mon Sep 17 00:00:00 2001 From: Martin Eiber Date: Mon, 29 Jan 2024 11:19:21 +0100 Subject: [PATCH 5/5] PD-105 Require symfony/messenger 6.4 --- composer.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index a3411476..965d5dd8 100644 --- a/composer.json +++ b/composer.json @@ -19,10 +19,11 @@ "require": { "php": "~8.1.0 || ~8.2.0", "pimcore/enterprise-subscription-tools": "^1.3", - "pimcore/pimcore": "^11.0", + "pimcore/pimcore": "^11.1", "opensearch-project/opensearch-php": "^2.2.0", "doctrine/orm": "^2.17.2", - "symfony/scheduler": "^6.4" + "symfony/scheduler": "^6.4", + "symfony/messenger": "^6.4" }, "require-dev": { "roave/security-advisories": "dev-latest",