Skip to content

Add support for nested aggregations #576

Add support for nested aggregations

Add support for nested aggregations #576

Triggered via pull request April 25, 2024 09:29
Status Failure
Total duration 1m 37s
Artifacts

ci.yml

on: pull_request
Matrix: php-tests
Fit to window
Zoom out
Zoom in

Annotations

8 errors and 19 warnings
PHP8.4
Process completed with exit code 1.
PHP8
Process completed with exit code 1.
PHP8.1
The job was canceled because "_8_false" failed.
PHP8.1
The operation was canceled.
PHP8.2
The job was canceled because "_8_false" failed.
PHP8.2
The operation was canceled.
PHP8.3
The job was canceled because "_8_false" failed.
PHP8.3
The operation was canceled.
PHP8.4
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
PHP8.4
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
PHP8.4: src/Application/Results.php#L67
Escaped Mutant for Mutator "ArrayOneItem": --- Original +++ New @@ @@ } } } - return $aggregations; + return count($aggregations) > 1 ? array_slice($aggregations, 0, 1, true) : $aggregations; } }
PHP8.4: src/Domain/Aggregations/NestedFilteredAggregation.php#L37
Escaped Mutant for Mutator "PublicVisibility": --- Original +++ New @@ @@ /** * @return array<string, mixed> */ - public function buildElasticFilters() : array + protected function buildElasticFilters() : array { $elasticFilters = []; foreach ($this->filters as $field => $filterValues) {
PHP8.4: src/Domain/Aggregations/NestedFilteredAggregation.php#L40
Escaped Mutant for Mutator "Foreach_": --- Original +++ New @@ @@ public function buildElasticFilters() : array { $elasticFilters = []; - foreach ($this->filters as $field => $filterValues) { + foreach (array() as $field => $filterValues) { $elasticFilters[] = ['terms' => [$this->path . ' . ' . $field => $filterValues]]; } return ['bool' => ['should' => ['bool' => ['must' => $elasticFilters]]]];
PHP8
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
PHP8
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
PHP8: src/Application/Results.php#L67
Escaped Mutant for Mutator "ArrayOneItem": --- Original +++ New @@ @@ } } } - return $aggregations; + return count($aggregations) > 1 ? array_slice($aggregations, 0, 1, true) : $aggregations; } }
PHP8: src/Domain/Aggregations/NestedFilteredAggregation.php#L37
Escaped Mutant for Mutator "PublicVisibility": --- Original +++ New @@ @@ /** * @return array<string, mixed> */ - public function buildElasticFilters() : array + protected function buildElasticFilters() : array { $elasticFilters = []; foreach ($this->filters as $field => $filterValues) {
PHP8: src/Domain/Aggregations/NestedFilteredAggregation.php#L40
Escaped Mutant for Mutator "Foreach_": --- Original +++ New @@ @@ public function buildElasticFilters() : array { $elasticFilters = []; - foreach ($this->filters as $field => $filterValues) { + foreach (array() as $field => $filterValues) { $elasticFilters[] = ['terms' => [$this->path . ' . ' . $field => $filterValues]]; } return ['bool' => ['should' => ['bool' => ['must' => $elasticFilters]]]];
PHP8.1: src/Application/Results.php#L67
Escaped Mutant for Mutator "ArrayOneItem": --- Original +++ New @@ @@ } } } - return $aggregations; + return count($aggregations) > 1 ? array_slice($aggregations, 0, 1, true) : $aggregations; } }
PHP8.1: src/Domain/Aggregations/NestedFilteredAggregation.php#L37
Escaped Mutant for Mutator "PublicVisibility": --- Original +++ New @@ @@ /** * @return array<string, mixed> */ - public function buildElasticFilters() : array + protected function buildElasticFilters() : array { $elasticFilters = []; foreach ($this->filters as $field => $filterValues) {
PHP8.1: src/Domain/Aggregations/NestedFilteredAggregation.php#L40
Escaped Mutant for Mutator "Foreach_": --- Original +++ New @@ @@ public function buildElasticFilters() : array { $elasticFilters = []; - foreach ($this->filters as $field => $filterValues) { + foreach (array() as $field => $filterValues) { $elasticFilters[] = ['terms' => [$this->path . ' . ' . $field => $filterValues]]; } return ['bool' => ['should' => ['bool' => ['must' => $elasticFilters]]]];
PHP8.2: src/Application/Results.php#L67
Escaped Mutant for Mutator "ArrayOneItem": --- Original +++ New @@ @@ } } } - return $aggregations; + return count($aggregations) > 1 ? array_slice($aggregations, 0, 1, true) : $aggregations; } }
PHP8.2: src/Domain/Aggregations/NestedFilteredAggregation.php#L37
Escaped Mutant for Mutator "PublicVisibility": --- Original +++ New @@ @@ /** * @return array<string, mixed> */ - public function buildElasticFilters() : array + protected function buildElasticFilters() : array { $elasticFilters = []; foreach ($this->filters as $field => $filterValues) {
PHP8.2: src/Domain/Aggregations/NestedFilteredAggregation.php#L40
Escaped Mutant for Mutator "Foreach_": --- Original +++ New @@ @@ public function buildElasticFilters() : array { $elasticFilters = []; - foreach ($this->filters as $field => $filterValues) { + foreach (array() as $field => $filterValues) { $elasticFilters[] = ['terms' => [$this->path . ' . ' . $field => $filterValues]]; } return ['bool' => ['should' => ['bool' => ['must' => $elasticFilters]]]];
PHP8.3: src/Application/Results.php#L67
Escaped Mutant for Mutator "ArrayOneItem": --- Original +++ New @@ @@ } } } - return $aggregations; + return count($aggregations) > 1 ? array_slice($aggregations, 0, 1, true) : $aggregations; } }
PHP8.3: src/Domain/Aggregations/NestedFilteredAggregation.php#L37
Escaped Mutant for Mutator "PublicVisibility": --- Original +++ New @@ @@ /** * @return array<string, mixed> */ - public function buildElasticFilters() : array + protected function buildElasticFilters() : array { $elasticFilters = []; foreach ($this->filters as $field => $filterValues) {
PHP8.3: src/Domain/Aggregations/NestedFilteredAggregation.php#L40
Escaped Mutant for Mutator "Foreach_": --- Original +++ New @@ @@ public function buildElasticFilters() : array { $elasticFilters = []; - foreach ($this->filters as $field => $filterValues) { + foreach (array() as $field => $filterValues) { $elasticFilters[] = ['terms' => [$this->path . ' . ' . $field => $filterValues]]; } return ['bool' => ['should' => ['bool' => ['must' => $elasticFilters]]]];