-
Notifications
You must be signed in to change notification settings - Fork 203
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-30567: Impl. ez_query:pagingQueryAction to handle pagination #2651
Conversation
eZ/Publish/Core/MVC/Symfony/Controller/Content/QueryController.php
Outdated
Show resolved
Hide resolved
eZ/Publish/Core/MVC/Symfony/Controller/Content/QueryController.php
Outdated
Show resolved
Hide resolved
eZ/Publish/Core/MVC/Symfony/Controller/Content/QueryController.php
Outdated
Show resolved
Hide resolved
eZ/Publish/Core/MVC/Symfony/Controller/Content/QueryController.php
Outdated
Show resolved
Hide resolved
ping @bdunogier |
eZ/Publish/Core/MVC/Symfony/Controller/Content/QueryController.php
Outdated
Show resolved
Hide resolved
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.
Target version
7.x
Current master
is 8.0
. Feature development process for 7.x
has been closed. Just mentioning this so there's no surprise once the feature is merged.
I see that you've skipped most of the points from the checklist. They would need to be addressed before we can process the PR.
Besides:
eZ/Publish/Core/MVC/Symfony/Controller/Content/QueryController.php
Outdated
Show resolved
Hide resolved
eZ/Publish/Core/MVC/Symfony/Controller/Content/QueryController.php
Outdated
Show resolved
Hide resolved
eZ/Publish/Core/MVC/Symfony/Controller/Content/QueryController.php
Outdated
Show resolved
Hide resolved
eZ/Publish/Core/MVC/Symfony/Controller/Content/QueryController.php
Outdated
Show resolved
Hide resolved
@alongosz thank you for your comments. I fixed the comments, ran fix-cs and did code changes. This feature is really useful and I think it could be merged to 8.x release. |
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.
There's one outstanding item from the checklist - implement tests. AFAICS for Query Controller we have BDD tests so something similar would be the best choice. Test also allows you to clearly state what your feature does, so it's good for more than one reason.
I also looked deeper at the implementation and have one more remark:
eZ/Publish/Core/MVC/Symfony/Controller/Content/QueryController.php
Outdated
Show resolved
Hide resolved
Nice work on the tests @jlchassaing 👍 |
Thanks for your contribution @jlchassaing |
eZ/Publish/Core/MVC/Symfony/Controller/Content/QueryController.php
Outdated
Show resolved
Hide resolved
eZ/Publish/Core/MVC/Symfony/Controller/Content/QueryController.php
Outdated
Show resolved
Hide resolved
eZ/Publish/Core/MVC/Symfony/Controller/Content/QueryController.php
Outdated
Show resolved
Hide resolved
eZ/Publish/Core/MVC/Symfony/Controller/Content/QueryController.php
Outdated
Show resolved
Hide resolved
eZ/Publish/Core/MVC/Symfony/Controller/Content/QueryController.php
Outdated
Show resolved
Hide resolved
eZ/Publish/Core/MVC/Symfony/Controller/Content/QueryController.php
Outdated
Show resolved
Hide resolved
eZ/Publish/Core/MVC/Symfony/Controller/Content/QueryController.php
Outdated
Show resolved
Hide resolved
Does someone have a clue why I'm getting this travis fail ? |
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 good to me, I like the feature !
Added a suggestion for a simplification of the behat test, but it's not a must-have. It would shorten the file a lot though.
Also, I was wondering if handling an option in the existing controller would have been a better choice than a separate controller.
eZ/Bundle/EzPublishCoreBundle/Features/QueryController/query_controller.feature
Outdated
Show resolved
Hide resolved
Status: |
e575cbb
to
0cd65dc
Compare
QueryController pagingQueryAction returns query results as a Pagerfanta instance Co-Authored-By: André R. <[email protected]>
Co-Authored-By: Andrew Longosz <[email protected]>
@micszo you can proceed with QA here. |
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.
QA Approved on eZ Platform EE master.
Thank you @jlchassaing 🎉 |
master (8.0@dev)
for eZ Platformv3.0
.The ez_query:pagingQueryAction will return a pagerFanta object set to the assign_to_result parameter.
alongside with the assign_to_result param as described a limit parameter can be added to set the page number of items.
QA
ez_query:pagingQueryAction
Query controller (very well described by the Behat tests in the PR).TODO:
ez_query:pagingQueryAction
.$ composer fix-cs
).