From 397e20983d3828ebc6c21be6a40593afdc15c5f1 Mon Sep 17 00:00:00 2001 From: Bartek Wajda Date: Wed, 27 Nov 2024 15:33:19 +0100 Subject: [PATCH] IBX-9169: Added `ContentName` criterion handler to trash handler (#448) For more details see https://issues.ibexa.co/browse/IBX-9169 and https://github.com/ibexa/core/pull/448 Key changes: * Added the `ContentName` criterion handler to trash handler * [Tests] Updated `TestCase` --- .../settings/search_engines/legacy/criterion_handlers_common.yml | 1 + tests/lib/Persistence/Legacy/TestCase.php | 1 + 2 files changed, 2 insertions(+) diff --git a/src/lib/Resources/settings/search_engines/legacy/criterion_handlers_common.yml b/src/lib/Resources/settings/search_engines/legacy/criterion_handlers_common.yml index 2b5edd76c0..17976bc718 100644 --- a/src/lib/Resources/settings/search_engines/legacy/criterion_handlers_common.yml +++ b/src/lib/Resources/settings/search_engines/legacy/criterion_handlers_common.yml @@ -78,6 +78,7 @@ services: tags: - { name: ibexa.search.legacy.gateway.criterion_handler.content } - { name: ibexa.search.legacy.gateway.criterion_handler.location } + - { name: ibexa.search.legacy.trash.gateway.criterion.handler } Ibexa\Core\Search\Legacy\Content\Common\Gateway\CriterionHandler\ContentTypeGroupId: parent: Ibexa\Core\Search\Legacy\Content\Common\Gateway\CriterionHandler diff --git a/tests/lib/Persistence/Legacy/TestCase.php b/tests/lib/Persistence/Legacy/TestCase.php index 72b9593222..2edd0079da 100644 --- a/tests/lib/Persistence/Legacy/TestCase.php +++ b/tests/lib/Persistence/Legacy/TestCase.php @@ -324,6 +324,7 @@ protected function getTrashCriteriaConverterDependency(): CriteriaConverter new CriterionHandler\ContentTypeId($connection), new CriterionHandler\DateMetadata($connection), new CriterionHandler\UserMetadata($connection), + new CriterionHandler\ContentName($connection), ] ); }