214
// 3. Behavior: this is returned when there is no override (most common case). Behavior is
215
// set based on the worker-sent deployment in the latest WFT completion.
216
>
func GetEffectiveVersioningBehavior(versioningInfo *workflowpb.WorkflowExecutionVersioningInfo) enumspb.VersioningBehavior {
util.go
217
>
if versioningInfo == nil {
218
>
return enumspb.VERSIONING_BEHAVIOR_UNSPECIFIED
219
>
} else if t := versioningInfo.GetVersionTransition(); t != nil {
220
return enumspb.VERSIONING_BEHAVIOR_AUTO_UPGRADE
221
} else if override := versioningInfo.GetVersioningOverride(); override != nil {