Add support for nested aggregations #297
Annotations
15 warnings
Mutation Testing Code Review Annotations 8.3
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/.
|
Mutation Testing Code Review Annotations 8.3
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/
|
Mutation Testing Code Review Annotations 8.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;
}
}
|
Mutation Testing Code Review Annotations 8.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) {
|
Mutation Testing Code Review Annotations 8.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]]]];
|
Mutation Testing Code Review Annotations 8.2
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/.
|
Mutation Testing Code Review Annotations 8.2
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/
|
Mutation Testing Code Review Annotations 8.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;
}
}
|
Mutation Testing Code Review Annotations 8.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) {
|
Mutation Testing Code Review Annotations 8.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]]]];
|
Mutation Testing Code Review Annotations 8.1
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/.
|
Mutation Testing Code Review Annotations 8.1
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/
|
Mutation Testing Code Review Annotations 8.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;
}
}
|
Mutation Testing Code Review Annotations 8.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) {
|
Mutation Testing Code Review Annotations 8.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]]]];
|