mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
fixing importing saved objects when there's a missing index pattern (#22068)
This commit is contained in:
parent
a73a928dea
commit
3f9caf5a31
1 changed files with 9 additions and 1 deletions
|
@ -200,6 +200,7 @@ export class Flyout extends Component {
|
|||
isOverwriteAllChecked,
|
||||
conflictedSavedObjectsLinkedToSavedSearches,
|
||||
conflictedSearchDocs,
|
||||
failedImports
|
||||
} = this.state;
|
||||
|
||||
const { services, indexPatterns } = this.props;
|
||||
|
@ -239,6 +240,13 @@ export class Flyout extends Component {
|
|||
indexPatterns,
|
||||
isOverwriteAllChecked
|
||||
);
|
||||
this.setState({
|
||||
loadingMessage: 'Retrying failed objects...',
|
||||
});
|
||||
importCount += await saveObjects(
|
||||
failedImports.map(({ obj }) => obj),
|
||||
isOverwriteAllChecked
|
||||
);
|
||||
} catch (e) {
|
||||
this.setState({
|
||||
error: e.message,
|
||||
|
@ -392,7 +400,7 @@ export class Flyout extends Component {
|
|||
);
|
||||
}
|
||||
|
||||
if (failedImports.length) {
|
||||
if (failedImports.length && !this.hasConflicts) {
|
||||
return (
|
||||
<EuiCallOut
|
||||
title="Import failed"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue