mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 04:53:36 +00:00
stream: Add subscriber_count field.
Fixes #34246. Add subscriber_count field to Stream model to track number of non-deactivated users subscribed to the channel.
This commit is contained in:
@@ -109,7 +109,7 @@ class StreamSetupTest(ZulipTestCase):
|
||||
|
||||
new_user = self.create_simple_new_user(realm, "alice@zulip.com")
|
||||
|
||||
with self.assert_database_query_count(13):
|
||||
with self.assert_database_query_count(14):
|
||||
set_up_streams_and_groups_for_new_human_user(
|
||||
user_profile=new_user,
|
||||
prereg_user=None,
|
||||
@@ -145,7 +145,7 @@ class StreamSetupTest(ZulipTestCase):
|
||||
|
||||
new_user = self.create_simple_new_user(realm, new_user_email)
|
||||
|
||||
with self.assert_database_query_count(16):
|
||||
with self.assert_database_query_count(17):
|
||||
set_up_streams_and_groups_for_new_human_user(
|
||||
user_profile=new_user,
|
||||
prereg_user=prereg_user,
|
||||
|
||||
Reference in New Issue
Block a user