-
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
IBX-340: Allowed URL Gateway queries to not perform count operations #180
Conversation
@Steveb-p we need a JIRA ticket for this PR, so our automatic changelog generator can hook it. |
@lserwatka a proper Jira ticket has been added: IBX-340 |
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.
+1 but please create/update integration test. It's PAPI change
@adamwojs tests have been added. Unfortunately tests for URL Gateway itself were missing, so I had to add them - and they show that some of the I added the additional argument into |
I've added some additional changes that I wanted to make a different PR with, but considering they are related to the changes here I'm including them now.
I'm unsure what to do with duplicated code detected by sonar cloud - it seems to come from a fixture file, which to be honest I don't see duplicated anywhere in terms of data contained 😕 |
@Steveb-p I meant |
@adamwojs |
Sonar cloud analysis:
|
eZ/Publish/Core/Persistence/Legacy/Tests/URL/Gateway/DoctrineDatabaseTest.php
Outdated
Show resolved
Hide resolved
eZ/Publish/Core/Persistence/Legacy/Tests/URL/Gateway/DoctrineDatabaseTest.php
Outdated
Show resolved
Hide resolved
eZ/Publish/Core/Persistence/Legacy/Tests/URL/Gateway/DoctrineDatabaseTest.php
Outdated
Show resolved
Hide resolved
Co-authored-by: Adam Wójs <adam@wojs.pl>
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.
QA approved on Ibexa Exp 3.2.7-dev.
v3.3
Prevent multiple database
count
queries when paginating URL lists.Without the patch:
With the patch:
Checklist:
$ composer fix-cs
).@ezsystems/php-dev-team
).