Skip to content

Commit

Permalink
Do not hard-code index name in workspace QueryService
Browse files Browse the repository at this point in the history
  • Loading branch information
markus-moser authored Apr 16, 2024
1 parent 2ebe0eb commit 500c671
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ private function evaluateDeclinedPaths(string $workspaceType, array $allowedPath
],
]));

$result = $this->searchIndexService->search($search, 'pimcore_asset');
$result = $this->searchIndexService->search($search, indexName);

Check failure on line 293 in src/SearchIndexAdapter/OpenSearch/Workspace/QueryService.php

View workflow job for this annotation

GitHub Actions / Static Analysis with PHPStan (8.2, lowest, false)

Constant indexName not found.

Check failure on line 293 in src/SearchIndexAdapter/OpenSearch/Workspace/QueryService.php

View workflow job for this annotation

GitHub Actions / Static Analysis with PHPStan (8.2, highest, 11.x-dev as 11.99.9, true)

Constant indexName not found.

Check failure on line 293 in src/SearchIndexAdapter/OpenSearch/Workspace/QueryService.php

View workflow job for this annotation

GitHub Actions / Qodana for PHP

Undefined constant

Undefined constant 'indexName'

Check failure on line 293 in src/SearchIndexAdapter/OpenSearch/Workspace/QueryService.php

View workflow job for this annotation

GitHub Actions / Qodana for PHP

Undefined constant

Undefined constant 'indexName'
$buckets = $result->getAggregation('paths')?->getBuckets() ?? [];
foreach ($buckets as $bucket) {
$declinedPaths[] = rtrim($bucket->getKey(), '/');
Expand Down

0 comments on commit 500c671

Please sign in to comment.