@@ -11,11 +11,7 @@ import {
1111} from '@mongodb-js/compass-components' ;
1212import { usePreference } from 'compass-preferences-model/provider' ;
1313import type { AnalysisState } from '../../constants/analysis-states' ;
14- import {
15- ANALYSIS_STATE_ERROR ,
16- ANALYSIS_STATE_TIMEOUT ,
17- ANALYSIS_STATE_COMPLETE ,
18- } from '../../constants/analysis-states' ;
14+ import { ANALYSIS_STATE_COMPLETE } from '../../constants/analysis-states' ;
1915import { QueryBar } from '@mongodb-js/compass-query-bar' ;
2016
2117const schemaToolbarStyles = css ( {
@@ -47,9 +43,6 @@ const schemaToolbarActionBarRightStyles = css({
4743 paddingLeft : spacing [ 2 ] ,
4844} ) ;
4945
50- const ERROR_WARNING = 'An error occurred during schema analysis' ;
51- const INCREASE_MAX_TIME_MS_HINT_MESSAGE =
52- 'Operation exceeded time limit. Please try increasing the maxTimeMS for the query in the filter options.' ;
5346const OUTDATED_WARNING_MESSAGE =
5447 'The schema content is outdated and no longer in sync' +
5548 ' with the documents view. Press "Analyze" again to see the schema for the' +
@@ -130,15 +123,6 @@ const SchemaToolbar: React.FunctionComponent<SchemaToolbarProps> = ({
130123 </ div >
131124 </ div >
132125 ) }
133- { analysisState === ANALYSIS_STATE_ERROR && (
134- < ErrorSummary
135- data-testid = "schema-toolbar-error-message"
136- errors = { [ `${ ERROR_WARNING } : ${ errorMessage } ` ] }
137- />
138- ) }
139- { analysisState === ANALYSIS_STATE_TIMEOUT && (
140- < WarningSummary warnings = { [ INCREASE_MAX_TIME_MS_HINT_MESSAGE ] } />
141- ) }
142126 { analysisState === ANALYSIS_STATE_COMPLETE && isOutdated && (
143127 < WarningSummary warnings = { [ OUTDATED_WARNING_MESSAGE ] } />
144128 ) }
0 commit comments