MCPcopy Create free account

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

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

↓ 3 callersFunctionupload_letter_pdf
(notification, pdf_data, precompiled=False)
app/letters/utils.py:93
↓ 3 callersFunctionvalidate
(json_to_validate, schema)
tests/app/public_contracts/__init__.py:9
↓ 3 callersFunctionweekly_dwp_report
(self)
app/celery/scheduled_tasks.py:693
↓ 2 callersMethod__init__
(self, load_json=False, *args, **kwargs)
app/schemas.py:73
↓ 2 callersMethod__init__
(self, sending_limit, interval, key_type)
app/v2/errors.py:28
↓ 2 callersMethod_abort_upload
(self)
app/report_requests/process_notifications_report.py:191
↓ 2 callersFunction_archive_template_email_file
(file_to_archive, archived_by_id, template_version=None)
app/dao/template_email_files_dao.py:157
↓ 2 callersMethod_build_address
(address_lines: list[str], last_line_key: Literal["postcode", "country"])
app/clients/letter/dvla.py:346
↓ 2 callersFunction_can_remove_gov_user_with_manage_settings
Returns False if removing a single user with a government email address and `manage_settings` permission would leave the service with too few
app/dao/users_dao.py:214
↓ 2 callersFunction_check_if_filename_unique_for_email_files_within_one_template
(filename, template_id, template_email_file_id=None)
app/template_email_files/rest.py:110
↓ 2 callersFunction_clean_database
(_db)
tests/conftest.py:160
↓ 2 callersFunction_content_count_greater_than_limit
(content, template_type)
app/template/rest.py:58
↓ 2 callersMethod_convert_notifications_to_csv
(self, serialized_notifications: list[dict[str, Any]])
app/report_requests/process_notifications_report.py:111
↓ 2 callersFunction_create_protected_sender_id
(sender_id)
app/functional_tests_fixtures/__init__.py:795
↓ 2 callersFunction_create_service
( org_id, user, service_name="Functional Tests", rate_limit=3000, sms_message_limit=1000,
app/functional_tests_fixtures/__init__.py:517
↓ 2 callersFunction_create_service_email_reply_to
(service_id, email_address, is_default)
app/functional_tests_fixtures/__init__.py:721
↓ 2 callersFunction_create_service_letter_contact
(service_id, contact_block, is_default)
app/functional_tests_fixtures/__init__.py:606
↓ 2 callersFunction_create_service_permissions
(service_id, permissions=None)
app/functional_tests_fixtures/__init__.py:737
↓ 2 callersFunction_delete_inbound_sms
(datetime_to_delete_from, query_filter)
app/dao/inbound_sms_dao.py:100
↓ 2 callersFunction_duplicate_update_warning
(notification, status)
app/dao/notifications_dao.py:1030
↓ 2 callersMethod_fetch_and_upload_notifications
(self)
app/report_requests/process_notifications_report.py:69
↓ 2 callersMethod_fetch_serialized_notifications
(self, limit_days: int, older_than: str | None)
app/report_requests/process_notifications_report.py:86
↓ 2 callersFunction_fetch_usage_for_service_email
(service_id, year, session=db.session)
app/dao/fact_billing_dao.py:385
↓ 2 callersFunction_fetch_usage_for_service_letter
(service_id, year, session=db.session)
app/dao/fact_billing_dao.py:405
↓ 2 callersFunction_fetch_usage_for_service_sms
Returns rows from the ft_billing table with some calculated values like cost, incorporating the SMS free allowance e.g. (
app/dao/fact_billing_dao.py:428
↓ 2 callersFunction_filter_query
(query, filter_dict=None)
app/dao/notifications_dao.py:371
↓ 2 callersMethod_finalize_upload
(self)
app/report_requests/process_notifications_report.py:171
↓ 2 callersMethod_generate_password
DVLA api password must be at least 8 characters in length and contain upper, lower, numerical and special characters. This f
app/clients/letter/dvla.py:226
↓ 2 callersMethod_generate_unsubscribe_link
(self, base_url)
app/models.py:1942
↓ 2 callersMethod_get_auth_headers
(self)
app/clients/letter/dvla.py:248
↓ 2 callersFunction_get_callback_url
(notification_id: UUID)
app/celery/provider_tasks.py:207
↓ 2 callersFunction_get_cases
(var, max_scale=7)
migrations/versions/0437_min_numeric_scl_aux_tbls.py:23
↓ 2 callersFunction_get_cost_threshold
(mailing_product: str, postage: str)
app/notifications/notifications_letter_callback.py:205
↓ 2 callersFunction_get_existing_default
(service_id)
app/dao/service_sms_sender_dao.py:87
↓ 2 callersFunction_get_existing_default
(service_id)
app/dao/service_letter_contact_dao.py:69
↓ 2 callersFunction_get_existing_default
(service_id)
app/dao/service_email_reply_to_dao.py:74
↓ 2 callersFunction_get_notification_ids_for_references
(references)
app/dao/returned_letters_dao.py:19
↓ 2 callersFunction_get_png_preview_or_overlaid_pdf
(url, data, notification_id, json=True)
app/template/rest.py:335
↓ 2 callersFunction_get_printing_day
(created_at)
app/dao/uploads_dao.py:17
↓ 2 callersMethod_get_upload_url
When uploading a document we use the internal route to document-download-api. This internal URL can only be accessed from other apps,
app/clients/document_download.py:33
↓ 2 callersMethod_initialize_csv
(self)
app/report_requests/process_notifications_report.py:50
↓ 2 callersFunction_move_invalid_letter_and_update_status
( *, notification, filename, scan_pdf_object, message=None, invalid_pages=None, page_count=None )
app/celery/letters_pdf_tasks.py:439
↓ 2 callersFunction_process_for_status
( notification_status, client_name, provider_reference, delivery_dt: datetime | None, rece
app/celery/process_sms_client_response_tasks.py:119
↓ 2 callersFunction_qr_code_too_long
(subject: str, content: str)
app/template/rest.py:65
↓ 2 callersFunction_remove_csv_files
(job_types)
app/celery/nightly_tasks.py:78
↓ 2 callersFunction_reset_old_default_to_false
(old_default)
app/dao/service_sms_sender_dao.py:101
↓ 2 callersFunction_reset_old_default_to_false
(old_default)
app/dao/service_letter_contact_dao.py:84
↓ 2 callersFunction_reset_old_default_to_false
(old_default)
app/dao/service_email_reply_to_dao.py:88
↓ 2 callersFunction_send_notification
(template_id, recipient, personalisation)
app/organisation/rest.py:413
↓ 2 callersFunction_ses_bounce_callback
(reference, bounce_type)
app/celery/research_mode_tasks.py:289
↓ 2 callersFunction_set_up_test_data
(notification_type, callback_type)
tests/app/celery/test_service_callback_tasks.py:44
↓ 2 callersFunction_setup_jobs
(template, number_of_jobs=5)
tests/app/job/test_rest.py:551
↓ 2 callersFunction_shatter_job_rows_with_subdivision
( template_type, args_kwargs_seq, message_group_id, top_level=True, has_files=False )
app/celery/tasks.py:130
↓ 2 callersMethod_start_multipart_upload
(self)
app/report_requests/process_notifications_report.py:65
↓ 2 callersFunction_update_provider_details_without_commit
Doesn't commit, for when you need to control the database transaction manually
app/dao/provider_details_dao.py:157
↓ 2 callersMethod_upload_csv_part_if_needed
(self)
app/report_requests/process_notifications_report.py:131
↓ 2 callersFunction_upload_env_to_ssm
(ssm_upload_path, env_config, description)
app/functional_tests_fixtures/__init__.py:80
↓ 2 callersMethod_upload_remaining_data
(self)
app/report_requests/process_notifications_report.py:142
↓ 2 callersFunction_validate_positive_number
(value, msg="Not a positive integer")
app/schemas.py:31
↓ 2 callersFunctionarchive_unsubscribe_requests_from_query
(query)
app/dao/unsubscribe_request_dao.py:167
↓ 2 callersFunctionboolean_or_none
(field)
app/commands.py:551
↓ 2 callersMethodcached_with_custom_ttl
(cls, *args, **kwargs)
tests/app/test_serialised_models.py:149
↓ 2 callersMethodcheck_code
(self, cde)
app/models.py:1488
↓ 2 callersFunctioncheck_for_low_available_inbound_sms_numbers
(self)
app/celery/scheduled_tasks.py:657
↓ 2 callersFunctioncheck_hash
(password, hashed_password)
app/hashing.py:8
↓ 2 callersFunctioncheck_if_letters_still_in_created
()
app/celery/scheduled_tasks.py:405
↓ 2 callersFunctioncheck_if_letters_still_pending_virus_check
(max_minutes_ago_to_check: int = 30)
app/celery/scheduled_tasks.py:354
↓ 2 callersFunctioncheck_if_reply_to_address_already_in_use
(service_id, email_address)
app/service/rest.py:1101
↓ 2 callersFunctioncheck_time_to_collate_letters
Check whether we need to start collating letters and sending them to DVLA for processing. This task is scheduled via celery-beat to run at 16:50
app/celery/letters_pdf_tasks.py:175
↓ 2 callersFunctioncount_user_verify_codes
(user)
app/dao/users_dao.py:116
↓ 2 callersFunctioncreate_10_jobs
(template)
tests/app/job/test_rest.py:916
↓ 2 callersFunctioncreate_2fa_code
(template_id, user_to_send_to, secret_code, recipient, personalisation)
app/user/rest.py:341
↓ 2 callersFunctioncreate_empty_monthly_notification_status_stats_dict
(year)
app/service/statistics.py:97
↓ 2 callersFunctioncreate_history
(obj, history_cls=None)
app/history_meta.py:106
↓ 2 callersFunctioncreate_internal_authorization_header
(client_id)
tests/__init__.py:39
↓ 2 callersFunctioncreate_invited_org_user
(organisation, invited_by, email_address="invite@example.com")
tests/app/db.py:706
↓ 2 callersFunctioncreate_mock_firetext_client
(mock_config)
tests/app/conftest.py:657
↓ 2 callersFunctioncreate_mock_firetext_config
(mocker, additional_config=None)
tests/app/conftest.py:645
↓ 2 callersFunctioncreate_nightly_notification_status
Aggregate notification statuses into rows in ft_notification_status. In order to minimise effort, this task assumes that: - Email + SM
app/celery/reporting_tasks.py:130
↓ 2 callersFunctioncreate_one_off_reference
(template_type)
app/service/send_notification.py:46
↓ 2 callersFunctioncreate_response_for_post_notification
( notification_id, client_reference, template_id, template_version, service_id, notifi
app/v2/notifications/post_notifications.py:494
↓ 2 callersFunctioncreate_returned_letter_callback_data
(notification_id, service_id, service_callback_api)
app/celery/service_callback_tasks.py:243
↓ 2 callersFunctioncreate_stats_dict
()
app/service/statistics.py:38
↓ 2 callersFunctioncreate_unsubscribe_request_reports_dao
(unsubscribe_request_report)
app/dao/unsubscribe_request_dao.py:117
↓ 2 callersFunctioncreate_zeroed_stats_dicts
()
app/service/statistics.py:75
↓ 2 callersFunctiondao_archive_organisation
(organisation_id)
app/dao/organisation_dao.py:160
↓ 2 callersFunctiondao_archive_service
(service_id)
app/dao/services_dao.py:232
↓ 2 callersFunctiondao_cancel_letter_job
(job)
app/dao/jobs_dao.py:210
↓ 2 callersFunctiondao_create_email_branding
(email_branding)
app/dao/email_branding_dao.py:35
↓ 2 callersFunctiondao_create_event
(event)
app/dao/events_dao.py:4
↓ 2 callersFunctiondao_create_letter_branding
(letter_branding)
app/dao/letter_branding_dao.py:36
↓ 2 callersFunctiondao_create_pending_template_email_file
(template_email_file: TemplateEmailFile)
app/dao/template_email_files_dao.py:16
↓ 2 callersFunctiondao_create_template_email_file
(template_email_file: TemplateEmailFile)
app/dao/template_email_files_dao.py:27
↓ 2 callersFunctiondao_delete_template_folder
(template_folder)
app/dao/template_folder_dao.py:27
↓ 2 callersFunctiondao_fetch_active_users_for_service
(service_id)
app/dao/services_dao.py:494
↓ 2 callersFunctiondao_fetch_live_services_data
(session: Session | scoped_session = db.session)
app/dao/services_dao.py:101
↓ 2 callersFunctiondao_find_services_sending_to_tv_numbers
( start_date: datetime, end_date: datetime, threshold: int = 500, session: Session | scoped_session = db.s
app/dao/services_dao.py:501
↓ 2 callersFunctiondao_find_services_with_high_failure_rates
( start_date: datetime, end_date: datetime, threshold: int = 10000, session: Session | scoped_session = db
app/dao/services_dao.py:527
↓ 2 callersFunctiondao_get_active_report_request_by_id
(service_id: UUID, report_id: UUID)
app/dao/report_requests_dao.py:27
↓ 2 callersFunctiondao_get_contact_list_by_id
(service_id, contact_list_id)
app/dao/service_contact_list_dao.py:5
← previousnext →501–600 of 5,336, ranked by callers