zulip/zerver/management/commands
Anders Kaseorg 9198fe4fac scim: Downgrade SCIMClient from a model to an ephemeral dataclass.
SCIMClient is a type-unsafe workaround for django-scim2’s conflation
of SCIM users with Django users.  Given that a SCIMClient is not a
UserProfile, it might as well not be a model at all, since it’s only
used to satisfy django-scim2’s request.user.is_authenticated queries.

This doesn’t solve the type safety issue with assigning a SCIMClient
to request.user, nor the performance issue with running the SCIM
middleware on non-SCIM requests.  But it reduces the risk of potential
consequences worse than crashing, since there’s no longer a
request.user.id for Django to confuse with the ID of an actual
UserProfile.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
2022-09-26 11:36:48 -07:00
..
__init__.py
add_users_to_streams.py actions: Split out zerver.actions.streams. 2022-04-14 17:14:35 -07:00
archive_messages.py
audit_fts_indexes.py
backup.py typing: Narrow connection type before accessing pg_version. 2022-06-23 19:25:48 -07:00
bulk_change_user_name.py actions: Split out zerver.actions.user_settings. 2022-04-14 17:14:34 -07:00
change_password.py change_password: Set requires_system_checks to a list. 2022-01-13 21:02:41 -08:00
change_realm_subdomain.py change_realm_subdomain: Support skipping the redirect. 2022-06-25 08:44:24 -07:00
change_user_email.py actions: Split out zerver.actions.user_settings. 2022-04-14 17:14:34 -07:00
change_user_role.py actions: Split out zerver.actions.users. 2022-04-14 17:14:34 -07:00
check_redis.py check_redis: Fix for key format change and Python 3. 2021-07-05 12:23:06 -07:00
checkconfig.py
compilemessages.py compilemessages: Use a consistent ordering for the languages list. 2022-06-23 16:25:33 -07:00
convert_gitter_data.py
convert_mattermost_data.py
convert_rocketchat_data.py data_import: Add rocket chat import tool. 2021-07-28 15:28:56 -07:00
convert_slack_data.py docs: Fix many spelling mistakes. 2022-02-07 18:51:06 -08:00
create_default_stream_groups.py actions: Move part into zerver.lib.streams. 2022-04-14 17:14:32 -07:00
create_realm.py actions: Split out zerver.actions.create_realm. 2022-04-14 17:14:37 -07:00
create_realm_internal_bots.py
create_stream.py
create_user.py actions: Split out zerver.actions.create_user. 2022-04-14 17:14:35 -07:00
deactivate_realm.py actions: Split out zerver.actions.realm_settings. 2022-04-14 17:14:37 -07:00
deactivate_user.py actions: Split out zerver.actions.users. 2022-04-14 17:14:34 -07:00
delete_old_unclaimed_attachments.py do_delete_old_unclaimed_attachments: Consider ArchivedAttachment rows. 2022-06-02 17:32:23 -07:00
delete_realm.py docs: Add missing space to compound verbs “back up”, “log in”, etc. 2022-02-07 19:20:54 -08:00
delete_user.py do_delete_user: Clean up acting_user logic. 2022-04-15 15:55:21 -07:00
deliver_scheduled_emails.py deliver_scheduled_emails: Add a try/except KeyboardInterrupt. 2022-02-18 14:04:56 -08:00
deliver_scheduled_messages.py actions: Split out zerver.actions.message_send. 2022-04-14 17:14:34 -07:00
edit_linkifiers.py realm: Create RealmAuditLog entry when removing realm linkifiers. 2022-07-31 18:32:28 -07:00
email_mirror.py docs: Fix many spelling mistakes. 2022-02-07 18:51:06 -08:00
enqueue_digest_emails.py
enqueue_file.py
export.py actions: Split out zerver.actions.realm_settings. 2022-04-14 17:14:37 -07:00
export_single_user.py export: Use tar -C to switch directories. 2021-12-17 08:01:53 -08:00
export_usermessage_batch.py
fetch_tor_exit_nodes.py python: Replace deprecated urllib3 BACKOFF_MAX. 2022-01-23 22:14:17 -08:00
fill_memcached_caches.py fill_memcached_caches: Document possible arguments to --cache. 2022-05-22 14:52:38 -07:00
generate_realm_creation_link.py python: Fix mypy no_implicit_reexport errors. 2021-07-16 14:02:31 -07:00
get_migration_status.py
import.py import: Remove dead do_import_system_bots code. 2022-08-11 13:59:50 -07:00
list_realms.py
logout_all_users.py logout_all_users: Add --rotate-api-keys option to the command. 2022-08-15 17:58:05 -07:00
makemessages.py commands: Use getattr to access patched attribute during runtime. 2022-06-23 19:25:48 -07:00
merge_streams.py merge_streams: Move logic to zerver/actions/streams.py. 2022-07-13 16:12:36 -07:00
process_queue.py logging: Pass more format arguments to logging. 2022-06-03 12:27:23 -07:00
promote_new_full_members.py actions: Split out zerver.actions.user_groups. 2022-04-14 17:14:30 -07:00
purge_queue.py
query_ldap.py
rate_limit.py python: Fix mypy no_implicit_reexport errors. 2021-07-16 14:02:31 -07:00
reactivate_realm.py actions: Split out zerver.actions.realm_settings. 2022-04-14 17:14:37 -07:00
realm_domain.py models: Fix return type of get_realm_domains. 2022-03-10 17:48:02 -08:00
register_server.py typing: Add assertions before accessing settings. 2022-07-15 14:00:56 -07:00
remove_users_from_stream.py actions: Split out zerver.actions.streams. 2022-04-14 17:14:35 -07:00
reset_authentication_attempt_count.py management: Rename clear_auth_rate_limit_history command. 2021-08-23 11:52:35 -07:00
restore_messages.py management: Fix typing for management scripts. 2021-08-20 05:54:18 -07:00
runtornado.py tornado: Fix Tornado CSRF check with X-Forwarded-Proto. 2022-09-23 16:01:12 -07:00
scrub_realm.py actions: Split out zerver.actions.realm_settings. 2022-04-14 17:14:37 -07:00
send_custom_email.py typing: Broaden type annotations for QuerySet compatibility. 2022-07-07 11:27:42 -07:00
send_password_reset_email.py typing: Broaden type annotations for QuerySet compatibility. 2022-07-07 11:27:42 -07:00
send_realm_reactivation_email.py actions: Split out zerver.actions.realm_settings. 2022-04-14 17:14:37 -07:00
send_test_email.py management: Run log_email_config_errors in send_test_email command. 2022-02-10 10:55:49 -08:00
send_to_email_mirror.py management: Fix typing for management scripts. 2021-08-20 05:54:18 -07:00
send_webhook_fixture_message.py webhook: Fix f-string str-bytes-safe error. 2022-07-26 18:00:24 -07:00
show_admins.py
soft_deactivate_users.py soft_deactivation: Tighten function signatures with generic QuerySet. 2022-07-07 11:28:13 -07:00
sync_ldap_user_data.py typing: Broaden type annotations for QuerySet compatibility. 2022-07-07 11:27:42 -07:00
transfer_uploads_to_s3.py