mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +00:00
invites: Add include_realm_default_subscriptions parameter.
This commit adds include_realm_default_subscriptions parameter to the invite endpoints and the corresponding field in PreregistrationUser and MultiuseInvite objects. This field will be used to subscribe the new users to the default streams at the time of account creation and not to the streams that were default when sending the invite.
This commit is contained in:
@@ -1724,6 +1724,7 @@ class TestLoggingCountStats(AnalyticsTestCase):
|
||||
user,
|
||||
["user1@domain.tld", "user2@domain.tld"],
|
||||
[stream],
|
||||
include_realm_default_subscriptions=False,
|
||||
invite_expires_in_minutes=invite_expires_in_minutes,
|
||||
)
|
||||
assertInviteCountEquals(2)
|
||||
@@ -1735,6 +1736,7 @@ class TestLoggingCountStats(AnalyticsTestCase):
|
||||
user,
|
||||
["user1@domain.tld", "user2@domain.tld"],
|
||||
[stream],
|
||||
include_realm_default_subscriptions=False,
|
||||
invite_expires_in_minutes=invite_expires_in_minutes,
|
||||
)
|
||||
assertInviteCountEquals(4)
|
||||
@@ -1745,6 +1747,7 @@ class TestLoggingCountStats(AnalyticsTestCase):
|
||||
user,
|
||||
["user3@domain.tld", "malformed"],
|
||||
[stream],
|
||||
include_realm_default_subscriptions=False,
|
||||
invite_expires_in_minutes=invite_expires_in_minutes,
|
||||
)
|
||||
assertInviteCountEquals(4)
|
||||
@@ -1755,6 +1758,7 @@ class TestLoggingCountStats(AnalyticsTestCase):
|
||||
user,
|
||||
["first@domain.tld", "user4@domain.tld"],
|
||||
[stream],
|
||||
include_realm_default_subscriptions=False,
|
||||
invite_expires_in_minutes=invite_expires_in_minutes,
|
||||
)
|
||||
self.assert_length(skipped, 1)
|
||||
|
Reference in New Issue
Block a user