Handle failing queries for log viewer
parent
7d39f74551
commit
7f7b61d5ec
|
@ -279,12 +279,17 @@ export const incrementQueryCount = () => ({
|
||||||
|
|
||||||
export const executeQueriesAsync = () => async dispatch => {
|
export const executeQueriesAsync = () => async dispatch => {
|
||||||
dispatch(incrementQueryCount())
|
dispatch(incrementQueryCount())
|
||||||
|
try {
|
||||||
await Promise.all([
|
await Promise.all([
|
||||||
dispatch(executeHistogramQueryAsync()),
|
dispatch(executeHistogramQueryAsync()),
|
||||||
dispatch(executeTableQueryAsync()),
|
dispatch(executeTableQueryAsync()),
|
||||||
])
|
])
|
||||||
|
} catch (ex) {
|
||||||
|
console.error('Could not make query requests')
|
||||||
|
} finally {
|
||||||
dispatch(decrementQueryCount())
|
dispatch(decrementQueryCount())
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
export const setSearchTermAsync = (searchTerm: string) => async dispatch => {
|
export const setSearchTermAsync = (searchTerm: string) => async dispatch => {
|
||||||
dispatch({
|
dispatch({
|
||||||
|
|
|
@ -315,7 +315,7 @@ class LogsTable extends Component<Props, State> {
|
||||||
if (this.isClickable(column)) {
|
if (this.isClickable(column)) {
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
className={classnames(`logs-viewer--cell`, {
|
className={classnames('logs-viewer--cell', {
|
||||||
highlight: highlightRow,
|
highlight: highlightRow,
|
||||||
})}
|
})}
|
||||||
title={`Filter by "${value}"`}
|
title={`Filter by "${value}"`}
|
||||||
|
|
|
@ -122,7 +122,7 @@ class LogsPage extends PureComponent<Props, State> {
|
||||||
}
|
}
|
||||||
|
|
||||||
private get isSpecificTimeRange(): boolean {
|
private get isSpecificTimeRange(): boolean {
|
||||||
return !!this.props.timeRange.upper
|
return !!getDeep(this.props, 'timeRange.upper', false)
|
||||||
}
|
}
|
||||||
|
|
||||||
private startUpdating = () => {
|
private startUpdating = () => {
|
||||||
|
|
Loading…
Reference in New Issue