zulip/analytics/tests
Alex Vandiver d00cd52619 settings: Remove PREFER_DIRECT_MESSAGE_GROUP.
With the backfill migration complete, all 1:1 and self DMs now use
DirectMessageGroup recipients.  Remove the PREFER_DIRECT_MESSAGE_GROUP
setting and all code paths that conditionally used personal recipients
when the setting was False.

This simplifies recipient_users.py to always use
get_or_create_direct_message_group, updates all data importers
(Slack, Mattermost, Rocket.Chat) to always create DM groups for
1:1 messages, and removes all @override_settings decorators and
tests that only exercised the personal-recipient code path.

Some tests see query count changes from removing the redundant
get_direct_message_group lookup in get_recipient_from_user_profiles
(which now falls through directly to
get_or_create_direct_message_group), and from tests that previously
pinned PREFER_DIRECT_MESSAGE_GROUP=False now producing DM group
recipients instead of personal ones.
2026-04-15 15:23:47 -07:00
..
__init__.py Add a new statistics/analytics framework. 2016-10-04 17:18:54 -07:00
test_counts.py settings: Remove PREFER_DIRECT_MESSAGE_GROUP. 2026-04-15 15:23:47 -07:00
test_fixtures.py tests: Consistently use assert_length helper. 2021-05-19 11:55:56 -07:00
test_stats_views.py analytics: Update labels for mobile apps for Flutter launch. 2025-06-13 17:00:55 -07:00