mirror of
https://github.com/GSA/notifications-api.git
synced 2026-05-05 08:40:29 -04:00
Localize notification_utils to the API
This changeset pulls in all of the notification_utils code directly into the API and removes it as an external dependency. We are doing this to cut down on operational maintenance of the project and will begin removing parts of it no longer needed for the API. Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
This commit is contained in:
@@ -3,15 +3,6 @@ import itertools
|
||||
import uuid
|
||||
|
||||
from flask import current_app, url_for
|
||||
from notifications_utils.clients.encryption.encryption_client import EncryptionError
|
||||
from notifications_utils.recipients import (
|
||||
InvalidEmailError,
|
||||
InvalidPhoneError,
|
||||
try_validate_and_format_phone_number,
|
||||
validate_email_address,
|
||||
validate_phone_number,
|
||||
)
|
||||
from notifications_utils.template import PlainTextEmailTemplate, SMSMessageTemplate
|
||||
from sqlalchemy import CheckConstraint, Index, UniqueConstraint
|
||||
from sqlalchemy.dialects.postgresql import JSON, JSONB, UUID
|
||||
from sqlalchemy.ext.associationproxy import association_proxy
|
||||
@@ -46,6 +37,15 @@ from app.utils import (
|
||||
DATETIME_FORMAT_NO_TIMEZONE,
|
||||
get_dt_string_or_none,
|
||||
)
|
||||
from notifications_utils.clients.encryption.encryption_client import EncryptionError
|
||||
from notifications_utils.recipients import (
|
||||
InvalidEmailError,
|
||||
InvalidPhoneError,
|
||||
try_validate_and_format_phone_number,
|
||||
validate_email_address,
|
||||
validate_phone_number,
|
||||
)
|
||||
from notifications_utils.template import PlainTextEmailTemplate, SMSMessageTemplate
|
||||
|
||||
|
||||
def filter_null_value_fields(obj):
|
||||
|
||||
Reference in New Issue
Block a user