Bump utils to 53.0.0

Changes:

53.0.0
---

* `notifications_utils.columns.Columns` has moved to
  `notifications_utils.insensitive_dict.InsensitiveDict`
* `notifications_utils.columns.Rows` has moved to
  `notifications_utils.recipients.Rows`
* `notifications_utils.columns.Cell` has moved to
  `notifications_utils.recipients.Cell`

52.0.0
---

* Deprecate the following unused `redis_client` functions:
  - `redis_client.increment_hash_value`
  - `redis_client.decrement_hash_value`
  - `redis_client.get_all_from_hash`
  - `redis_client.set_hash_and_expire`
  - `redis_client.expire`

51.3.1
---

* Bump govuk-bank-holidays to cache holidays for next year.

51.3.0
---

* Log exception and stacktrace when Celery tasks fail.
This commit is contained in:
Chris Hill-Scott
2022-02-04 10:43:36 +00:00
parent 14cb883ed9
commit 61660134ff
5 changed files with 18 additions and 18 deletions

View File

@@ -10,9 +10,9 @@ from flask_wtf import FlaskForm as Form
from flask_wtf.file import FileAllowed
from flask_wtf.file import FileField as FileField_wtf
from flask_wtf.file import FileSize
from notifications_utils.columns import Columns
from notifications_utils.countries.data import Postage
from notifications_utils.formatters import strip_all_whitespace
from notifications_utils.insensitive_dict import InsensitiveDict
from notifications_utils.postal_address import PostalAddress
from notifications_utils.recipients import (
InvalidPhoneError,
@@ -360,7 +360,7 @@ class SMSCode(GovukTextInputField):
def process_formdata(self, valuelist):
if valuelist:
self.data = Columns.make_key(valuelist[0])
self.data = InsensitiveDict.make_key(valuelist[0])
class ForgivingIntegerField(GovukTextInputField):
@@ -2105,12 +2105,12 @@ def get_placeholder_form_instance(
):
if (
Columns.make_key(placeholder_name) == 'emailaddress' and
InsensitiveDict.make_key(placeholder_name) == 'emailaddress' and
template_type == 'email'
):
field = email_address(label=placeholder_name, gov_user=False)
elif (
Columns.make_key(placeholder_name) == 'phonenumber' and
InsensitiveDict.make_key(placeholder_name) == 'phonenumber' and
template_type == 'sms'
):
if allow_international_phone_numbers: