MCPcopy Create free account

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

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

↓ 1 callersFunctionformat_letter_rate
(number)
app/platform_stats/rest.py:264
↓ 1 callersFunctionformat_sequential_number
(sequential_number: int)
app/utils.py:187
↓ 1 callersFunctionformat_statistics
(statistics)
app/service/statistics.py:10
↓ 1 callersMethodfrom_exception
(cls, e: requests.RequestException, status_code: int | None = None)
app/clients/document_download.py:12
↓ 1 callersMethodfrom_notification_type
(cls, notification_type, international)
app/serialised_models.py:187
↓ 1 callersMethodfrom_original
(cls, original)
app/models.py:1415
↓ 1 callersFunctiongenerate_sms_delivery_stats
()
app/celery/scheduled_tasks.py:254
↓ 1 callersFunctionget_archived_db_column_value
(column, date)
migrations/versions/0379_update_archived_users.py:19
↓ 1 callersFunctionget_branch_points
(migrations)
scripts/fix_migrations.py:13
↓ 1 callersFunctionget_branches
(migrations, branch_point, heads)
scripts/fix_migrations.py:17
↓ 1 callersFunctionget_complaint_callback_api_for_service
(service_id)
app/dao/service_callback_api_dao.py:51
↓ 1 callersFunctionget_contact_list_location
(service_id, contact_list_id)
app/aws/s3.py:31
↓ 1 callersFunctionget_count_of_notifications_sent
( service_id, template_types, limit_days, session: Session | scoped_session = db.session, )
app/dao/fact_billing_dao.py:1250
↓ 1 callersMethodget_created_by_email_address
(self)
app/models.py:1759
↓ 1 callersFunctionget_current_db_version
()
scripts/check_if_new_migration.py:19
↓ 1 callersFunctionget_current_financial_year
()
app/dao/date_util.py:28
↓ 1 callersFunctionget_detailed_service
(service_id, today_only=False)
app/service/rest.py:724
↓ 1 callersMethodget_email_client
(self, name)
app/clients/__init__.py:34
↓ 1 callersFunctionget_error_message
(e)
app/schema_validation/__init__.py:169
↓ 1 callersFunctionget_file_names_from_error_bucket
()
app/letters/utils.py:195
↓ 1 callersFunctionget_ft_billing_data_for_today_updated_at
()
app/utils.py:191
↓ 1 callersFunctionget_guest_list_objects
(service_id, request_json)
app/service/utils.py:20
↓ 1 callersFunctionget_job_by_service_and_job_id
(service_id, job_id)
app/job/rest.py:51
↓ 1 callersFunctionget_job_metadata_from_s3
(service_id, job_id)
app/aws/s3.py:48
↓ 1 callersFunctionget_latest_db_migration_to_apply
()
scripts/check_if_new_migration.py:10
↓ 1 callersMethodget_letter_status
Return the notification_status, as we should present for letters. The distinction between created and sending is a bit more confusing
app/models.py:1734
↓ 1 callersFunctionget_letters_data_from_references
(notification_references)
app/commands.py:650
↓ 1 callersFunctionget_london_month_from_utc_column
Where queries need to count notifications by month it needs to be the month in BST (British Summer Time). The database stores all timesta
app/utils.py:113
↓ 1 callersFunctionget_message_status_and_reason_from_firetext_code
(detailed_status_code)
app/clients/sms/firetext.py:41
↓ 1 callersFunctionget_midnight_for_day_before
(date: date)
app/utils.py:108
↓ 1 callersFunctionget_months_for_financial_year
(year)
app/dao/date_util.py:6
↓ 1 callersFunctionget_new_rate
(sheet_count, post_class)
migrations/versions/0403_letter_rates_jan_2023.py:26
↓ 1 callersFunctionget_new_rate
(sheet_count, post_class)
migrations/versions/0366_letter_rates_2022.py:25
↓ 1 callersFunctionget_new_rate
(sheet_count, post_class)
migrations/versions/0341_new_letter_rates.py:25
↓ 1 callersFunctionget_non_repeating_random_digits
(length)
app/dao/users_dao.py:38
↓ 1 callersFunctionget_notification_history_by_id
(notification_history_id)
app/dao/notification_history_dao.py:4
↓ 1 callersFunctionget_notification_with_personalisation
(service_id, notification_id, key_type)
app/dao/notifications_dao.py:266
↓ 1 callersFunctionget_orgs_and_services
(user)
app/user/rest.py:621
↓ 1 callersFunctionget_page_count
(pdf)
app/letters/utils.py:252
↓ 1 callersFunctionget_paginated_jobs
( service_id, *, limit_days, statuses, page, contact_list_id, )
app/job/rest.py:213
↓ 1 callersFunctionget_paginated_uploads
(service_id, limit_days, page)
app/upload/rest.py:28
↓ 1 callersFunctionget_path
(e)
app/schema_validation/__init__.py:159
↓ 1 callersMethodget_permissions
(self)
app/models.py:2108
↓ 1 callersMethodget_permissions_by_user_id_and_service_id
(self, user_id, service_id)
app/dao/permissions_dao.py:65
↓ 1 callersFunctionget_reply_to_text
(notification_type, sender_id, service, template)
app/service/send_notification.py:122
↓ 1 callersFunctionget_reply_to_text
(notification_type, form, template)
app/v2/notifications/post_notifications.py:469
↓ 1 callersFunctionget_service_ids_with_unsubscribe_requests
()
app/dao/unsubscribe_request_dao.py:141
↓ 1 callersFunctionget_unbatched_unsubscribe_requests_dao
(service_id)
app/dao/unsubscribe_request_dao.py:108
↓ 1 callersMethodget_unsubscribe_link_for_body
Generates a URL on the admin domain, which serves a page telling the user they have been unsubscribed
app/models.py:1958
↓ 1 callersFunctionget_user_and_accounts
(user_id)
app/dao/users_dao.py:157
↓ 1 callersFunctionget_user_code
(user, code, code_type)
app/dao/users_dao.py:73
↓ 1 callersFunctionget_users_by_partial_email
(email)
app/dao/users_dao.py:131
↓ 1 callersMethodget_users_with_permission
(self)
app/models.py:1013
↓ 1 callersFunctionhandle_sql_error
(e, table_name)
app/service/callback_rest.py:80
↓ 1 callersFunctionincrement_daily_limit_caches
(service, notification, key_type)
app/notifications/process_notifications.py:199
↓ 1 callersFunctioninner_side_effect
()
tests/app/celery/test_nightly_tasks.py:997
↓ 1 callersFunctioninsert_service_sms_sender
This method is called from create_service which is wrapped in a transaction.
app/dao/service_sms_sender_dao.py:11
↓ 1 callersFunctioninsert_update_processing_time
This uses the Postgres upsert to avoid race conditions when two threads try and insert at the same row. The excluded object refers to values
app/dao/fact_processing_time_dao.py:12
↓ 1 callersFunctioninvited_org_user_url
(invited_org_user_id, invite_link_host=None)
app/organisation/invite_rest.py:105
↓ 1 callersFunctioninvited_user_url
(invited_user_id, invite_link_host=None)
app/service_invite/rest.py:86
↓ 1 callersFunctionis_classmethod
(method, cls: type)
app/utils.py:228
↓ 1 callersFunctionis_international_number
(phone_number)
app/notifications/validators.py:217
↓ 1 callersFunctionletters_missing_from_sending_bucket
( grace_period: timedelta, age_limit: timedelta = timedelta(days=7), chunk_timedelta: timedelta =
app/dao/notifications_dao.py:988
↓ 1 callersMethodload_sample_data
(self, request, model)
tests/app/platform_admin/test_rest.py:51
↓ 1 callersFunctionmain
(migrations_path)
scripts/fix_migrations.py:72
↓ 1 callersFunctionmake_cached
(func)
app/serialised_models.py:23
↓ 1 callersFunctionmerge_fields
recursively merges `merge_dct` into `dct`, allowing for the removal of fields by setting them to `None`
tests/app/conftest.py:1365
↓ 1 callersFunctionmove_scan_to_invalid_pdf_bucket
(source_filename, message=None, invalid_pages=None, page_count=None)
app/letters/utils.py:154
↓ 1 callersFunctionmove_uploaded_pdf_to_letters_bucket
(source_filename, upload_filename)
app/letters/utils.py:172
↓ 1 callersFunctionpost_notification
(notification_type)
app/v2/notifications/post_notifications.py:114
↓ 1 callersFunctionpostage_description
(postage)
app/platform_stats/rest.py:257
↓ 1 callersFunctionprocess_document_uploads
Returns modified personalisation dict and a count of document uploads. If there are no document uploads, returns a count of `None` rather tha
app/v2/notifications/post_notifications.py:305
↓ 1 callersFunctionprocess_precompiled_letter_notifications
(*, letter_data, api_key, service, template, reply_to_text)
app/v2/notifications/post_notifications.py:422
↓ 1 callersFunctionprocess_sms_or_email_notification
( *, form, notification_type, template, template_with_content, service, personalis
app/v2/notifications/post_notifications.py:223
↓ 1 callersFunctionprocess_virus_scan_error
(filename)
app/celery/letters_pdf_tasks.py:478
↓ 1 callersFunctionprocess_virus_scan_failed
(filename)
app/celery/letters_pdf_tasks.py:462
↓ 1 callersFunctionredact_template
(template, data)
app/template/rest.py:235
↓ 1 callersFunctionregister_blueprint
(application)
app/__init__.py:209
↓ 1 callersFunctionregister_errors
(blueprint: Blueprint)
app/errors.py:47
↓ 1 callersFunctionregister_v2_blueprints
(application)
app/__init__.py:378
↓ 1 callersFunctionremove_letter_csv_files
()
app/celery/nightly_tasks.py:74
↓ 1 callersMethodremove_user_organisation_permissions_by_user
(self, user: User)
app/dao/organisation_user_permissions_dao.py:14
↓ 1 callersMethodremove_user_service_permissions
(self, user, service)
app/dao/permissions_dao.py:37
↓ 1 callersMethodremove_user_service_permissions_for_all_services
(self, user)
app/dao/permissions_dao.py:41
↓ 1 callersFunctionrename_revision
(current_revision, new_base)
scripts/fix_migrations.py:32
↓ 1 callersFunctionreorder_revisions
(revisions, old_base, new_base)
scripts/fix_migrations.py:37
↓ 1 callersFunctionresanitise_letter_attachment
`service_id` is the service id for a PDF letter attachment/template. `attachment_id` is the attachment id for a PDF letter attachment which w
app/celery/letters_pdf_tasks.py:583
↓ 1 callersFunctionresanitise_pdf
`notification_id` is the notification id for a PDF letter which was either uploaded or sent using the API. This task calls the `recreate_pdf
app/celery/letters_pdf_tasks.py:550
↓ 1 callersFunctionreset_memos
Reset all memos registered in memo_resetters
app/__init__.py:201
↓ 1 callersFunctionretry_on_lock_error
( *, func: Callable, args: Iterable = [], kwargs: Mapping = {}, max_retries: int = 1,
migrations/env.py:124
↓ 1 callersFunctionrun
()
scripts/check_if_new_migration.py:41
↓ 1 callersFunctionrun_migrations_offline
Run migrations in 'offline' mode. This configures the context with just a URL and not an Engine, though an Engine is acceptable here as w
migrations/env.py:46
↓ 1 callersFunctionrun_populate_annual_billing
()
app/celery/scheduled_tasks.py:836
↓ 1 callersFunctionsave_complaint
(complaint)
app/dao/complaint_dao.py:13
↓ 1 callersFunctionsave_service_contact_list
(service_contact_list)
app/dao/service_contact_list_dao.py:23
↓ 1 callersFunctionsearch_for_notification_by_to_field
(service_id, search_term, statuses, notification_type)
app/service/rest.py:645
↓ 1 callersFunctionsend_complaint_to_service
(self, complaint_data)
app/celery/service_callback_tasks.py:100
↓ 1 callersFunctionsend_delivery_status_to_service
( self, notification_id, encoded_status_update, *, receipt_iso_timestamp: str | None = None )
app/celery/service_callback_tasks.py:60
↓ 1 callersFunctionsend_go_live_request_receipt_to_requester
( organisation, service, template, approver_users, )
app/organisation/requester.py:12
↓ 1 callersFunctionsend_letter_response
(notification_id: uuid.UUID, billable_units: int, postage: str)
app/celery/research_mode_tasks.py:73
← previousnext →901–1,000 of 5,336, ranked by callers