MCPcopy Create free account

hub / github.com/alphagov/notifications-api / functions

Functions5,336 in github.com/alphagov/notifications-api

Function_mock_dvla_callback_data
(overrides=None)
tests/app/conftest.py:1382
Function_notify_db
Manages the connection to the database. Generally this shouldn't be used, instead you should use the `notify_db_session` fixture which also c
tests/conftest.py:86
Function_sample_precompiled_letter_notification
(sample_letter_notification)
tests/app/letters/test_letter_utils.py:39
Function_sample_precompiled_letter_notification_using_test_key
(sample_precompiled_letter_notification)
tests/app/letters/test_letter_utils.py:50
Function_sample_service_full_permissions
(notify_db_session)
tests/app/conftest.py:202
Function_sms_query
()
app/dao/fact_billing_dao.py:621
Function_stats
(requested, delivered, failed)
tests/app/service/test_statistics.py:164
Method_substitute_status
(_status: str)
app/models.py:1674
Functionactivate_user
(user_id)
app/user/rest.py:161
Methodadd_api_key_name
(self, in_data, **kwargs)
app/schemas.py:583
Functionadd_inbound_number_to_service
Route to add an inbound number to a service. If inbound_number_id is provided we add that specific number, otherwise we add a random availabl
app/inbound_number/rest.py:54
Functionadd_service_letter_contact
(service_id)
app/service/rest.py:935
Functionadd_service_reply_to_email_address
(service_id)
app/service/rest.py:890
Functionadd_service_sms_sender
(service_id)
app/service/rest.py:967
Functionadd_user_to_organisation
(organisation_id, user_id)
app/organisation/rest.py:220
Functionadd_user_to_service
(service_id, user_id)
app/service/rest.py:384
Functionadmin_log_view
A view that emits a log statement
tests/routes.py:15
Functionadmin_request
(client)
tests/app/conftest.py:1234
Functionafter_request
(response)
app/__init__.py:415
Methodallow_ctx
(self, cipherlist)
tests/app/clients/test_dvla.py:898
Functionalready_registered_template
(notify_service)
tests/app/conftest.py:817
Functionapi_client_request
For v2 endpoints. Same as admin_request, except all functions take a required service_id and an optional _api_key_type field.
tests/app/conftest.py:1299
Methodapi_keys
(self)
app/serialised_models.py:144
Functionapp_for_test
()
tests/app/v2/test_errors.py:10
Functionarchive_email_branding
(email_branding_id)
app/email_branding/rest.py:122
Functionarchive_letter_attachment
(letter_attachment_id)
app/letter_attachment/rest.py:49
Functionarchive_organisation
All services must be reassigned and all team members removed before an org can be archived. When an org is archived, its email branding,
app/organisation/rest.py:155
Functionarchive_service
When a service is archived the service is made inactive, templates are archived and api keys are revoked. There is no coming back from this o
app/service/rest.py:801
Functionarchive_template_email_file
(template_email_file_id, template_id, service_id)
app/template_email_files/rest.py:94
Functionarchive_user
(user_id)
app/user/rest.py:153
Functionarchive_validation_error
(error: ArchiveValidationError)
app/errors.py:67
Methodarchived_by
(cls)
app/models.py:1347
Methodarchived_by_id
(cls)
app/models.py:1343
Functionarchived_service
(client, notify_db_session, sample_service)
tests/app/service/test_archived_service.py:37
Functionarchived_service_with_deleted_stuff
(client, sample_service)
tests/app/service/test_archived_service.py:86
Functionassert_job_stat
(job, result, sent, delivered, failed)
tests/app/dao/test_jobs_dao.py:367
Functionassociate_services_to_organisations
()
app/commands.py:667
Functionauth_error
(error)
app/v2/errors.py:138
Functionauthentication_error
(error: AuthError)
app/errors.py:53
Functionautocommit
(func)
app/dao/dao_utils.py:8
Functionbackfill_notification_statuses
DEPRECATED. Populates notification_status. This will be used to populate the new `Notification._status_fkey` with the old `Notification.
app/commands.py:184
Functionbad_request
(e: HTTPException)
app/errors.py:79
Methodbearer_token
(self)
app/models.py:903
Functionbefore_cursor_execute
(conn, cursor, statement, parameters, context, executemany)
tests/conftest.py:190
Functionbulk_invite_user_to_service
(file_name, service_id, user_id, auth_type, permissions)
app/commands.py:367
Methodca
(self)
tests/app/clients/test_dvla.py:862
Methodcan_use_webauthn
(self)
app/models.py:173
Functioncancel_job
(service_id, job_id)
app/job/rest.py:62
Functioncancel_letter_job
(service_id, job_id)
app/job/rest.py:71
Functioncancel_notification_for_service
(service_id, notification_id)
app/service/rest.py:616
Functioncelery_mock
(mocker)
tests/app/service/send_notification/test_send_one_off_notification.py:38
Functioncelery_mocker
(celery_task: celery.local.PromiseProxy, assert_types=True)
tests/app/conftest.py:1428
Functionchange_email_confirmation_template
(notify_service)
tests/app/conftest.py:830
Functioncheck_apply_async
( args: tuple | list | None = None, kwargs: dict | None = None, queue=None
tests/app/conftest.py:1462
Functioncheck_if_sender_id_is_protected
()
app/protected_sender_id/rest.py:14
Methodcheck_unknown_fields
(self, data, original_data, **kwargs)
app/schemas.py:184
Methodcheck_unknown_fields
(self, data, original_data, **kwargs)
app/schemas.py:195
Functioncheckin
(dbapi_connection, connection_record, bind_key=_bind_key, engine=_engine)
app/__init__.py:592
Functioncheckout
(dbapi_connection, connection_record, connection_proxy, bind_key=_bind_key, engine=_engine)
app/__init__.py:551
Functionchild_exit
(server, worker)
gunicorn_config.py:12
Methodcipherlist
(self)
tests/app/clients/test_dvla.py:882
Functionclient
(notify_api)
tests/conftest.py:63
Functionclose
(dbapi_connection, connection_record, bind_key=_bind_key, engine=_engine)
app/__init__.py:543
Methodcode
(self)
app/models.py:1481
Functioncol_references_table
(col, table)
app/history_meta.py:27
Functioncommand_group
()
app/commands.py:78
Functioncommit_or_rollback
(*args, **kwargs)
app/dao/dao_utils.py:10
Functioncomplete_login_after_webauthn_authentication_attempt
complete login after a webauthn authentication. There's nothing webauthn specific in this code but the sms/email flows do this as part of `ve
app/user/rest.py:256
Functionconnect
(dbapi_connection, connection_record, bind_key=_bind_key, engine=_engine)
app/__init__.py:488
Methodcontent
(self)
app/models.py:1691
Methodcontent
(self)
app/models.py:2214
Methodconvert_schema_object_to_field
(self, in_data, **kwargs)
app/schemas.py:658
Functioncount_notifications_for_service
(service_id)
app/service/rest.py:575
Functioncreate_api_key
(service_id=None)
app/service/rest.py:345
Functioncreate_contact_list
(service_id)
app/service/rest.py:1313
Functioncreate_email_branding
()
app/email_branding/rest.py:62
Functioncreate_email_sms_letter_template
()
tests/app/dao/test_services_dao.py:1183
Functioncreate_event
()
app/events/rest.py:12
Functioncreate_functional_test_users
()
app/functional_tests/__init__.py:24
Functioncreate_job
(service_id)
app/job/rest.py:148
Functioncreate_letter_attachment
()
app/letter_attachment/rest.py:23
Functioncreate_letter_brand
()
app/letter_branding/letter_branding_rest.py:54
Functioncreate_one_off_notification
(service_id)
app/service/rest.py:841
Functioncreate_or_update_free_sms_fragment_limit
(service_id)
app/billing/rest.py:78
Functioncreate_or_update_ft_billing_letter_despatch_for_day
(process_day: str)
app/celery/reporting_tasks.py:109
Functioncreate_organisation
()
app/organisation/rest.py:113
Functioncreate_pdf_letter
(service_id)
app/service/rest.py:847
Functioncreate_post_email_response_from_notification
( notification_id, client_reference, template_id, template_version, service_id, conten
app/v2/notifications/create_response.py:11
Functioncreate_post_letter_response_from_notification
( notification_id, client_reference, template_id, template_version, service_id, content, subject, url_root
app/v2/notifications/create_response.py:35
Functioncreate_post_sms_response_from_notification
( notification_id, client_reference, template_id, template_version, service_id, content, from_number, url_
app/v2/notifications/create_response.py:1
Functioncreate_process_returned_letters_job
()
app/letters/rest.py:20
Functioncreate_report_request_by_type
(service_id)
app/service/rest.py:1566
Functioncreate_service
()
app/service/rest.py:284
Functioncreate_service_callback_api
(service_id)
app/service/callback_rest.py:25
Functioncreate_service_data_retention
(service_id)
app/service/rest.py:1039
Functioncreate_service_join_request
(service_id: uuid.UUID)
app/service/rest.py:1326
Functioncreate_template
(service_id)
app/template/rest.py:83
Functioncreate_template_email_file
(service_id, template_id)
app/template_email_files/rest.py:36
Functioncreate_template_folder
(service_id)
app/template_folder/rest.py:57
Functioncreate_unsubscribe_request_report
(service_id)
app/service/rest.py:1226
← previousnext →1,101–1,200 of 5,336, ranked by callers