MCPcopy Create free account

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

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

↓ 5 callersFunctionpagination_links
(pagination: Pagination, endpoint: str, **kwargs)
app/utils.py:41
↓ 5 callersFunctionparse_and_format_phone_number
(number: str, with_country_code=True)
app/utils.py:216
↓ 5 callersMethodprocess
(self)
app/report_requests/process_notifications_report.py:38
↓ 5 callersFunctionsend_notification_to_service_users
(service_id, template_id, personalisation=None, include_user_fields=None)
app/service/sender.py:17
↓ 5 callersMethodserialize_for_v2
(self)
app/models.py:1193
↓ 5 callersMethodset_user_service_permission
(self, user, service, permissions, _commit=False, replace=False)
app/dao/permissions_dao.py:45
↓ 5 callersFunctionvalidate_template
( *, template_id, personalisation, service, notification_type, check_char_count=True, recipient=None )
app/notifications/validators.py:245
↓ 5 callersFunctionzendesk_new_email_branding_report
()
app/celery/scheduled_tasks.py:591
↓ 4 callersMethod_as_utils_template
(self)
app/models.py:1177
↓ 4 callersMethod_as_utils_template_with_personalisation
(self, values)
app/models.py:1188
↓ 4 callersFunction_create_sms_template
(service, user_id, name, content, alt_names=frozenset())
app/functional_tests_fixtures/__init__.py:645
↓ 4 callersFunction_get_sms_providers_for_update
Returns a list of providers, while holding a for_update lock on the provider details table, guaranteeing that those providers won't change (b
app/dao/provider_details_dao.py:65
↓ 4 callersFunction_get_token_issuer
(auth_token)
app/authentication/auth.py:186
↓ 4 callersFunction_handle_common_dvla_errors
(custom_httperror_exc_handler: Callable[[requests.HTTPError], None] = lambda x: None)
app/clients/letter/dvla.py:47
↓ 4 callersFunction_populate_notification_history
(sample_template, sample_job)
tests/app/celery/test_nightly_tasks.py:946
↓ 4 callersFunction_update_organisation_services
(organisation, attribute, only_where_none=True)
app/dao/organisation_dao.py:147
↓ 4 callersFunctionapply_fixtures
()
app/functional_tests_fixtures/__init__.py:118
↓ 4 callersFunctionarchive_reply_to_email_address
(service_id, reply_to_id)
app/dao/service_email_reply_to_dao.py:62
↓ 4 callersFunctionchange_dvla_api_key
(self)
app/celery/scheduled_tasks.py:796
↓ 4 callersFunctionchange_dvla_password
(self)
app/celery/scheduled_tasks.py:784
↓ 4 callersFunctioncheck_service_over_api_rate_limit
(service, key_type)
app/notifications/validators.py:50
↓ 4 callersFunctioncreate_precompiled_template
(service)
tests/app/upload/test_rest.py:28
↓ 4 callersFunctioncreate_report_request
( user_id, service_id, report_type="notifications", status="pending", notification_type="e
tests/app/db.py:1324
↓ 4 callersFunctioncreate_unsubscribe_request_dao
(unsubscribe_data)
app/dao/unsubscribe_request_dao.py:20
↓ 4 callersFunctiondao_adjust_provider_priority_back_to_resting_points
Provided that neither SMS provider has been modified in the last 15 minutes, move both providers by 10 percentage points each towards their d
app/dao/provider_details_dao.py:120
↓ 4 callersFunctiondao_allocate_number_for_service
(service_id, inbound_number_id)
app/dao/inbound_numbers_dao.py:44
↓ 4 callersFunctiondao_cancel_pending_service_join_requests
(requester_id: UUID, approver_id: UUID, service_id: UUID)
app/dao/service_join_requests_dao.py:74
↓ 4 callersFunctiondao_create_organisation
(organisation)
app/dao/organisation_dao.py:77
↓ 4 callersFunctiondao_delete_notifications_by_id
(notification_id)
app/dao/notifications_dao.py:574
↓ 4 callersFunctiondao_get_default_annual_allowance_for_service
(service, year_start)
app/dao/annual_billing_dao.py:55
↓ 4 callersFunctiondao_get_email_branding_pool_for_organisation
(organisation_id)
app/dao/organisation_dao.py:242
↓ 4 callersFunctiondao_get_job_by_service_id_and_job_id
(service_id, job_id)
app/dao/jobs_dao.py:58
↓ 4 callersFunctiondao_get_jobs_older_than_data_retention
(notification_types)
app/dao/jobs_dao.py:168
↓ 4 callersFunctiondao_get_last_notification_added_for_job_id
(job_id)
app/dao/notifications_dao.py:827
↓ 4 callersFunctiondao_get_notification_or_history_by_reference
(reference)
app/dao/notifications_dao.py:795
↓ 4 callersFunctiondao_get_service_join_request_by_id_and_service_id
(*, request_id: UUID, service_id: UUID)
app/dao/service_join_requests_dao.py:42
↓ 4 callersFunctiondao_remove_letter_branding_from_organisation_pool
(organisation_id, letter_branding_id)
app/dao/organisation_dao.py:299
↓ 4 callersFunctiondao_timeout_notifications
Set email and SMS notifications (only) to "temporary-failure" status if they're still sending from before the specified cutoff_time.
app/dao/notifications_dao.py:578
↓ 4 callersFunctiondao_update_report_request
(report_request: ReportRequest)
app/dao/report_requests_dao.py:76
↓ 4 callersFunctiondelete_billing_data_for_day
Delete all ft_billing data for the given bst_date if no service_ids are provided. If service_ids are provided, only the data for specific ser
app/dao/fact_billing_dao.py:512
↓ 4 callersFunctiondelete_inbound_sms_older_than_retention
()
app/dao/inbound_sms_dao.py:123
↓ 4 callersFunctiondelete_service_and_all_associated_db_objects
To be used with functional test services only! This irrevocably deletes data, use with extreme caution!
app/dao/services_dao.py:363
↓ 4 callersFunctiondummy_function
(foo, bar=123, session=mock_default_session)
tests/app/test_utils.py:148
↓ 4 callersFunctionfetch_notification_status_for_service_for_today_and_7_previous_days
( service_id, by_template=False, limit_days=7, chunk_timedelta=timedelta(minutes=30), inne
app/dao/fact_notification_status_dao.py:280
↓ 4 callersFunctionfetch_returned_letters
(service_id, report_date)
app/dao/returned_letters_dao.py:92
↓ 4 callersFunctionfetch_service_data_retention
(service_id)
app/dao/service_data_retention_dao.py:14
↓ 4 callersFunctionfetch_service_data_retention_by_id
(service_id, data_retention_id)
app/dao/service_data_retention_dao.py:9
↓ 4 callersFunctionfetch_usage_for_service_by_month
Returns a row for each distinct rate, notification_type, postage and month from ft_billing over the specified financial year e.g. (
app/dao/fact_billing_dao.py:320
↓ 4 callersFunctionfind_missing_row_for_job
(job_id, job_size)
app/dao/jobs_dao.py:287
↓ 4 callersMethodfrom_json
Assumption: data has been validated appropriately. Returns a Service object based on the provided data. Deserialises created_by to c
app/models.py:669
↓ 4 callersMethodfrom_service_id
(cls, service_id)
app/serialised_models.py:163
↓ 4 callersFunctionget_alternative_sms_provider
(identifier)
app/dao/provider_details_dao.py:26
↓ 4 callersFunctionget_april_fools
This function converts the start of the financial year April 1, 00:00 as BST (British Standard Time) to UTC, the tzinfo is lastly removed fro
app/dao/date_util.py:36
↓ 4 callersFunctionget_archived_db_column_value
(column)
app/utils.py:158
↓ 4 callersFunctionget_billable_units_for_letter_page_count
(page_count)
app/letters/utils.py:256
↓ 4 callersFunctionget_financial_year_for_datetime
(start_date)
app/dao/date_util.py:69
↓ 4 callersFunctionget_firetext_responses
(status, detailed_status_code=None)
app/clients/sms/firetext.py:34
↓ 4 callersFunctionget_invited_user_by_service_and_id
(service_id, invited_user_id)
app/dao/invited_user_dao.py:12
↓ 4 callersFunctionget_job_location
(service_id, job_id)
app/aws/s3.py:24
↓ 4 callersMethodget_link
(self)
app/models.py:1236
↓ 4 callersFunctionget_mmg_responses
(status, detailed_status_code=None)
app/clients/sms/mmg.py:60
↓ 4 callersFunctionget_possibly_cached_notification_outcomes_for_job
( job_id: uuid.UUID | str, notification_count: int | None, processing_started: datetime | None )
app/dao/jobs_dao.py:304
↓ 4 callersFunctionget_service_ids_with_notifications_on_date
( notification_type: str, process_day: date, session: Session | scoped_session = db.session )
app/dao/notifications_dao.py:1064
↓ 4 callersFunctionget_services_by_partial_name
(service_name)
app/dao/services_dao.py:87
↓ 4 callersFunctionis_gov_user
(email_address, organisation_domains)
app/dao/users_dao.py:333
↓ 4 callersFunctionletter_print_day
(created_at)
app/letters/utils.py:239
↓ 4 callersFunctionmake_invitation
(user, service, age=None, email_address="test@test.com")
tests/app/dao/test_invited_user_dao.py:133
↓ 4 callersFunctionmmg_callback
status: 3 - delivered status: 4 - expired (temp failure) status: 5 - rejected (perm failure)
app/celery/research_mode_tasks.py:168
↓ 4 callersFunctionmove_failed_pdf
(source_filename, scan_error_type)
app/letters/utils.py:139
↓ 4 callersFunctionpopulate_annual_billing
Add or update annual billing with free allowance defaults for all active services. The default free allowances are stored in the DB in a tabl
app/celery/scheduled_tasks.py:807
↓ 4 callersFunctionprocess_incomplete_jobs
(job_ids, shatter_batch_size=DEFAULT_SHATTER_JOB_ROWS_BATCH_SIZE)
app/celery/tasks.py:573
↓ 4 callersFunctionprocess_job_row
(template_type, task_args_kwargs, has_files=False, message_group_id=None)
app/celery/tasks.py:182
↓ 4 callersFunctionprocess_returned_letters_list
(notification_references)
app/celery/tasks.py:624
↓ 4 callersFunctionrequires_internal_auth
(expected_client_id)
app/authentication/auth.py:65
↓ 4 callersFunctionsanitise_letter
(self, filename)
app/celery/letters_pdf_tasks.py:274
↓ 4 callersFunctionsend_sms_response
(provider, reference, to)
app/celery/research_mode_tasks.py:35
↓ 4 callersMethodserialize
(self)
app/models.py:913
↓ 4 callersFunctionsuccessful_task
()
tests/app/test_cronitor.py:29
↓ 4 callersFunctionupdate_existing_sms_sender_with_inbound_number
(service_sms_sender, sms_sender, inbound_number_id)
app/dao/service_sms_sender_dao.py:65
↓ 4 callersFunctionupdate_ft_billing
(billing_data: list, process_day: date)
app/dao/fact_billing_dao.py:732
↓ 4 callersFunctionupdate_ft_billing_letter_despatch
(process_day: date)
app/dao/fact_billing_dao.py:791
↓ 4 callersFunctionupdate_letter_contact
(service_id, letter_contact_id, contact_block, is_default)
app/dao/service_letter_contact_dao.py:44
↓ 4 callersFunctionupdate_letter_pdf_status
(reference, status, billable_units, recipient_address=None)
app/celery/letters_pdf_tasks.py:497
↓ 4 callersFunctionupdate_notification_to_sending
(notification, provider)
app/delivery/send_to_providers.py:206
↓ 4 callersFunctionupdate_reply_to_email_address
(service_id, reply_to_id, email_address, is_default)
app/dao/service_email_reply_to_dao.py:46
↓ 4 callersFunctionupdate_report_requests_status_to_deleted
()
app/dao/report_requests_dao.py:81
↓ 4 callersFunctionupdate_service_data_retention
(service_data_retention_id, service_id, days_of_retention)
app/dao/service_data_retention_dao.py:44
↓ 4 callersFunctionvalidate_address
(service, letter_data)
app/notifications/validators.py:299
↓ 3 callersFunction__create_notification_response
( notification_id, client_reference, template_id, template_version, service_id, url_root )
app/v2/notifications/create_response.py:45
↓ 3 callersFunction_check_and_queue_returned_letter_callback_task
(notification_id, service_id)
app/celery/tasks.py:659
↓ 3 callersFunction_check_slow_text_message_delivery_reports_and_raise_error_if_needed
(reports: list[SlowProviderDeliveryReport])
app/celery/scheduled_tasks.py:200
↓ 3 callersFunction_create_db_objects
( functional_test_password, request_bin_api_token, environment, test_email_username, email
app/functional_tests_fixtures/__init__.py:168
↓ 3 callersFunction_create_letter_template
(service, user_id, name, subject, content, letter_contact_id=None, alt_names=frozenset())
app/functional_tests_fixtures/__init__.py:673
↓ 3 callersFunction_create_service_sms_senders
(service_id, sms_sender, is_default, inbound_number_id)
app/functional_tests_fixtures/__init__.py:753
↓ 3 callersFunction_cronitor_url
(key, command)
tests/app/test_cronitor.py:10
↓ 3 callersFunction_get_notification
(client, notification, url)
tests/app/public_contracts/test_GET_notification.py:13
↓ 3 callersFunction_set_up_test_data_for_returned_letter_callback
(template)
tests/app/celery/test_service_callback_tasks.py:91
↓ 3 callersFunction_update_template
(template, name=None, subject=None, content=None, letter_contact_id=None)
app/functional_tests_fixtures/__init__.py:705
↓ 3 callersMethod_upload_part
(self, data_bytes: bytes)
app/report_requests/process_notifications_report.py:147
↓ 3 callersFunctionadd_email_file_links_to_personalisation
(template, personalisation, recipient)
app/notifications/process_notifications.py:99
← previousnext →301–400 of 5,336, ranked by callers