mirror of https://github.com/apache/druid.git
Web console: better lookup 404 detection (#14108)
* better lookup 404 detection * update snapshot
This commit is contained in:
parent
e8674e2a60
commit
4fffee1776
|
@ -16,6 +16,8 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import { deepGet } from './object-change';
|
||||
|
||||
export function isLookupsUninitialized(error: Error | undefined) {
|
||||
return error && error.message === 'Request failed with status code 404';
|
||||
return deepGet(error || {}, 'response.status') === 404;
|
||||
}
|
||||
|
|
|
@ -210,7 +210,7 @@ exports[`LookupsView matches snapshot 1`] = `
|
|||
multiSort={true}
|
||||
nestingLevelKey="_nestingLevel"
|
||||
nextText="Next"
|
||||
noDataText=""
|
||||
noDataText="No lookups"
|
||||
ofText="of"
|
||||
onFetchData={[Function]}
|
||||
onFilteredChange={[Function]}
|
||||
|
|
|
@ -355,11 +355,7 @@ export class LookupsView extends React.PureComponent<LookupsViewProps, LookupsVi
|
|||
<ReactTable
|
||||
data={lookups}
|
||||
loading={lookupEntriesAndTiersState.loading}
|
||||
noDataText={
|
||||
!lookupEntriesAndTiersState.loading && !lookups.length
|
||||
? 'No lookups'
|
||||
: lookupEntriesAndTiersState.getErrorMessage() || ''
|
||||
}
|
||||
noDataText={lookupEntriesAndTiersState.getErrorMessage() || 'No lookups'}
|
||||
filterable
|
||||
filtered={lookupFilter}
|
||||
onFilteredChange={filtered => {
|
||||
|
|
Loading…
Reference in New Issue