-
Notifications
You must be signed in to change notification settings - Fork 29
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
EZP-32110: Exposed more search result data from Pagefanta adapters #144
Conversation
SonarCloud Quality Gate failed. 0 Bugs No Coverage information |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tests can be improved for duplication
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SonarCloud analysis is relevant. I don't see a point of having it if we gonna ignore it (as communicated/requested internally). But +1 anyway, with one remark.
*/ | ||
declare(strict_types=1); | ||
|
||
namespace eZ\Publish\Core\Pagination\Pagerfanta; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like custom code consumes methods from this interface. In this case it should be API. Given the context - entire pagerfanta impl. - which shouldn't even be part of Kernel, I'll accept for now, especially due to time constraints. But if you have time, fix it please.
v3.3
Introduced
\eZ\Publish\Core\Pagination\Pagerfanta\SearchResultAdapter
in order to be able to access additional search result data
from Pagefanta.
In practice this change allows to use additional search results data when rendering query using built-in query controller,
ez_render_content_query
/ez_render_location_query
etc.Example
Query controller
config/packages/ezplatform.yaml
templates/full/folder.html.twig
Custom controller
Notes
Pagerfanta\Pagerfanta
object by using$pagerfanta->getAdapter()->get{Aggregations,MaxScore,Time,TimedOut}
Checklist:
$ composer fix-cs
).@ezsystems/php-dev-team
).