Skip to content

Commit 40aaf62

Browse files
committed
Fix commemnt
1 parent 24c4d6c commit 40aaf62

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

server/routes/connections.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@ import { Router } from 'express';
33

44
import multipartRequest from '../lib/multipartRequest';
55

6-
// the limit on the frontend is 20000 so we need to fetch at least as many connections as that to
7-
// check if that limit is reached. If we fetch less than the frontend limit, it would always show the
8-
// drop down select box which would be broken for tenants with more connections than the limit.
6+
// This is the number of connections in a tenant which the DAE can reasonably handle. More than this and it fails to
7+
// finish loading connections and the "create user" button is never shown. If there are more connections than this
8+
// in the tenant, we will return zero connections to the front end, and it will use a free text box for connection name
9+
// in the create user dialogue.
910
const CONNECTIONS_FETCH_LIMIT = 20000;
1011

1112
export default (scriptManager) => {

0 commit comments

Comments
 (0)