[ML] Adds isRequired where applicable to timeseries_chart props. (#26880)

Adds isRequired to timeseries_chart props to match the minimum required props necessary to render the component without errors reflected in the Minimal initialization test.
This commit is contained in:
Walter Rafelsberger 2018-12-11 11:38:17 +01:00 committed by GitHub
parent d739c4efc8
commit 6c44fed1e2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 7 deletions

View file

@ -79,19 +79,19 @@ export class TimeseriesChart extends React.Component {
contextAggregationInterval: PropTypes.object,
contextChartData: PropTypes.array,
contextForecastData: PropTypes.array,
contextChartSelected: PropTypes.func,
contextChartSelected: PropTypes.func.isRequired,
detectorIndex: PropTypes.string,
focusAggregationInterval: PropTypes.object,
focusChartData: PropTypes.array,
focusForecastData: PropTypes.array,
modelPlotEnabled: PropTypes.bool,
renderFocusChartOnly: PropTypes.bool,
modelPlotEnabled: PropTypes.bool.isRequired,
renderFocusChartOnly: PropTypes.bool.isRequired,
selectedJob: PropTypes.object,
showForecast: PropTypes.bool,
showModelBounds: PropTypes.bool,
svgWidth: PropTypes.number,
showForecast: PropTypes.bool.isRequired,
showModelBounds: PropTypes.bool.isRequired,
svgWidth: PropTypes.number.isRequired,
swimlaneData: PropTypes.array,
timefilter: PropTypes.object,
timefilter: PropTypes.object.isRequired,
zoomFrom: PropTypes.object,
zoomTo: PropTypes.object
}

View file

@ -37,6 +37,7 @@ function getTimeseriesChartPropsMock() {
return {
contextChartSelected: jest.fn(),
modelPlotEnabled: false,
renderFocusChartOnly: false,
showForecast: true,
showModelBounds: true,
svgWidth: 1600,