zulip/zerver/management/commands
Steve Howell c5e4ce5278 Optimize show_unreads --fix approach.
This now breaks the process of cleaning up unread counts for
non-active streams into a three step process.

This allows us to use our unread message flags index, at least
in testing on dev.  Here is the relevant excerpt from explain
analyze:

    Bitmap Index Scan on zerver_usermessage_unread_message_id
2017-08-04 11:04:43 -07:00
..
__init__.py
add_users_to_mailing_list.py Replace timezone.now with timezone_now. 2017-04-16 12:28:56 -07:00
add_users_to_streams.py add_users_to_streams: Remove unused imports. 2017-07-08 14:35:42 -07:00
bankrupt_users.py bankrupt_users: Replace get_user_profile_by_email with get_user. 2017-07-08 14:38:45 -07:00
bulk_change_user_name.py bulk_change_user_name: Replace get_user_profile_by_email with get_user. 2017-07-08 14:38:45 -07:00
change_user_email.py management: Add new library for specifying realms. 2017-07-07 13:57:57 -07:00
check_apns_tokens.py
check_redis.py mypy: Ensure type of trim_func is consistent in check_redis.py. 2017-08-03 11:03:14 -07:00
checkconfig.py Django 1.10: Use add_argument for options in BaseCommand. 2016-11-04 10:20:23 -07:00
compilemessages.py i18n: Fix compilemessages processing extra files in production. 2017-02-03 17:17:23 -08:00
convert_bot_to_outgoing_webhook.py bots: Add management command for making outgoing webhook bot. 2017-05-25 09:45:54 -07:00
create_realm.py models: Change default org_type to CORPORATE. 2017-06-29 15:14:58 -07:00
create_stream.py actions: Remove unnecessary do_create_stream function. 2017-01-29 22:07:14 -08:00
create_user.py create_user: Receive password input from a file instead of shell arg. 2017-07-27 18:08:52 -07:00
deactivate_realm.py Rename models.get_realm_by_string_id to get_realm. 2017-01-04 17:12:23 -08:00
deactivate_user.py deactivate_users: Replace get_user_profile_by_email with get_user. 2017-07-08 14:38:45 -07:00
delete_old_unclaimed_attachments.py
deliver_email.py deliver_email: When disabled, sleep forever rather than exit. 2017-08-03 16:28:19 -07:00
dump_messages.py pep8: Add compliance with rule E261 to dump_messages.py. 2017-05-07 23:21:50 -07:00
email_mirror.py pep8: Add compliance with rule E261 to email_mirror.py. 2017-05-07 23:21:50 -07:00
enqueue_digest_emails.py Replace timezone.now with timezone_now. 2017-04-16 12:28:56 -07:00
enqueue_file.py pep8: Add compliance with rule E261 to enqueue_file.py. 2017-05-07 23:21:50 -07:00
export.py models: Replace ScheduledJob with ScheduledEmail. 2017-07-17 16:05:38 -07:00
export_single_user.py export_single_user: Replace get_user_profile_by_email with get_user. 2017-07-08 14:38:45 -07:00
export_usermessage_batch.py
fill_memcached_caches.py management: Fix recent argument parsing regressions. 2016-10-16 20:36:33 -07:00
generate_invite_links.py confirmation: Liberate get_link_for_object from ConfirmationManager. 2017-07-17 23:18:47 -07:00
generate_realm_creation_link.py generate_realm_creation_link: Fix line-wrapping of help text. 2017-03-04 19:02:01 -08:00
get_migration_status.py pep8: Fix many rule E128 violations. 2016-12-03 13:33:31 -08:00
import.py pep8: Add compliance with rule E261 to import.py. 2017-05-07 23:21:50 -07:00
initialize_voyager_db.py models: Remove Realm.domain. 2017-03-25 19:55:48 -07:00
knight.py management commands: Use Realm.string_id instead of domain in print statements. 2017-03-13 09:44:32 -07:00
logout_all_users.py sessions: Move session deletion code to sessions.py. 2017-03-08 02:48:18 -08:00
makemessages.py makemessages: Support only Django version >= 1.11. 2017-07-10 11:32:10 -07:00
merge_streams.py management: Add script to merge two streams. 2017-07-18 21:08:24 -07:00
print_email_delivery_backlog.py models: Replace ScheduledJob with ScheduledEmail. 2017-07-17 16:05:38 -07:00
process_queue.py process_queue: Recover gracefully after PostgreSQL restart. 2017-07-07 16:33:15 -07:00
purge_queue.py pep8: Fix E301 pep8 violations. 2016-11-29 08:51:44 -08:00
query_ldap.py
rate_limit.py rate_limiter: Upgrade unblock_user to generic API. 2017-08-02 18:01:39 -07:00
reactivate_realm.py management commands: Change help text to say realm instead of domain. 2017-03-14 17:17:42 -07:00
realm_domain.py i18n: Remove translation tags in management commands. 2017-06-25 11:28:28 -04:00
realm_emoji.py Rename models.get_realm_by_string_id to get_realm. 2017-01-04 17:12:23 -08:00
realm_filters.py management commands: Change help text to say realm instead of domain. 2017-03-14 17:17:42 -07:00
remove_users_from_stream.py remove_users_from_stream: Replace get_user_profile_by_email with get_user. 2017-07-08 14:38:45 -07:00
rename_stream.py rename_stream: Pass a stream object to do_rename_stream. 2017-01-29 20:27:00 -08:00
runtornado.py tornado: Move setup_tornado_rabbitmq to application.py 2017-07-21 09:55:25 +05:00
send_password_reset_email.py emails: Change reset password emails to use to_user_id. 2017-07-16 16:56:39 -07:00
send_stats.py
send_test_email.py settings: Change all uses of ZULIP_ADMINISTRATOR to FromAddress.SUPPORT. 2017-07-05 15:33:01 -07:00
send_webhook_fixture_message.py mypy: Fix inconsistencies in use of *args/**kwargs. 2017-02-18 18:39:44 -08:00
set_default_streams.py pep8: Add compliance with rule E261 to set_default_streams.py. 2017-05-07 23:21:50 -07:00
set_message_flags.py set_message_flags: Replace get_user_profile_by_email with get_user. 2017-07-08 14:40:55 -07:00
show_admins.py Rename models.get_realm_by_string_id to get_realm. 2017-01-04 17:12:23 -08:00
show_unreads.py Optimize show_unreads --fix approach. 2017-08-04 11:04:43 -07:00
sync_ldap_user_data.py
turn_off_digests.py turn_off_digests: Replace get_user_profile_by_email with get_user. 2017-07-08 14:38:45 -07:00