Skip to content

Commit b0fd303

Browse files
committed
minor testdata
1 parent a102dd4 commit b0fd303

File tree

2 files changed

+19
-15
lines changed

2 files changed

+19
-15
lines changed

internal/compatibility/testdata/decision.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ var (
107107
SearchAttributes: &SearchAttributes,
108108
JitterStart: Duration4,
109109
CronOverlapPolicy: apiv1.CronOverlapPolicy_CRON_OVERLAP_POLICY_SKIPPED,
110+
ActiveClusterSelectionPolicy: ActiveClusterSelectionPolicyRegionSticky,
110111
}
111112
FailWorkflowExecutionDecisionAttributes = apiv1.FailWorkflowExecutionDecisionAttributes{
112113
Failure: &Failure,
@@ -163,6 +164,8 @@ var (
163164
Header: &Header,
164165
Memo: &Memo,
165166
SearchAttributes: &SearchAttributes,
167+
CronOverlapPolicy: apiv1.CronOverlapPolicy_CRON_OVERLAP_POLICY_SKIPPED,
168+
ActiveClusterSelectionPolicy: ActiveClusterSelectionPolicyRegionSticky,
166169
}
167170
StartTimerDecisionAttributes = apiv1.StartTimerDecisionAttributes{
168171
TimerId: TimerID,

internal/compatibility/thrift/types.go

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -421,21 +421,22 @@ func WorkflowExecutionInfo(t *apiv1.WorkflowExecutionInfo) *shared.WorkflowExecu
421421
return nil
422422
}
423423
return &shared.WorkflowExecutionInfo{
424-
Execution: WorkflowExecution(t.WorkflowExecution),
425-
Type: WorkflowType(t.Type),
426-
StartTime: timeToUnixNano(t.StartTime),
427-
CloseTime: timeToUnixNano(t.CloseTime),
428-
CloseStatus: WorkflowExecutionCloseStatus(t.CloseStatus),
429-
HistoryLength: &t.HistoryLength,
430-
ParentDomainId: ParentDomainID(t.ParentExecutionInfo),
431-
ParentExecution: ParentWorkflowExecution(t.ParentExecutionInfo),
432-
ExecutionTime: timeToUnixNano(t.ExecutionTime),
433-
Memo: Memo(t.Memo),
434-
SearchAttributes: SearchAttributes(t.SearchAttributes),
435-
AutoResetPoints: ResetPoints(t.AutoResetPoints),
436-
TaskList: &t.TaskList,
437-
IsCron: &t.IsCron,
438-
CronOverlapPolicy: CronOverlapPolicy(t.CronOverlapPolicy),
424+
Execution: WorkflowExecution(t.WorkflowExecution),
425+
Type: WorkflowType(t.Type),
426+
StartTime: timeToUnixNano(t.StartTime),
427+
CloseTime: timeToUnixNano(t.CloseTime),
428+
CloseStatus: WorkflowExecutionCloseStatus(t.CloseStatus),
429+
HistoryLength: &t.HistoryLength,
430+
ParentDomainId: ParentDomainID(t.ParentExecutionInfo),
431+
ParentExecution: ParentWorkflowExecution(t.ParentExecutionInfo),
432+
ExecutionTime: timeToUnixNano(t.ExecutionTime),
433+
Memo: Memo(t.Memo),
434+
SearchAttributes: SearchAttributes(t.SearchAttributes),
435+
AutoResetPoints: ResetPoints(t.AutoResetPoints),
436+
TaskList: &t.TaskList,
437+
IsCron: &t.IsCron,
438+
CronOverlapPolicy: CronOverlapPolicy(t.CronOverlapPolicy),
439+
ActiveClusterSelectionPolicy: ActiveClusterSelectionPolicy(t.ActiveClusterSelectionPolicy),
439440
}
440441
}
441442

0 commit comments

Comments
 (0)