Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OP-303: Change DataProvider priority #248

Merged
merged 2 commits into from
Jun 28, 2024
Merged

OP-303: Change DataProvider priority #248

merged 2 commits into from
Jun 28, 2024

Conversation

GracjanJozefczyk
Copy link
Member

No description provided.

@senghe senghe merged commit a4dd35a into master Jun 28, 2024
24 checks passed
@@ -47,6 +47,8 @@ public function resolve(array $data): array
return [];
}

return $adapter->getAggregations();
return array_filter($adapter->getAggregations(), function ($facet) {
return [] !== $facet['buckets'] ?? [];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This condition seems wrong. It rather should be [] !== ($facet['buckets'] ?? []). I'm facing the issue related to this, I guess:

Warning: Undefined array key \u0022buckets\u0022 in \/srv\/sylius\/vendor\/bitbag\/elasticsearch-plugin\/src\/Api\/Resolver\/FacetsResolver.php line 51

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants