zulip/zerver/tests
Steve Howell 7c726a5e77 Remove sender names from the message cache.
This removes sender names from the message cache, since
they aren't guaranteed to be valid, and they're inexpensive
to add.

This commit will make the message cache entries smaller
by removing sender___full_name and sender__short_name
fields.

Then we add in the sender fields to the message payloads
by doing a query against the unique sender ids of the
messages we are processing.

This change leads to 2 extra database hops for most of
our message-related codepaths.  The reason there are 2 hops
instead of 1 is that we basically re-calculate way too
much data to get a no-markdown dictionary.
2017-10-11 11:37:16 -07:00
..
images Update types of images accepted as avatars. 2016-07-26 16:36:47 +05:30
__init__.py Fix missing zerver/tests/__init__.py. 2016-04-11 22:34:22 -07:00
test_alert_words.py zerver/tests: Remove print_function. 2017-09-27 18:05:45 -07:00
test_attachments.py lint: Replace `pk` with `id` where they are equivalent. 2017-10-06 12:52:12 -07:00
test_audit_log.py Use stream ids in various tests. 2017-10-08 20:18:34 -07:00
test_auth_backends.py settings: Remove remaining references to REALMS_HAVE_SUBDOMAINS. 2017-10-02 16:43:54 -07:00
test_bots.py Avoid O(N) query pitfall for /users endpoint. 2017-10-09 14:08:07 -07:00
test_bugdown.py tests: Add @slow decorator to various methods needing it. 2017-10-06 15:45:04 -07:00
test_compatibility.py zerver/tests: Remove print_function. 2017-09-27 18:05:45 -07:00
test_custom_profile_data.py zerver/tests: Remove absolute_import. 2017-09-27 10:00:39 -07:00
test_decorators.py test_decorators: Replace the json/tutorial_status endpoint in tests. 2017-10-09 15:13:33 -07:00
test_docs.py tests: Add @slow decorator to various methods needing it. 2017-10-06 15:45:04 -07:00
test_email_change.py zerver/tests: Remove absolute_import. 2017-09-27 10:00:39 -07:00
test_email_mirror.py zerver/tests: Remove absolute_import. 2017-09-27 10:00:39 -07:00
test_event_queue.py event_queue: Fixed stream_push_notify code path in missedmessage_hook. 2017-09-27 15:57:48 -07:00
test_events.py Flush standard output in match_states(). 2017-10-09 12:23:49 -07:00
test_export.py zerver/tests: Remove print_function. 2017-09-27 18:05:45 -07:00
test_external.py zerver/tests: Remove absolute_import. 2017-09-27 10:00:39 -07:00
test_home.py Use stream ids in various tests. 2017-10-08 20:18:34 -07:00
test_hotspots.py zerver/tests: Remove absolute_import. 2017-09-27 10:00:39 -07:00
test_i18n.py Revert "locale: Fix incorrect locale name for zh-Hans." 2017-10-06 10:09:08 -07:00
test_link_embed.py zerver/tests: Remove print_function. 2017-09-27 18:05:45 -07:00
test_logging_handlers.py logging: Explain quirks of Python logging config, and apply a style. 2017-09-28 18:26:39 -07:00
test_management_commands.py test_management_commands: Fix send_webhook_fixture_message test. 2017-10-08 21:20:35 -07:00
test_message_edit_notifications.py Notify offline users about edited stream messages. 2017-10-03 15:57:06 -07:00
test_messages.py Remove sender names from the message cache. 2017-10-11 11:37:16 -07:00
test_middleware.py zerver/tests: Remove print_function. 2017-09-27 18:05:45 -07:00
test_muting.py Have topic_is_muted take a stream_id. 2017-10-05 09:32:16 -07:00
test_narrow.py reactions: Switch to using `name_to_codepoint`. 2017-10-04 23:09:14 -07:00
test_new_users.py Use stream ids in various tests. 2017-10-08 20:18:34 -07:00
test_notifications.py settings: Remove remaining references to REALMS_HAVE_SUBDOMAINS. 2017-10-02 16:43:54 -07:00
test_outgoing_webhook_interfaces.py zerver/tests: Remove print_function. 2017-09-27 18:05:45 -07:00
test_outgoing_webhook_system.py settings: Remove remaining references to REALMS_HAVE_SUBDOMAINS. 2017-10-02 16:43:54 -07:00
test_presence.py tests: Don't use caching session engine in tests. 2017-10-06 12:22:20 -07:00
test_push_notifications.py tests: Add a test suite for verifying the mobile push notifs content. 2017-10-06 16:47:27 -07:00
test_queue_worker.py queue: Add test for signups retry logic. 2017-10-05 23:14:19 -07:00
test_reactions.py reactions.py: Don't check for valid emoji name while removing reaction. 2017-10-09 17:54:37 +00:00
test_realm.py Use stream ids in various tests. 2017-10-08 20:18:34 -07:00
test_realm_domains.py subdomains: Hardcode REALMS_HAVE_SUBDOMAINS=True. 2017-10-02 16:42:43 -07:00
test_realm_emoji.py zerver/tests: Remove absolute_import. 2017-09-27 10:00:39 -07:00
test_realm_filters.py zerver/tests: Remove absolute_import. 2017-09-27 10:00:39 -07:00
test_report.py zerver/tests: Remove print_function. 2017-09-27 18:05:45 -07:00
test_retention.py zerver/tests: Remove absolute_import. 2017-09-27 10:00:39 -07:00
test_service_bot_system.py zerver/tests: Remove print_function. 2017-09-27 18:05:45 -07:00
test_sessions.py zerver/tests: Remove absolute_import. 2017-09-27 10:00:39 -07:00
test_settings.py zerver/tests: Remove print_function. 2017-09-27 18:05:45 -07:00
test_signup.py Remove sender names from the message cache. 2017-10-11 11:37:16 -07:00
test_soft_deactivation.py zerver/tests: Remove absolute_import. 2017-09-27 10:00:39 -07:00
test_subs.py Remove sender names from the message cache. 2017-10-11 11:37:16 -07:00
test_templates.py tests: Add @slow decorator to various methods needing it. 2017-10-06 15:45:04 -07:00
test_timestamp.py analytics: Enforce various datetime arguments are in UTC. 2017-10-05 11:22:06 -07:00
test_tornado.py zerver/tests: Remove print_function. 2017-09-27 18:05:45 -07:00
test_tutorial.py urls: Move the json/tutorial_status endpoint to be an API-style route. 2017-10-09 15:13:33 -07:00
test_type_debug.py zerver/tests: Remove print_function. 2017-09-27 18:05:45 -07:00
test_typing.py zerver/tests: Remove absolute_import. 2017-09-27 10:00:39 -07:00
test_unread.py zerver/tests: Remove absolute_import. 2017-09-27 10:00:39 -07:00
test_upload.py zerver/tests: Remove absolute_import. 2017-09-27 10:00:39 -07:00
test_urls.py tests: Add @slow decorator to various methods needing it. 2017-10-06 15:45:04 -07:00
test_users.py zerver/tests: Remove print_function. 2017-09-27 18:05:45 -07:00
test_zephyr.py zephyr: Update path to process_cache for repository split. 2017-10-05 12:35:20 -07:00
tests.py retention-period: Add retention period to front-end admin organization settings. 2017-03-25 17:57:18 -07:00