Skip to content

Commit

Permalink
Addressing code review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
droberts195 committed Sep 9, 2020
1 parent 056a67f commit c1af6e2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions x-pack/plugins/ml/common/types/file_datavisualizer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ export interface Settings {
}

export interface Mappings {
_meta?: {
created_by: string;
};
properties: {
[key: string]: any;
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export function importDataProvider({ asCurrentUser }: IScopedClusterClient) {
}

async function createIndex(index: string, settings: Settings, mappings: Mappings) {
const body: { mappings: Mappings } = {
const body: { mappings: Mappings; settings?: Settings } = {
mappings: {
_meta: {
created_by: INDEX_META_DATA_CREATED_BY,
Expand Down

0 comments on commit c1af6e2

Please sign in to comment.