Lower user limit soft warning to 5K (#27034)

Automatic Merge
Этот коммит содержится в:
Maria A Nunez
2024-05-21 13:41:31 -04:00
коммит произвёл GitHub
родитель 3490143e37
Коммит 72fcedd23a
4 изменённых файлов: 5 добавлений и 4 удалений

Просмотреть файл

@@ -12,7 +12,7 @@ import (
) )
const ( const (
maxUsersLimit = 10_000 maxUsersLimit = 5_000
maxUsersHardLimit = 11_000 maxUsersHardLimit = 11_000
) )

Просмотреть файл

@@ -20,7 +20,7 @@ func TestGetServerLimits(t *testing.T) {
// InitBasic creates 3 users by default // InitBasic creates 3 users by default
require.Equal(t, int64(3), serverLimits.ActiveUserCount) require.Equal(t, int64(3), serverLimits.ActiveUserCount)
require.Equal(t, int64(10000), serverLimits.MaxUsersLimit) require.Equal(t, int64(5000), serverLimits.MaxUsersLimit)
}) })
t.Run("user count should increase on creating new user and decrease on permanently deleting", func(t *testing.T) { t.Run("user count should increase on creating new user and decrease on permanently deleting", func(t *testing.T) {

Просмотреть файл

@@ -49,7 +49,7 @@ const AccordionCard = ({
setHeight(0); setHeight(0);
} }
setOpen(isExpanded); setOpen(isExpanded);
}, [isExpanded]); }, [data.items.length, isExpanded]);
const hasItems = data.items.length > 0; const hasItems = data.items.length > 0;

Просмотреть файл

@@ -76,7 +76,8 @@ describe('getServerLimits', () => {
test('should return data if user is admin', async () => { test('should return data if user is admin', async () => {
const userLimits: ServerLimits = { const userLimits: ServerLimits = {
activeUserCount: 600, activeUserCount: 600,
maxUsersLimit: 10_000, maxUsersLimit: 5_000,
}; };
nock(Client4.getBaseRoute()). nock(Client4.getBaseRoute()).