File tree Expand file tree Collapse file tree 3 files changed +12
-8
lines changed
components/pipeline-toolbar/pipeline-options
compass-query-bar/src/components Expand file tree Collapse file tree 3 files changed +12
-8
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ import {
14
14
import type { RootState } from '../../../modules' ;
15
15
import { collationStringChanged } from '../../../modules/collation-string' ;
16
16
import { maxTimeMSChanged } from '../../../modules/max-time-ms' ;
17
- import { DEFAULT_MAX_TIME_MS } from '../../../constants' ;
17
+ import { DEFAULT_MAX_TIME_MS , WEB_MAX_TIME_MS_LIMIT } from '../../../constants' ;
18
18
import { usePreference } from 'compass-preferences-model/provider' ;
19
19
20
20
const pipelineOptionsContainerStyles = css ( {
@@ -52,9 +52,6 @@ const collationInputId = 'aggregations-collation-toolbar-input';
52
52
const maxTimeMSLabelId = 'aggregations-max-time-ms-toolbar-input-label' ;
53
53
const maxTimeMSInputId = 'aggregations-max-time-ms-toolbar-input' ;
54
54
55
- // Data Explorer limits (5 minutes = 300,000ms)
56
- const WEB_MAX_TIME_MS_LIMIT = 300_000 ; // 5 minutes
57
-
58
55
const PipelineCollation : React . FunctionComponent < PipelineCollationProps > = ( {
59
56
collationValue,
60
57
collationHasError,
Original file line number Diff line number Diff line change
1
+ /**
2
+ * Data Explorer limits (5 minutes = 300,000ms)
3
+ * This limit is artificial but necessary for the backend that powers DE.
4
+ * https://github.com/10gen/mms/blob/dea184f4a40db0a64ed0d6665d36265f62ae4f65/server/src/main/com/xgen/cloud/services/clusterconnection/runtime/ws/ClusterConnectionServerProvider.java#L50-L51
5
+ */
6
+ export const WEB_MAX_TIME_MS_LIMIT = 300_000 ;
7
+
1
8
/**
2
9
* Default for maxTimeMS option.
3
10
*/
Original file line number Diff line number Diff line change @@ -11,7 +11,10 @@ import {
11
11
} from '@mongodb-js/compass-components' ;
12
12
import { connect } from '../stores/context' ;
13
13
import OptionEditor from './option-editor' ;
14
- import { OPTION_DEFINITION } from '../constants/query-option-definition' ;
14
+ import {
15
+ OPTION_DEFINITION ,
16
+ WEB_MAX_TIME_MS_LIMIT ,
17
+ } from '../constants/query-option-definition' ;
15
18
import type {
16
19
QueryOptionOfTypeDocument ,
17
20
QueryOption as QueryOptionType ,
@@ -81,9 +84,6 @@ export const documentEditorLabelContainerStyles = css(
81
84
}
82
85
) ;
83
86
84
- // Data Explorer limits for maxTimeMS (5 minutes = 300,000ms)
85
- const WEB_MAX_TIME_MS_LIMIT = 300_000 ; // 5 minutes
86
-
87
87
type QueryBarProperty = Exclude < QueryProperty , 'update' > ;
88
88
89
89
type QueryOptionProps = {
You can’t perform that action at this time.
0 commit comments