mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-26 09:13:58 -04:00
Ask API for less detailed JSON for all templates
This should speed things up by: - less time waiting for big blobs of JSON to come from Redis or the API - less time spent deserialising big blobs of JSON
This commit is contained in:
@@ -276,7 +276,7 @@ class ServiceAPIClient(NotifyAdminAPIClient):
|
|||||||
"""
|
"""
|
||||||
Retrieve all templates for service.
|
Retrieve all templates for service.
|
||||||
"""
|
"""
|
||||||
endpoint = '/service/{service_id}/template'.format(
|
endpoint = '/service/{service_id}/template?detailed=False'.format(
|
||||||
service_id=service_id)
|
service_id=service_id)
|
||||||
return self.get(endpoint)
|
return self.get(endpoint)
|
||||||
|
|
||||||
|
|||||||
@@ -275,7 +275,7 @@ def test_client_returns_count_of_service_templates(
|
|||||||
],
|
],
|
||||||
None,
|
None,
|
||||||
[
|
[
|
||||||
call('/service/{}/template'.format(SERVICE_ONE_ID))
|
call('/service/{}/template?detailed=False'.format(SERVICE_ONE_ID))
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
call(
|
call(
|
||||||
|
|||||||
Reference in New Issue
Block a user