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

IBX-1999: Added pagination to URL Wildcard tab in URL Management #2030

Merged
merged 8 commits into from
Jan 28, 2022

Conversation

mateuszdebinski
Copy link
Contributor

@mateuszdebinski mateuszdebinski commented Jan 24, 2022

Question Answer
Tickets IBX-1999
Bug fix? no
New feature? yes/no
BC breaks? no
Tests pass? yes
Doc needed? no
License GPL-2.0

Checklist:

  • Coding standards ($ composer fix-cs)
  • Ready for Code Review

@konradoboza konradoboza requested a review from a team January 25, 2022 07:09
@@ -73,8 +73,8 @@
</tr>
</thead>
<tbody>
{% if url_wildcards|length %}
{% for url_wildcard in url_wildcards %}
{% if pager.currentPageResults|length %}
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
{% if pager.currentPageResults|length %}
{% if pager|length %}

Pagerfanta objects are countable. Also you use getNbResults method.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

changed to count is same as(0) like in another tabs in admin-ui

src/lib/Pagination/Pagerfanta/URLWildcardAdapter.php Outdated Show resolved Hide resolved
src/lib/Pagination/Pagerfanta/URLWildcardAdapter.php Outdated Show resolved Hide resolved
src/lib/Tab/URLManagement/URLWildcardsTab.php Outdated Show resolved Hide resolved
Copy link
Contributor

@Steveb-p Steveb-p left a comment

Choose a reason for hiding this comment

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

Tests should be updated, but otherwise than that 👍

@sonarcloud
Copy link

sonarcloud bot commented Jan 26, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@adamwojs adamwojs merged commit 85ec15e into 2.3 Jan 28, 2022
@adamwojs adamwojs deleted the IBX-1999-pagination-url-wildcard-tab branch January 28, 2022 09:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

5 participants