mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-20 14:29:51 -04:00
Don't request pagination links for API Message log page
Counting pages for API notifications takes a long time for services with a lot of sent messages (since it issues a `count(*)` query for the given filter). Since API message log doesn't have a "Next page" link we can skip the count by setting a flag on the API request.
This commit is contained in:
@@ -83,7 +83,7 @@
|
||||
{% endfor %}
|
||||
{% if api_notifications.notifications %}
|
||||
<div class="api-notifications-item">
|
||||
{% if api_notifications.links %}
|
||||
{% if api_notifications.notifications|length == 50 %}
|
||||
<p class="api-notifications-item-meta">
|
||||
Only showing the first 50 messages.
|
||||
</p>
|
||||
|
||||
Reference in New Issue
Block a user