zulip/zerver/management/commands
Prakhar Pratyush cc793612f0 export: Create REALM_EXPORTED audit log for exports via shell.
Earlier, we were creating RealmAuditLog with REALM_EXPORTED
event_type when export of public data took place via organization
settings panel.

We were not creating the audit log when the export was executed
via shell i.e './manage.py export'.

This commit creates the audit log in that case too. It will
help during import to distinguish readily between imports
from another Zulip server vs imports from another product.
2024-05-08 16:16:37 -07:00
..
__init__.py
add_users_to_streams.py mypy: Enable new error explicit-override. 2023-10-12 12:28:41 -07:00
archive_messages.py management: Add lockfiles to all _once management jobs. 2024-04-24 14:40:28 -07:00
audit_fts_indexes.py mypy: Enable new error explicit-override. 2023-10-12 12:28:41 -07:00
backup.py mypy: Enable new error explicit-override. 2023-10-12 12:28:41 -07:00
bulk_change_user_name.py mypy: Enable new error explicit-override. 2023-10-12 12:28:41 -07:00
change_password.py mypy: Enable new error explicit-override. 2023-10-12 12:28:41 -07:00
change_realm_subdomain.py mypy: Enable new error explicit-override. 2023-10-12 12:28:41 -07:00
change_user_email.py mypy: Enable new error explicit-override. 2023-10-12 12:28:41 -07:00
change_user_role.py change_user_role: List role choices in --help output. 2023-12-14 15:06:18 -08:00
check_redis.py partial: Replace returns plugin with an annotation. 2024-04-29 17:14:41 -07:00
checkconfig.py mypy: Enable new error explicit-override. 2023-10-12 12:28:41 -07:00
compilemessages.py compilemessages: Normalize language names to NFC. 2023-10-26 16:27:35 -07:00
convert_mattermost_data.py mypy: Enable new error explicit-override. 2023-10-12 12:28:41 -07:00
convert_rocketchat_data.py mypy: Enable new error explicit-override. 2023-10-12 12:28:41 -07:00
convert_slack_data.py slack import: Refer the archive file as a file or dir. 2024-04-11 12:05:56 -07:00
create_default_stream_groups.py mypy: Enable new error explicit-override. 2023-10-12 12:28:41 -07:00
create_realm.py mypy: Enable new error explicit-override. 2023-10-12 12:28:41 -07:00
create_realm_internal_bots.py mypy: Enable new error explicit-override. 2023-10-12 12:28:41 -07:00
create_stream.py mypy: Enable new error explicit-override. 2023-10-12 12:28:41 -07:00
create_user.py mypy: Enable new error explicit-override. 2023-10-12 12:28:41 -07:00
deactivate_realm.py mypy: Enable new error explicit-override. 2023-10-12 12:28:41 -07:00
deactivate_user.py ruff: Fix UP032 Use f-string instead of `format` call. 2024-03-21 08:59:17 -07:00
delete_old_unclaimed_attachments.py management: Add lockfiles to all _once management jobs. 2024-04-24 14:40:28 -07:00
delete_realm.py mypy: Enable new error explicit-override. 2023-10-12 12:28:41 -07:00
delete_user.py ruff: Fix UP032 Use f-string instead of `format` call. 2024-03-21 08:59:17 -07:00
deliver_scheduled_emails.py requirements: Upgrade Python requirements. 2024-01-29 10:41:54 -08:00
deliver_scheduled_messages.py mypy: Enable new error explicit-override. 2023-10-12 12:28:41 -07:00
edit_linkifiers.py models: Extract zerver.models.linkifiers. 2023-12-16 22:08:44 -08:00
email_mirror.py requirements: Upgrade Python requirements. 2024-01-29 10:41:54 -08:00
enqueue_digest_emails.py management: Add lockfiles to all _once management jobs. 2024-04-24 14:40:28 -07:00
enqueue_file.py mypy: Enable new error explicit-override. 2023-10-12 12:28:41 -07:00
export.py export: Create REALM_EXPORTED audit log for exports via shell. 2024-05-08 16:16:37 -07:00
export_search.py export_search: Support exporting DMs or huddles. 2024-02-25 09:34:17 -08:00
export_single_user.py mypy: Enable new error explicit-override. 2023-10-12 12:28:41 -07:00
export_usermessage_batch.py mypy: Enable new error explicit-override. 2023-10-12 12:28:41 -07:00
fetch_tor_exit_nodes.py mypy: Enable new error explicit-override. 2023-10-12 12:28:41 -07:00
fill_memcached_caches.py mypy: Enable new error explicit-override. 2023-10-12 12:28:41 -07:00
generate_realm_creation_link.py mypy: Enable new error explicit-override. 2023-10-12 12:28:41 -07:00
get_migration_status.py mypy: Enable new error explicit-override. 2023-10-12 12:28:41 -07:00
import.py mypy: Enable new error explicit-override. 2023-10-12 12:28:41 -07:00
list_realms.py models: Replace realm.uri with realm.url. 2024-05-08 11:12:43 -07:00
logout_all_users.py mypy: Enable new error explicit-override. 2023-10-12 12:28:41 -07:00
makemessages.py python: Mark regexes as raw strings. 2024-04-26 12:30:31 -07:00
merge_streams.py models: Extract zerver.models.streams. 2023-12-16 22:08:44 -08:00
process_queue.py queue_processors: Pass the worker_num down into the class. 2024-05-02 14:25:10 -07:00
promote_new_full_members.py management: Add lockfiles to all _once management jobs. 2024-04-24 14:40:28 -07:00
purge_queue.py mypy: Enable new error explicit-override. 2023-10-12 12:28:41 -07:00
query_ldap.py mypy: Enable new error explicit-override. 2023-10-12 12:28:41 -07:00
rate_limit.py models: Extract zerver.models.users. 2023-12-16 22:08:44 -08:00
reactivate_realm.py mypy: Enable new error explicit-override. 2023-10-12 12:28:41 -07:00
realm_domain.py models: Extract zerver.models.realms. 2023-12-16 22:08:44 -08:00
register_server.py register_server: Check write access to secrets file when rotate_key. 2024-03-22 09:33:00 -07:00
remove_users_from_stream.py models: Extract zerver.models.streams. 2023-12-16 22:08:44 -08:00
reset_authentication_attempt_count.py mypy: Enable new error explicit-override. 2023-10-12 12:28:41 -07:00
restore_messages.py mypy: Enable new error explicit-override. 2023-10-12 12:28:41 -07:00
runtornado.py runtornado: Honor the --skip-checks flag. 2024-04-15 14:29:27 -07:00
scrub_realm.py mypy: Enable new error explicit-override. 2023-10-12 12:28:41 -07:00
send_custom_email.py send_custom_email: is_realm_admin is a property, not a real column. 2024-03-19 13:19:45 -07:00
send_password_reset_email.py models: Replace realm.uri with realm.url. 2024-05-08 11:12:43 -07:00
send_realm_reactivation_email.py mypy: Enable new error explicit-override. 2023-10-12 12:28:41 -07:00
send_test_email.py mypy: Enable new error explicit-override. 2023-10-12 12:28:41 -07:00
send_to_email_mirror.py models: Extract zerver.models.streams. 2023-12-16 22:08:44 -08:00
send_webhook_fixture_message.py models: Extract zerver.models.realms. 2023-12-16 22:08:44 -08:00
send_welcome_bot_message.py mypy: Enable new error explicit-override. 2023-10-12 12:28:41 -07:00
send_zulip_update_announcements.py management: Provide a common lockfile dir, and a decorator for it. 2024-04-24 14:40:28 -07:00
show_admins.py mypy: Enable new error explicit-override. 2023-10-12 12:28:41 -07:00
soft_deactivate_users.py management: Add lockfiles to all _once management jobs. 2024-04-24 14:40:28 -07:00
sync_ldap_user_data.py python: Avoid relying on Collection supertype of QuerySet. 2024-04-16 23:02:16 -07:00
transfer_uploads_to_s3.py mypy: Enable new error explicit-override. 2023-10-12 12:28:41 -07:00
unarchive_channel.py help: Rename unarchive_stream management command to unarchive_channel. 2024-05-06 11:18:45 -07:00