Skip to content

Commit

Permalink
[Task Manager] Provide "include_type_name: true" in put template (ela…
Browse files Browse the repository at this point in the history
…stic#30261)

* [Task Manager] Provide "include_type_name: true" in put template

* fix for 7.0+
  • Loading branch information
tsullivan committed Feb 6, 2019
1 parent 4b4e1de commit b94c461
Showing 1 changed file with 21 additions and 25 deletions.
46 changes: 21 additions & 25 deletions x-pack/plugins/task_manager/task_store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ import {
import { Logger } from './lib/logger';
import { ConcreteTaskInstance, ElasticJs, TaskInstance, TaskStatus } from './task';

const DOC_TYPE = '_doc';

export interface StoreOpts {
callCluster: ElasticJs;
getKibanaUuid: () => string;
Expand Down Expand Up @@ -172,30 +170,28 @@ export class TaskStore {
body: {
index_patterns: [this.index],
mappings: {
[DOC_TYPE]: {
dynamic: false,
properties: {
type: { type: 'keyword' },
task: {
properties: {
taskType: { type: 'keyword' },
scheduledAt: { type: 'date' },
runAt: { type: 'date' },
interval: { type: 'text' },
attempts: { type: 'integer' },
status: { type: 'keyword' },
params: { type: 'text' },
state: { type: 'text' },
user: { type: 'keyword' },
scope: { type: 'keyword' },
},
dynamic: false,
properties: {
type: { type: 'keyword' },
task: {
properties: {
taskType: { type: 'keyword' },
scheduledAt: { type: 'date' },
runAt: { type: 'date' },
interval: { type: 'text' },
attempts: { type: 'integer' },
status: { type: 'keyword' },
params: { type: 'text' },
state: { type: 'text' },
user: { type: 'keyword' },
scope: { type: 'keyword' },
},
kibana: {
properties: {
apiVersion: { type: 'integer' }, // 1, 2, 3, etc
uuid: { type: 'keyword' }, //
version: { type: 'integer' }, // 7000099, etc
},
},
kibana: {
properties: {
apiVersion: { type: 'integer' }, // 1, 2, 3, etc
uuid: { type: 'keyword' }, //
version: { type: 'integer' }, // 7000099, etc
},
},
},
Expand Down

0 comments on commit b94c461

Please sign in to comment.