From e8dd136678f1a98854183b969da8a10bad4545e3 Mon Sep 17 00:00:00 2001 From: David McDonald Date: Fri, 3 Dec 2021 17:30:12 +0000 Subject: [PATCH] Document area that may be doing pagination links when not needed --- app/service/rest.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/service/rest.py b/app/service/rest.py index 6d49b583e..89a47cb63 100644 --- a/app/service/rest.py +++ b/app/service/rest.py @@ -542,6 +542,9 @@ def search_for_notification_by_to_field(service_id, search_term, statuses, notif ) return jsonify( notifications=notification_with_template_schema.dump(results.items, many=True).data, + # TODO: this may be a bug to include the pagination links as currently `search_for_notification_by_to_field` + # hardcodes the pages of results to always be the first page so not sure what benefit is to show a link to + # page 2 which would have the page parameter ignored links=pagination_links( results, '.get_all_notifications_for_service',