From 7ebf60845fa1e463c661ff1c2ebd28407763613f Mon Sep 17 00:00:00 2001 From: Ben Thorner Date: Fri, 10 Dec 2021 16:35:40 +0000 Subject: [PATCH] Bump utils to 51.2.1 This brings a few performance improvements for RecipientCSV, which we use to preview and process CSVs. One change also renames one of the attributes for the class to "guestlist". --- app/main/views/send.py | 2 +- app/main/views/uploads.py | 2 +- requirements.in | 2 +- requirements.txt | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/main/views/send.py b/app/main/views/send.py index 2bbc7947d..9684a01db 100644 --- a/app/main/views/send.py +++ b/app/main/views/send.py @@ -652,7 +652,7 @@ def _check_messages(service_id, template_id, upload_id, preview_row, letters_as_ template=template, max_initial_rows_shown=50, max_errors_shown=50, - whitelist=itertools.chain.from_iterable( + guestlist=itertools.chain.from_iterable( [user.name, user.mobile_number, user.email_address] for user in Users(service_id) ) if current_service.trial_mode else None, remaining_messages=remaining_messages, diff --git a/app/main/views/uploads.py b/app/main/views/uploads.py index f8f7fc955..27cbb5469 100644 --- a/app/main/views/uploads.py +++ b/app/main/views/uploads.py @@ -451,7 +451,7 @@ def check_contact_list(service_id, upload_id): recipients = RecipientCSV( contents, template=get_sample_template(template_type or 'sms'), - whitelist=itertools.chain.from_iterable( + guestlist=itertools.chain.from_iterable( [user.name, user.mobile_number, user.email_address] for user in current_service.active_users ) if current_service.trial_mode else None, diff --git a/requirements.in b/requirements.in index 81053f579..1150ae49b 100644 --- a/requirements.in +++ b/requirements.in @@ -30,7 +30,7 @@ pyproj==3.2.1 # PaaS awscli-cwlogs>=1.4,<1.5 itsdangerous==1.1.0 # pyup: <2 -notifications-utils @ git+https://github.com/alphagov/notifications-utils.git@50.0.0 +notifications-utils @ git+https://github.com/alphagov/notifications-utils.git@51.2.1 govuk-frontend-jinja @ git+https://github.com/alphagov/govuk-frontend-jinja.git@v0.5.8-alpha # cryptography 3.4+ incorporates Rust code, which isn't supported on PaaS diff --git a/requirements.txt b/requirements.txt index 94cece298..fe4e0f9f3 100644 --- a/requirements.txt +++ b/requirements.txt @@ -123,7 +123,7 @@ mistune==0.8.4 # via notifications-utils notifications-python-client==6.3.0 # via -r requirements.in -notifications-utils @ git+https://github.com/alphagov/notifications-utils.git@50.0.0 +notifications-utils @ git+https://github.com/alphagov/notifications-utils.git@51.2.1 # via -r requirements.in openpyxl==3.0.7 # via pyexcel-xlsx