mirror of
https://github.com/hanzoai/tasks.git
synced 2026-10-30 14:56:19 +00:00
<!-- Describe what has changed in this PR --> **What changed?** Add parent execution search attributes to ES mappings <!-- Tell your future self why have you made these changes --> **Why?** PR https://github.com/temporalio/temporal/pull/5054 modified the SQL schemas to add parent execution to visibility. This one does for ES. <!-- How have you verified this change? Tested locally? Added a unit test? Checked in staging env? --> **How did you test it?** Unit Tests. <!-- Assuming the worst case, what can be broken when deploying this change to production? --> **Potential risks** No. <!-- Is this PR a hotfix candidate or require that a notification be sent to the broader community? (Yes/No) --> **Is hotfix candidate?** No.
94 lines
1.9 KiB
JSON
94 lines
1.9 KiB
JSON
{
|
|
"order": 0,
|
|
"index_patterns": ["temporal_visibility_v1*"],
|
|
"settings": {
|
|
"index": {
|
|
"number_of_shards": "1",
|
|
"number_of_replicas": "0",
|
|
"auto_expand_replicas": "0-2",
|
|
"search.idle.after": "365d",
|
|
"sort.field": ["CloseTime", "StartTime", "RunId"],
|
|
"sort.order": ["desc", "desc", "desc"],
|
|
"sort.missing": ["_first", "_first", "_first"]
|
|
}
|
|
},
|
|
"mappings": {
|
|
"dynamic": "false",
|
|
"properties": {
|
|
"NamespaceId": {
|
|
"type": "keyword"
|
|
},
|
|
"TemporalNamespaceDivision": {
|
|
"type": "keyword"
|
|
},
|
|
"WorkflowId": {
|
|
"type": "keyword"
|
|
},
|
|
"RunId": {
|
|
"type": "keyword"
|
|
},
|
|
"WorkflowType": {
|
|
"type": "keyword"
|
|
},
|
|
"StartTime": {
|
|
"type": "date_nanos"
|
|
},
|
|
"ExecutionTime": {
|
|
"type": "date_nanos"
|
|
},
|
|
"CloseTime": {
|
|
"type": "date_nanos"
|
|
},
|
|
"ExecutionDuration": {
|
|
"type": "long"
|
|
},
|
|
"ExecutionStatus": {
|
|
"type": "keyword"
|
|
},
|
|
"TaskQueue": {
|
|
"type": "keyword"
|
|
},
|
|
"TemporalChangeVersion": {
|
|
"type": "keyword"
|
|
},
|
|
"BatcherNamespace": {
|
|
"type": "keyword"
|
|
},
|
|
"BatcherUser": {
|
|
"type": "keyword"
|
|
},
|
|
"BinaryChecksums": {
|
|
"type": "keyword"
|
|
},
|
|
"HistoryLength": {
|
|
"type": "long"
|
|
},
|
|
"StateTransitionCount": {
|
|
"type": "long"
|
|
},
|
|
"TemporalScheduledStartTime": {
|
|
"type": "date_nanos"
|
|
},
|
|
"TemporalScheduledById": {
|
|
"type": "keyword"
|
|
},
|
|
"TemporalSchedulePaused": {
|
|
"type": "boolean"
|
|
},
|
|
"HistorySizeBytes": {
|
|
"type": "long"
|
|
},
|
|
"BuildIds": {
|
|
"type": "keyword"
|
|
},
|
|
"ParentWorkflowId": {
|
|
"type": "keyword"
|
|
},
|
|
"ParentRunId": {
|
|
"type": "keyword"
|
|
}
|
|
}
|
|
},
|
|
"aliases": {}
|
|
}
|