zulip/zerver/management/commands
K.Kanakhin e930851d16 retention-period: Add more core code for retention policy.
This is a very old commit for #106, which has been on hiatus for a few
years.  It was significantly modified by tabbott to:
* Improve coding style and variable names
* Update mypy annotations style
* Clean up the testing logic
* Update for API changes elsewhere in our system

But the actual runtime code is essentially unmodified from the
original work by Kirill.

It contains basic support for archiving Messages, UserMessages, and
Attachments with a nice test suite.  It's still not usable in
production (e.g. it will probably break Reactions, SubMessages, etc.),
but upcoming commits will address that.
2019-05-19 20:22:47 -07:00
..
__init__.py
add_users_to_mailing_list.py management: Don't use sys.exit(1). 2019-05-03 14:20:39 -07:00
add_users_to_streams.py refactoring: Replaced occurences of create_stream_if_needed. 2018-03-21 16:47:36 -07:00
archive_messages.py retention-period: Add more core code for retention policy. 2019-05-19 20:22:47 -07:00
backup.py backup: Make `--output` an optional argument instead of a positional one. 2019-04-17 12:14:11 -07:00
bankrupt_users.py do_mark_all_as_read: Accept a client object. 2018-08-01 16:40:15 -07:00
bulk_change_user_name.py python: Sort imports in management commands. 2017-11-15 15:43:47 -08:00
change_user_email.py email: Support delivery email in email change system. 2018-12-06 17:43:26 -08:00
check_redis.py management: Don't use sys.exit(1). 2019-05-03 14:20:39 -07:00
checkconfig.py management: Remove unused imports in management commands. 2019-02-02 17:12:36 -08:00
compilemessages.py Enable pycodestyle W605 (invalid escape sequence). 2018-07-03 16:54:46 +02:00
convert_gitter_data.py management: Don't use sys.exit(1). 2019-05-03 14:20:39 -07:00
convert_hipchat_data.py management: Don't use sys.exit(1). 2019-05-03 14:20:39 -07:00
convert_mattermost_data.py convert_mattermost_data: Don't sys.exit(1). 2019-05-02 11:13:41 -07:00
convert_slack_data.py management: Don't use sys.exit(1). 2019-05-03 14:20:39 -07:00
create_default_stream_groups.py refactoring: Replaced occurences of create_stream_if_needed. 2018-03-21 16:47:36 -07:00
create_large_indexes.py management: Remove unused imports in management commands. 2019-02-02 17:12:36 -08:00
create_realm_internal_bots.py management: Remove unused imports in management commands. 2019-02-02 17:12:36 -08:00
create_stream.py management: Remove unused imports in management commands. 2019-02-02 17:12:36 -08:00
create_user.py management: Fix incorrect create_user docsting on ToS. 2018-12-16 22:23:35 -08:00
deactivate_realm.py python: Sort imports in management commands. 2017-11-15 15:43:47 -08:00
deactivate_user.py management: Don't use sys.exit(1). 2019-05-03 14:20:39 -07:00
delete_old_unclaimed_attachments.py management: Don't use sys.exit(1). 2019-05-03 14:20:39 -07:00
deliver_email.py deliver_email: Refactor to extract email delivery. 2019-03-20 14:52:05 -07:00
deliver_scheduled_messages.py management: Remove unused imports in management commands. 2019-02-02 17:12:36 -08:00
dump_messages.py python: Sort imports in management commands. 2017-11-15 15:43:47 -08:00
email_mirror.py management: Don't use sys.exit(1). 2019-05-03 14:20:39 -07:00
enqueue_digest_emails.py management: Remove unused imports in management commands. 2019-02-02 17:12:36 -08:00
enqueue_file.py python: Sort imports in management commands. 2017-11-15 15:43:47 -08:00
export.py export: Add support for exporting realm with member consent. 2019-05-15 12:35:32 -07:00
export_single_user.py export: Let mkdtemp pick its favorite directory. 2019-01-15 16:08:48 -08:00
export_usermessage_batch.py export: Add support for exporting realm with member consent. 2019-05-15 12:35:32 -07:00
fill_memcached_caches.py python: Sort imports in management commands. 2017-11-15 15:43:47 -08:00
fix_unreads.py management: Don't use sys.exit(1). 2019-05-03 14:20:39 -07:00
generate_invite_links.py management: Don't use sys.exit(1). 2019-05-03 14:20:39 -07:00
generate_multiuse_invite_link.py invites: Add backend for multiuse admin invites. 2019-02-07 15:41:00 -08:00
generate_realm_creation_link.py management: Don't use sys.exit(1). 2019-05-03 14:20:39 -07:00
get_migration_status.py python: Sort imports in management commands. 2017-11-15 15:43:47 -08:00
import.py management: Don't use sys.exit(1). 2019-05-03 14:20:39 -07:00
initialize_voyager_db.py django: Remove the Django contrib Sites app to fix 2FA QR codes. 2018-12-12 15:01:55 -08:00
knight.py zerver: Require permissions be acceptable to do_change_is_admin. 2018-05-15 11:25:47 -07:00
list_realms.py list_realms: Display '' as string_id for root domain realm. 2018-12-30 10:36:18 -08:00
logout_all_users.py python: Sort imports in management commands. 2017-11-15 15:43:47 -08:00
makemessages.py lint: Fix code that evaded our lint checks for string % non-tuple. 2019-04-23 15:21:37 -07:00
merge_streams.py bulk_remove_subscriptions: Pass client object in. 2018-08-01 16:48:31 -07:00
print_email_delivery_backlog.py python: Sort imports in management commands. 2017-11-15 15:43:47 -08:00
process_queue.py management: Don't use sys.exit(1). 2019-05-03 14:20:39 -07:00
purge_queue.py purge_queue: Use more robust Tornado patterns. 2018-11-02 16:06:46 -07:00
query_ldap.py commands: Fix handling of keyword arguments in `query_ldap` command. 2019-04-04 13:42:33 -07:00
rate_limit.py management: Don't use sys.exit(1). 2019-05-03 14:20:39 -07:00
reactivate_realm.py python: Sort imports in management commands. 2017-11-15 15:43:47 -08:00
realm_domain.py management: Don't use sys.exit(1). 2019-05-03 14:20:39 -07:00
realm_filters.py management: Don't use sys.exit(1). 2019-05-03 14:20:39 -07:00
register_server.py management: Remove unused imports in management commands. 2019-02-02 17:12:36 -08:00
remove_users_from_stream.py bulk_remove_subscriptions: Pass client object in. 2018-08-01 16:48:31 -07:00
rename_stream.py management: Remove unused imports in management commands. 2019-02-02 17:12:36 -08:00
runtornado.py lint: Fix code that evaded our lint checks for string % non-tuple. 2019-04-23 15:21:37 -07:00
scrub_realm.py management: Add command to scrub a realm of personal data. 2018-10-11 15:30:26 -07:00
send_password_reset_email.py management: Remove unused imports in management commands. 2019-02-02 17:12:36 -08:00
send_realm_reactivation_email.py management: Remove unused imports in management commands. 2019-02-02 17:12:36 -08:00
send_stats.py python: Sort imports in management commands. 2017-11-15 15:43:47 -08:00
send_test_email.py lint: Fix code that evaded our lint checks for string % non-tuple. 2019-04-23 15:21:37 -07:00
send_to_email_mirror.py management: Don't use sys.exit(1). 2019-05-03 14:20:39 -07:00
send_webhook_fixture_message.py management: Extract parse_headers in send_webhook_fixture_message. 2019-05-17 11:50:53 -07:00
set_message_flags.py management: Don't use sys.exit(1). 2019-05-03 14:20:39 -07:00
show_admins.py management: Remove unused imports in management commands. 2019-02-02 17:12:36 -08:00
show_unreads.py models: Rename Subscription.in_home_view field to is_muted. 2019-05-12 22:08:10 -07:00
soft_deactivate_users.py management: Don't use sys.exit(1). 2019-05-03 14:20:39 -07:00
sync_ldap_user_data.py management: Remove unused imports in management commands. 2019-02-02 17:12:36 -08:00
transfer_uploads_to_s3.py python: Remove unused imports. 2019-02-22 16:54:36 -08:00
turn_off_digests.py zerver/management: Remove unused imports (F401). 2017-11-07 16:36:54 -08:00