Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/alphagov/notifications-api
/ functions
Functions
5,336 in github.com/alphagov/notifications-api
⨍
Functions
5,336
◇
Types & classes
258
↳
Endpoints
315
↓ 2 callers
Function
remove_mail_headers
(dict_to_edit)
app/notifications/notifications_ses_callback.py:54
↓ 2 callers
Function
remove_s3_object
(bucket_name, object_key)
app/aws/s3.py:61
↓ 2 callers
Function
remove_sms_email_csv_files
()
app/celery/nightly_tasks.py:68
↓ 2 callers
Method
remove_user_organisation_permissions
(self, user: User, organisation: Organisation)
app/dao/organisation_user_permissions_dao.py:10
↓ 2 callers
Function
replay_created_notifications
()
app/celery/scheduled_tasks.py:318
↓ 2 callers
Function
replay_letters_in_error
(filename=None)
app/celery/letters_pdf_tasks.py:514
↓ 2 callers
Function
requires_my_internal_app_auth
()
tests/app/authentication/test_authentication.py:46
↓ 2 callers
Function
reset_service_callback_api
(service_callback_api, updated_by_id, url=None, bearer_token=None)
app/dao/service_callback_api_dao.py:18
↓ 2 callers
Function
run_scheduled_jobs
()
app/celery/scheduled_tasks.py:98
↓ 2 callers
Function
sanitise_personalisation_item
(value)
app/v2/notifications/post_notifications.py:186
↓ 2 callers
Function
save_daily_notification_processing_time
(bst_date=None)
app/celery/nightly_tasks.py:442
↓ 2 callers
Function
send_email_response
(reference, to, service_id)
app/celery/research_mode_tasks.py:58
↓ 2 callers
Function
send_letters_volume_email_to_dvla
(letters_volumes, date)
app/celery/letters_pdf_tasks.py:201
↓ 2 callers
Function
send_notification_to_queue_detached
( key_type, notification_type, notification_id, queue=None, message_group_id=None )
app/notifications/process_notifications.py:221
↓ 2 callers
Method
serialize
(self)
app/models.py:790
↓ 2 callers
Method
serialize
(self)
app/models.py:824
↓ 2 callers
Method
serialize
(self)
app/models.py:2132
↓ 2 callers
Method
serialize
(self)
app/models.py:2533
↓ 2 callers
Method
serialize
(self)
app/models.py:2597
↓ 2 callers
Method
serialize
(self)
app/models.py:2800
↓ 2 callers
Method
serialize_for_users_list
(self)
app/models.py:248
↓ 2 callers
Method
serialize_free_sms_items
(self)
app/models.py:757
↓ 2 callers
Method
serialize_unbatched_requests
(unbatched_unsubscribe_requests)
app/models.py:2642
↓ 2 callers
Function
ses_soft_bounce_callback
(reference)
app/celery/research_mode_tasks.py:285
↓ 2 callers
Function
set_up_data
()
tests/app/dao/test_fact_notification_status_dao.py:342
↓ 2 callers
Function
shatter_job_rows
( self, template_type: str, args_kwargs_seq: Sequence, has_files: bool = False, )
app/celery/tasks.py:172
↓ 2 callers
Function
simulated_recipient
(to_address, notification_type)
app/notifications/process_notifications.py:257
↓ 2 callers
Method
substitute_status
static function that takes a status or list of statuses and substitutes our new failure types if it finds the deprecated one
app/models.py:1666
↓ 2 callers
Function
switch_current_sms_provider_on_slow_delivery
Reduce provider's priority if at least 15% of notifications took more than 5 minutes to be delivered in the last 15 minutes. If both provider
app/celery/scheduled_tasks.py:175
↓ 2 callers
Function
technical_failure
(notification)
app/delivery/send_to_providers.py:283
↓ 2 callers
Function
timeout_notifications
()
app/celery/nightly_tasks.py:346
↓ 2 callers
Function
unescape_string
(string)
app/notifications/receive_notifications.py:137
↓ 2 callers
Function
update_billable_units_for_letter
(self, notification_id, page_count)
app/celery/letters_pdf_tasks.py:120
↓ 2 callers
Function
update_user_password
(user, password)
app/dao/users_dao.py:149
↓ 2 callers
Function
utils_s3download
(bucket_name, filename)
tests/app/conftest.py:1507
↓ 2 callers
Function
validate_billable_units
(notification, dvla_page_count)
app/celery/process_letter_client_response_tasks.py:58
↓ 2 callers
Function
validate_created_by
(service, created_by_id)
app/service/send_notification.py:39
↓ 2 callers
Function
weekly_user_research_email
Runs every Wednesday and finds all active users who were created the week starting on Monday 16 days ago. These users get emailed inviting th
app/celery/scheduled_tasks.py:742
↓ 1 callers
Function
__format_message
(e)
app/schema_validation/__init__.py:158
↓ 1 callers
Method
__init__
(self, message: str)
app/errors.py:18
↓ 1 callers
Method
__init__
(self, application)
app/clients/letter/dvla.py:118
↓ 1 callers
Function
__sending_limits_for_job_exceeded
(service, job, job_id)
app/celery/tasks.py:267
↓ 1 callers
Function
__update_notification
(notification_to_update, expected_status)
tests/app/delivery/test_send_to_providers.py:606
↓ 1 callers
Function
_add_branding_to_branding_pool
(organisation_id, kwargs)
app/dao/organisation_dao.py:128
↓ 1 callers
Method
_add_cost_data_for_letter
(self, serialized)
app/models.py:1862
↓ 1 callers
Method
_add_cost_data_for_sms
(self, serialized)
app/models.py:1846
↓ 1 callers
Function
_add_user_fields
(user, personalisation, fields)
app/service/sender.py:50
↓ 1 callers
Function
_assert_types_match
Checks all the args/kwargs provided match type hints if necessary by using the inspect module to introspect the params and ex
tests/app/conftest.py:1429
↓ 1 callers
Function
_break_up_link
(link)
app/v2/notifications/post_notifications.py:209
↓ 1 callers
Function
_build_links
(notifications)
app/v2/notifications/get_notifications.py:103
↓ 1 callers
Function
_build_links
(inbound_sms_list)
app/v2/inbound_sms/get_inbound_sms.py:29
↓ 1 callers
Function
_check_and_queue_complaint_callback_task
(complaint, notification, recipient)
app/notifications/notifications_ses_callback.py:86
↓ 1 callers
Function
_col_copy
(col)
app/history_meta.py:47
↓ 1 callers
Function
_could_be_accidental_link
(link)
app/v2/notifications/post_notifications.py:205
↓ 1 callers
Function
_count_gov_users_with_manage_settings
(service)
app/dao/users_dao.py:201
↓ 1 callers
Function
_create_2fa_url
(user, secret_code, next_redirect, email_auth_link_host)
app/user/rest.py:612
↓ 1 callers
Function
_create_confirmation_url
(user, email_address)
app/user/rest.py:606
↓ 1 callers
Function
_create_fake_letter_callback_data
(notification_id: uuid.UUID, billable_units: int, postage: str)
app/celery/research_mode_tasks.py:103
↓ 1 callers
Function
_create_inbound_numbers
(service_id, user_id, number="07700900500", provider="mmg")
app/functional_tests_fixtures/__init__.py:588
↓ 1 callers
Function
_create_inbound_sms
(service, count)
app/functional_tests_fixtures/__init__.py:778
↓ 1 callers
Function
_create_organiation
(email_domain, org_name)
app/functional_tests_fixtures/__init__.py:499
↓ 1 callers
Function
_create_reset_password_url
(email, next_redirect, base_url=None)
app/user/rest.py:591
↓ 1 callers
Function
_create_service_inbound_api
(service_id, user_id)
app/functional_tests_fixtures/__init__.py:763
↓ 1 callers
Function
_create_verification_url
(user, base_url)
app/user/rest.py:600
↓ 1 callers
Function
_decide_permanent_temporary_failure
(status, notification, detailed_status_code=None)
app/dao/notifications_dao.py:150
↓ 1 callers
Function
_deep_archive_notification_history_row_gen
( table: Table, start_datetime: datetime, end_datetime: datetime, batch_size: int )
app/celery/nightly_tasks.py:764
↓ 1 callers
Function
_delete_letters_from_s3
Deletes all letters with a status in NOTIFICATION_STATUS_TYPES_COMPLETED, which includes those which failed validation. `find_letter_pdf
app/dao/notifications_dao.py:513
↓ 1 callers
Function
_delete_test_letters_from_s3
(service_id, date_to_delete_from, query_limit)
app/dao/notifications_dao.py:546
↓ 1 callers
Function
_escape_markdown_characters
(value)
app/v2/notifications/post_notifications.py:193
↓ 1 callers
Function
_fetch_notification_status_for_service_for_today_and_7_previous_days_fact_query
( service_id: UUID | str, by_template: bool, limit_days: int, session: Session | scoped_session = db.sessi
app/dao/fact_notification_status_dao.py:211
↓ 1 callers
Function
_fetch_notification_status_for_service_for_today_and_7_previous_days_notifications_query
( service_id: UUID | str, by_template: bool, chunk_start_dt: datetime, chunk_timedelta: timede
app/dao/fact_notification_status_dao.py:237
↓ 1 callers
Function
_fetch_notification_status_for_service_for_today_and_7_previous_days_template_query
( all_template_ids: set[UUID | str], session: Session | scoped_session = db.session )
app/dao/fact_notification_status_dao.py:268
↓ 1 callers
Function
_fetch_returned_letter_data
(service_id, report_date)
app/service/rest.py:1534
↓ 1 callers
Function
_fetch_usage_for_all_services_sms_query
See docstring for _fetch_usage_for_service_sms()
app/dao/fact_billing_dao.py:105
↓ 1 callers
Function
_fetch_usage_for_organisation_email
(organisation_id, start_date, end_date, session=db.session)
app/dao/fact_billing_dao.py:949
↓ 1 callers
Function
_fetch_usage_for_organisation_letter
(organisation_id, start_date, end_date, session=db.session)
app/dao/fact_billing_dao.py:919
↓ 1 callers
Function
_fetch_usage_for_organisation_sms
( organisation_id, financial_year, session=db.session, inner_retry_attempts: int = 0 )
app/dao/fact_billing_dao.py:977
↓ 1 callers
Function
_find_and_sanitise_urls
(value)
app/v2/notifications/post_notifications.py:197
↓ 1 callers
Function
_find_model_by_uuid
(uuid_: str)
app/platform_admin/rest.py:80
↓ 1 callers
Function
_generate_fact_notification_status_rows_inner
( process_day: date, notification_type: str, service_id: UUID | str, chunk_timedelta: timedelt
app/dao/fact_notification_status_dao.py:47
↓ 1 callers
Function
_get_despatch_date
Converts a datetime string in the format of 2024-10-15 04:00:16.287 to a date. Both the despatch_date argument and date returned are in Londo
app/notifications/notifications_letter_callback.py:211
↓ 1 callers
Function
_get_email_headers
(notification: Notification, template: SerialisedTemplate)
app/delivery/send_to_providers.py:134
↓ 1 callers
Function
_get_extended_phone_number_info
(phone_number, send_to)
app/notifications/validators.py:204
↓ 1 callers
Method
_get_letter_cost
(self)
app/models.py:1914
↓ 1 callers
Function
_get_letters_and_sheets_volumes_and_send_to_dvla
(print_run_deadline_local)
app/celery/letters_pdf_tasks.py:196
↓ 1 callers
Function
_get_orc_type_from_python_type
(python_type)
app/celery/nightly_tasks.py:486
↓ 1 callers
Function
_get_printing_datetime
(created_at)
app/dao/uploads_dao.py:29
↓ 1 callers
Function
_get_reference_from_personalisation
(personalisation)
app/service/send_notification.py:52
↓ 1 callers
Function
_get_sanitised_content
(unsanitised_personalisation, personalisation)
app/v2/notifications/post_notifications.py:213
↓ 1 callers
Method
_get_sms_rate
(self)
app/models.py:1900
↓ 1 callers
Function
_grant_permissions
(service, user)
app/functional_tests_fixtures/__init__.py:561
↓ 1 callers
Function
_history_mapper
(local_mapper)
app/history_meta.py:38
↓ 1 callers
Function
_insert_inbound_sms_history
(subquery, query_limit=10000)
app/dao/inbound_sms_dao.py:76
↓ 1 callers
Method
_is_cost_data_ready_for_letter
(self)
app/models.py:1888
↓ 1 callers
Method
_is_cost_data_ready_for_sms
(self)
app/models.py:1883
↓ 1 callers
Function
_is_high_volume_service
(service)
app/dao/annual_billing_dao.py:141
↓ 1 callers
Method
_letter_was_never_sent
(self)
app/models.py:1895
↓ 1 callers
Function
_letters_missing_from_sending_bucket_inner
( start_dt: datetime, end_dt: datetime, session: Session | scoped_session = db.session, )
app/dao/notifications_dao.py:966
↓ 1 callers
Method
_listener
Create a listener function that captures the bind_key in its closure.
tests/utils.py:35
↓ 1 callers
Function
_min_gov_users_with_manage_settings
(service)
app/dao/users_dao.py:210
← previous
next →
701–800 of 5,336, ranked by callers