Skip to content

Commit c1af6e2

Browse files
author
David Roberts
committed
Addressing code review comments
1 parent 056a67f commit c1af6e2

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

x-pack/plugins/ml/common/types/file_datavisualizer.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,9 @@ export interface Settings {
8484
}
8585

8686
export interface Mappings {
87+
_meta?: {
88+
created_by: string;
89+
};
8790
properties: {
8891
[key: string]: any;
8992
};

x-pack/plugins/ml/server/models/file_data_visualizer/import_data.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ export function importDataProvider({ asCurrentUser }: IScopedClusterClient) {
8989
}
9090

9191
async function createIndex(index: string, settings: Settings, mappings: Mappings) {
92-
const body: { mappings: Mappings } = {
92+
const body: { mappings: Mappings; settings?: Settings } = {
9393
mappings: {
9494
_meta: {
9595
created_by: INDEX_META_DATA_CREATED_BY,

0 commit comments

Comments
 (0)