[MM-23651] No more than 256 members are allowed to be invited (#15414)
* Update constant to 256 * update test Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
42eca5315b
Коммит
5be6da2e9a
@@ -20,7 +20,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
MAX_ADD_MEMBERS_BATCH = 20
|
MAX_ADD_MEMBERS_BATCH = 256
|
||||||
MAXIMUM_BULK_IMPORT_SIZE = 10 * 1024 * 1024
|
MAXIMUM_BULK_IMPORT_SIZE = 10 * 1024 * 1024
|
||||||
groupIDsParamPattern = "[^a-zA-Z0-9,]*"
|
groupIDsParamPattern = "[^a-zA-Z0-9,]*"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -2161,7 +2161,7 @@ func TestAddTeamMembers(t *testing.T) {
|
|||||||
CheckNotFoundStatus(t, resp)
|
CheckNotFoundStatus(t, resp)
|
||||||
|
|
||||||
// Test with many users.
|
// Test with many users.
|
||||||
for i := 0; i < 25; i++ {
|
for i := 0; i < 260; i++ {
|
||||||
testUserList = append(testUserList, GenerateTestId())
|
testUserList = append(testUserList, GenerateTestId())
|
||||||
}
|
}
|
||||||
_, resp = Client.AddTeamMembers(team.Id, testUserList)
|
_, resp = Client.AddTeamMembers(team.Id, testUserList)
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user