mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
[file_upload] include caused_by field for import failures (#107907)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
parent
1649661ffd
commit
37a97b435e
2 changed files with 5 additions and 0 deletions
|
@ -111,6 +111,10 @@ export interface ImportResponse {
|
|||
export interface ImportFailure {
|
||||
item: number;
|
||||
reason: string;
|
||||
caused_by?: {
|
||||
type: string;
|
||||
reason: string;
|
||||
};
|
||||
doc: ImportDoc;
|
||||
}
|
||||
|
||||
|
|
|
@ -164,6 +164,7 @@ export function importDataProvider({ asCurrentUser }: IScopedClusterClient) {
|
|||
failures.push({
|
||||
item: i,
|
||||
reason: item.index.error.reason,
|
||||
caused_by: item.index.error.caused_by,
|
||||
doc: data[i],
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue