File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed
packages/compass-query-bar/src Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -9,8 +9,12 @@ export type QueryOptionOfTypeDocument = Exclude<
9
9
'maxTimeMS' | 'limit' | 'skip'
10
10
> ;
11
11
12
- // Data Explorer limits (5 minutes = 300,000ms)
13
- const WEB_MAX_TIME_MS_LIMIT = 300_000 ; // 5 minutes
12
+ /**
13
+ * Data Explorer limits (5 minutes = 300,000ms)
14
+ * This limit is artificial but necessary for the backend that powers DE.
15
+ * https://github.com/10gen/mms/blob/dea184f4a40db0a64ed0d6665d36265f62ae4f65/server/src/main/com/xgen/cloud/services/clusterconnection/runtime/ws/ClusterConnectionServerProvider.java#L50-L51
16
+ */
17
+ export const WEB_MAX_TIME_MS_LIMIT = 300_000 ;
14
18
15
19
export const OPTION_DEFINITION : {
16
20
[ optionName in QueryOption ] : {
Original file line number Diff line number Diff line change @@ -14,9 +14,7 @@ import type {
14
14
QueryProperty ,
15
15
} from '../constants/query-properties' ;
16
16
import { QUERY_PROPERTIES } from '../constants/query-properties' ;
17
-
18
- // Data Explorer limits (5 minutes = 300,000ms)
19
- const WEB_MAX_TIME_MS_LIMIT = 300_000 ; // 5 minutes
17
+ import { WEB_MAX_TIME_MS_LIMIT } from '../constants/query-option-definition' ;
20
18
21
19
export function mapFormFieldsToQuery ( fields : QueryFormFields ) : BaseQuery {
22
20
// We always want filter field to be in the query, even if the field
You can’t perform that action at this time.
0 commit comments