Skip to content

Commit

Permalink
Merge pull request #13 from devit-tel/feature/add-task-path-to-mapping
Browse files Browse the repository at this point in the history
Feature/add task path to mapping
  • Loading branch information
NV4RE authored Mar 23, 2020
2 parents 04f083b + b80a34f commit 59b26be
Show file tree
Hide file tree
Showing 2 changed files with 182 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/store/elasticsearch/event.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,10 @@ const ES_EVENTS_MAPPING = {
workflowId: {
type: 'keyword',
},
taskPath: {
type: 'object',
enabled: false,
},
},
},
isError: {
Expand Down
178 changes: 178 additions & 0 deletions src/store/elasticsearch/upgradeMapping.http
Original file line number Diff line number Diff line change
@@ -0,0 +1,178 @@
POST http://localhost:9200/melonade-docker-compose-event/event/_mapping HTTP/1.1
Content-Type: application/json

{
"event": {
"properties": {
"details": {
"properties": {
"ackTimeout": {
"type": "date"
},
"createTime": {
"type": "date"
},
"endTime": {
"type": "date"
},
"input": {
"type": "object",
"enabled": false
},
"isRetried": {
"type": "boolean"
},
"logs": {
"type": "text"
},
"output": {
"type": "object",
"enabled": false
},
"parallelTasks": {
"type": "object",
"enabled": false
},
"retries": {
"type": "long"
},
"retryDelay": {
"type": "long"
},
"startTime": {
"type": "date"
},
"status": {
"type": "keyword"
},
"tags": {
"type": "keyword"
},
"taskId": {
"type": "keyword"
},
"taskName": {
"type": "keyword"
},
"taskReferenceName": {
"type": "keyword"
},
"timeout": {
"type": "long"
},
"transactionId": {
"type": "keyword"
},
"type": {
"type": "keyword"
},
"workflowDefinition": {
"properties": {
"description": {
"type": "text"
},
"failureStrategy": {
"type": "keyword"
},
"name": {
"type": "keyword"
},
"outputParameters": {
"type": "object",
"enabled": false
},
"rev": {
"type": "keyword"
},
"tasks": {
"properties": {
"ackTimeout": {
"type": "long"
},
"inputParameters": {
"type": "object",
"enabled": false
},
"name": {
"type": "keyword"
},
"parallelTasks": {
"properties": {
"ackTimeout": {
"type": "long"
},
"inputParameters": {
"type": "object",
"enabled": false
},
"name": {
"type": "keyword"
},
"retry": {
"properties": {
"delay": {
"type": "long"
},
"limit": {
"type": "long"
}
}
},
"taskReferenceName": {
"type": "keyword"
},
"timeout": {
"type": "long"
},
"type": {
"type": "keyword"
}
}
},
"retry": {
"properties": {
"delay": {
"type": "long"
},
"limit": {
"type": "long"
}
}
},
"taskReferenceName": {
"type": "keyword"
},
"timeout": {
"type": "long"
},
"type": {
"type": "keyword"
}
}
}
}
},
"workflowId": {
"type": "keyword"
},
"taskPath": {
"type": "object",
"enabled": false
}
}
},
"isError": {
"type": "boolean"
},
"timestamp": {
"type": "date"
},
"transactionId": {
"type": "keyword"
},
"type": {
"type": "keyword"
}
}
}
}

0 comments on commit 59b26be

Please sign in to comment.