mirror of
https://github.com/hanzoai/tasks.git
synced 2026-10-30 14:56:19 +00:00
## What changed? <!-- Describe what has changed in this PR --> Add root workflow execution to Visibility ## Why? <!-- Tell your future self why have you made these changes --> Follow up of https://github.com/temporalio/temporal/pull/5520. Be able to list all workflows based on the root execution. ## How did you test it? <!-- How have you verified this change? Tested locally? Added a unit test? Checked in staging env? --> Modified existing tests to check the root workflow execution. ## Potential risks <!-- Assuming the worst case, what can be broken when deploying this change to production? --> No. ## Documentation <!-- Have you made sure this change doesn't falsify anything currently stated in `docs/`? If significant new behavior is added, have you described that in `docs/`? --> ## Is hotfix candidate? <!-- Is this PR a hotfix candidate or does it require a notification to be sent to the broader community? (Yes/No) --> No.
100 lines
2.0 KiB
JSON
100 lines
2.0 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"
|
|
},
|
|
"RootWorkflowId": {
|
|
"type": "keyword"
|
|
},
|
|
"RootRunId": {
|
|
"type": "keyword"
|
|
}
|
|
}
|
|
},
|
|
"aliases": {}
|
|
}
|