MCPcopy Create free account

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

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

↓ 2 callersFunctiondao_get_contact_lists
(service_id)
app/dao/service_contact_list_dao.py:15
↓ 2 callersFunctiondao_get_email_branding_by_name
(email_branding_name)
app/dao/email_branding_dao.py:26
↓ 2 callersFunctiondao_get_email_branding_by_name_case_insensitive
(email_branding_name)
app/dao/email_branding_dao.py:30
↓ 2 callersFunctiondao_get_email_branding_options
()
app/dao/email_branding_dao.py:18
↓ 2 callersFunctiondao_get_existing_alternate_email_branding_for_name
Returns any email branding with name of format `{name} (alternate {x})` where name is the provided name and x is an integer starting at 1
app/dao/email_branding_dao.py:7
↓ 2 callersFunctiondao_get_existing_alternate_letter_branding_for_name
Returns any letter branding with name of format `{name} (alternate {x})` where name is the provided name and x is an integer starting at 1
app/dao/letter_branding_dao.py:6
↓ 2 callersFunctiondao_get_inbound_number
(inbound_number_id)
app/dao/inbound_numbers_dao.py:25
↓ 2 callersFunctiondao_get_inbound_numbers
(session: Session | scoped_session = db.session)
app/dao/inbound_numbers_dao.py:13
↓ 2 callersFunctiondao_get_letter_branding_by_name_case_insensitive
(letter_branding_name)
app/dao/letter_branding_dao.py:27
↓ 2 callersFunctiondao_get_letter_branding_pool_for_organisation
(organisation_id)
app/dao/organisation_dao.py:280
↓ 2 callersFunctiondao_get_letters_and_sheets_volume_by_postage
(print_run_deadline_local)
app/dao/notifications_dao.py:911
↓ 2 callersFunctiondao_get_letters_to_be_printed
Return all letters created before the print run deadline that have not yet been sent. This yields in batches of 10k to prevent the query taki
app/dao/notifications_dao.py:881
↓ 2 callersFunctiondao_get_notifications_processing_time_stats
For a given time range, returns the number of notifications sent and the number of those notifications that we processed within 10 seconds
app/dao/notifications_dao.py:805
↓ 2 callersFunctiondao_get_organisations
()
app/dao/organisation_dao.py:24
↓ 2 callersFunctiondao_get_organisations_by_partial_name
(organisation_name)
app/dao/organisation_dao.py:65
↓ 2 callersFunctiondao_get_orgs_and_services_associated_with_letter_branding
(letter_branding_id)
app/dao/letter_branding_dao.py:49
↓ 2 callersFunctiondao_get_provider_stats
()
app/dao/provider_details_dao.py:168
↓ 2 callersFunctiondao_get_scheduled_job_stats
( service_id, session: Session | scoped_session = db.session, )
app/dao/jobs_dao.py:90
↓ 2 callersFunctiondao_get_sms_rate_for_timestamp
(a_datetime)
app/dao/sms_rate_dao.py:12
↓ 2 callersFunctiondao_letters_in_technical_failure
(session: Session | scoped_session = db.session)
app/dao/notifications_dao.py:949
↓ 2 callersFunctiondao_remove_inbound_sms_senders
(service_id: UUID, commit=True)
app/dao/service_sms_sender_dao.py:113
↓ 2 callersFunctiondao_update_email_branding
(email_branding, **kwargs)
app/dao/email_branding_dao.py:40
↓ 2 callersFunctiondao_update_letter_branding
(letter_branding_id, **kwargs)
app/dao/letter_branding_dao.py:41
↓ 2 callersFunctiondao_update_template_folder
(template_folder)
app/dao/template_folder_dao.py:22
↓ 2 callersFunctiondelete_notifications_for_service_and_type
(self, service_id, notification_type, datetime_to_delete_before)
app/celery/nightly_tasks.py:289
↓ 2 callersFunctiondelete_test_notifications_for_service_and_type
(service_id, notification_type, datetime_to_delete_before)
app/celery/nightly_tasks.py:333
↓ 2 callersFunctiondelete_user_verify_codes
(user)
app/dao/users_dao.py:111
↓ 2 callersFunctiondetermine_new_status
(dvla_status)
app/celery/process_letter_client_response_tasks.py:73
↓ 2 callersFunctionfetch_daily_volumes_for_platform
(start_date, end_date, session: Session | scoped_session = db.session)
app/dao/fact_billing_dao.py:1062
↓ 2 callersFunctionfetch_dvla_billing_facts
( start_date, end_date, session: Session | scoped_session = db.session, )
app/dao/fact_billing_dao.py:1309
↓ 2 callersFunctionfetch_monthly_notification_statuses_per_service
( start_date, end_date, session: Session | scoped_session = db.session )
app/dao/fact_notification_status_dao.py:637
↓ 2 callersFunctionfetch_most_recent_returned_letter
(service_id)
app/dao/returned_letters_dao.py:65
↓ 2 callersFunctionfetch_notification_status_for_service_by_month
( start_date, end_date, service_id, session: Session | scoped_session = db.session )
app/dao/fact_notification_status_dao.py:164
↓ 2 callersFunctionfetch_notification_status_for_service_for_day
(bst_day, service_id, session: Session | scoped_session = db.session)
app/dao/fact_notification_status_dao.py:190
↓ 2 callersFunctionfetch_notification_statuses_for_job
(job_id)
app/dao/fact_notification_status_dao.py:414
↓ 2 callersFunctionfetch_potential_service
(inbound_number, provider_name)
app/notifications/receive_notifications.py:176
↓ 2 callersFunctionfetch_recent_returned_letter_count
(service_id)
app/dao/returned_letters_dao.py:52
↓ 2 callersFunctionfetch_returned_letter_callback_data_dao
(notification_id, service_id)
app/dao/returned_letters_dao.py:145
↓ 2 callersFunctionfetch_service_data_retention_for_all_services_by_notification_type
(notification_type, session=db.session)
app/dao/service_data_retention_dao.py:52
↓ 2 callersFunctionfetch_stats_for_all_services_by_date_range
(start_date, end_date, include_from_test_key=True)
app/dao/fact_notification_status_dao.py:428
↓ 2 callersFunctionfetch_usage_for_all_services_letter
(start_date, end_date, session: Session | scoped_session = db.session)
app/dao/fact_billing_dao.py:191
↓ 2 callersFunctionfetch_usage_for_all_services_letter_breakdown
(start_date, end_date, session: Session | scoped_session = db.session)
app/dao/fact_billing_dao.py:226
↓ 2 callersMethodfoo
(cls)
tests/app/test_serialised_models.py:166
↓ 2 callersFunctiongenerate_fact_notification_status_rows
( process_day: date, notification_type: str, service_id: UUID | str, chunk_timedelta: timedelt
app/dao/fact_notification_status_dao.py:84
↓ 2 callersMethodget_client_by_name_and_type
(self, name, notification_type)
app/clients/__init__.py:37
↓ 2 callersMethodget_created_by_name
(self)
app/models.py:1753
↓ 2 callersFunctionget_db_version
(session=db.session, raise_db_exception=True)
app/status/healthcheck.py:41
↓ 2 callersMethodget_default_letter_contact
(self)
app/models.py:695
↓ 2 callersFunctionget_delivery_status_callback_api_for_service
(service_id)
app/dao/service_callback_api_dao.py:39
↓ 2 callersFunctionget_invited_org_user_by_id
(invited_org_user_id)
app/dao/invited_org_user_dao.py:16
↓ 2 callersFunctionget_invited_org_users_for_organisation
(organisation_id)
app/dao/invited_org_user_dao.py:20
↓ 2 callersFunctionget_live_services_with_organisation
()
app/dao/services_dao.py:576
↓ 2 callersFunctionget_month_start_and_end_date_in_utc
This function return the start and date of the month_year as UTC, :param month_year: the datetime to calculate the start and end date for tha
app/dao/date_util.py:46
↓ 2 callersFunctionget_months_for_year
(start, end, year)
app/dao/date_util.py:14
↓ 2 callersFunctionget_notifications_for_job
( service_id, job_id, filter_dict=None, page=1, page_size=None, session: Session | sco
app/dao/notifications_dao.py:247
↓ 2 callersFunctionget_organisation_live_services_and_their_free_allowance
( organisation_id, financial_year, session: Session | scoped_session = db.session, )
app/dao/fact_billing_dao.py:1285
↓ 2 callersFunctionget_prev_next_pagination_links
( current_page: int, next_page_exists: bool, endpoint: str, **kwargs )
app/utils.py:55
↓ 2 callersFunctionget_provider_details_by_id
(provider_details_id)
app/dao/provider_details_dao.py:18
↓ 2 callersFunctionget_recipients_from_request
(request_json, key, type)
app/service/utils.py:16
↓ 2 callersFunctionget_returned_letter_callback_api_for_service
(service_id)
app/dao/service_callback_api_dao.py:45
↓ 2 callersFunctionget_service_callback_api_by_callback_type
(service_id, callback_type)
app/dao/service_callback_api_dao.py:35
↓ 2 callersFunctionget_service_ids_with_notifications_before
(notification_type, timestamp, session=db.session)
app/dao/notifications_dao.py:1054
↓ 2 callersFunctionget_service_statistics
(service_id, today_only, limit_days=7)
app/service/rest.py:731
↓ 2 callersFunctionget_slow_text_message_delivery_reports_by_provider
Returns a dict of providers with the ratio of their messages sent in the last `created_within_minutes` minutes that took over `delivered_
app/dao/notifications_dao.py:640
↓ 2 callersMethodget_sms_client
(self, name)
app/clients/__init__.py:31
↓ 2 callersFunctionget_sms_fragments_sent_last_financial_year
(service_id: str)
app/dao/fact_billing_dao.py:1269
↓ 2 callersFunctionget_unsigned_secret
This method can only be exposed to the Authentication of the api calls.
app/dao/api_key_dao.py:45
↓ 2 callersFunctionget_unsigned_secrets
This method can only be exposed to the Authentication of the api calls.
app/dao/api_key_dao.py:36
↓ 2 callersMethodget_unsubscribe_link_for_headers
Generates a URL on the API domain, which accepts a POST request from an email client
app/models.py:1949
↓ 2 callersFunctionget_unsubscribe_request_reports_dao
(service_id)
app/dao/unsubscribe_request_dao.py:69
↓ 2 callersMethodget_upload_url_for_simulated_email
This is the URL displayed in the API response for emails sent to a simulated email address.
app/clients/document_download.py:27
↓ 2 callersFunctionget_users_for_research
Returns active users who have consented to take part in user research and who were created on or after the start but before the end date.
app/dao/users_dao.py:268
↓ 2 callersFunctionget_values
(permission)
migrations/versions/0095_migrate_existing_svc_perms.py:20
↓ 2 callersFunctionget_values_if_flag
(permission, flag)
migrations/versions/0095_migrate_existing_svc_perms.py:27
↓ 2 callersFunctionhas_inbound_sms_permissions
(permissions)
app/notifications/receive_notifications.py:195
↓ 2 callersFunctionincrement_daily_limit_cache
(service_id, notification_type)
app/notifications/process_notifications.py:209
↓ 2 callersFunctioninit_app
(app)
app/__init__.py:406
↓ 2 callersFunctioninit_performance_monitoring
()
app/performance.py:14
↓ 2 callersFunctionis_duplicate_unsubscribe_request
A duplicate unsubscribe request is being defined as an unsubscribe_request that has the same notification_id of a previously received unsubsc
app/one_click_unsubscribe/rest.py:98
↓ 2 callersFunctionjob_complete
(job, resumed=False, start=None)
app/celery/tasks.py:203
↓ 2 callersFunctionlog_archive_unsubscribe_requests
(start, service_id, count_deleted)
app/celery/nightly_tasks.py:182
↓ 2 callersFunctionmake_request
(notification_type, provider, data, headers)
app/celery/research_mode_tasks.py:149
↓ 2 callersFunctionmove_error_pdf_to_scan_bucket
(source_filename)
app/letters/utils.py:147
↓ 2 callersFunctionnot_a_classmethod
(*args)
tests/app/test_serialised_models.py:199
↓ 2 callersMethodnot_a_classmethod
(self, *args)
tests/app/test_serialised_models.py:212
↓ 2 callersFunctionparse_token
(token)
app/notifications/notifications_letter_callback.py:142
↓ 2 callersFunctionping_cronitor
(command)
app/cronitor.py:9
↓ 2 callersMethodpredefined_queues
(prefix, aws_region, aws_account_id)
app/config.py:72
↓ 2 callersFunctionprocess_letter_notification
( *, letter_data, api_key, service, template, template_with_content, reply_to_text, precompiled=False )
app/v2/notifications/post_notifications.py:354
↓ 2 callersFunctionprovider_to_use
(notification_type, international=False)
app/delivery/send_to_providers.py:214
↓ 2 callersFunctionpunycode_encode_email
(email_address)
app/clients/email/aws_ses.py:126
↓ 2 callersFunctionraise_alert_if_letter_notifications_still_sending
()
app/celery/nightly_tasks.py:392
↓ 2 callersFunctionrebuild_ft_data
(process_day: date, service_ids=None)
app/commands.py:324
↓ 2 callersFunctionrecord_deliver_duration
Records samples with the given duration and attributes for histogram metrics `notification.callback.duration` and `notification.deliver.durat
app/otel_metrics/notification.py:116
↓ 2 callersFunctionrecord_international_sms
Increments counter metric `notification.sms.internationals`, with the given attributes, by `amount`.
app/otel_metrics/notification.py:82
↓ 2 callersMethodrecord_outcome
(self, success)
app/clients/sms/__init__.py:47
↓ 2 callersFunctionrecord_send_duration
Records a sample with the given `duration` and attributes for histogram metric `notification.send.duration`, and captures the fully-qualified
app/otel_metrics/notification.py:96
↓ 2 callersFunctionrecord_service_callback_forward_duration
( duration: float, callback_type: str, attempt: int, notification_type: str | None = None, )
app/otel_metrics/service_callback.py:32
↓ 2 callersFunctionremove_emails_from_bounce
(bounce_dict)
app/notifications/notifications_ses_callback.py:61
↓ 2 callersFunctionremove_emails_from_complaint
(complaint_dict)
app/notifications/notifications_ses_callback.py:67
← previousnext →601–700 of 5,336, ranked by callers