From f2e6b73759c71e6d33a78f04bb86bafd8f5c449e Mon Sep 17 00:00:00 2001 From: sankari gopalakrishnan Date: Wed, 26 Feb 2025 15:37:28 +0100 Subject: [PATCH] [Wf-Diagnostics] fix input mappers for identity field in Diagnose Workflow API --- common/types/mapper/proto/api.go | 3 ++- common/types/mapper/thrift/shared.go | 2 ++ common/types/testdata/service_frontend.go | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/common/types/mapper/proto/api.go b/common/types/mapper/proto/api.go index c95c66e1799..72a1d075196 100644 --- a/common/types/mapper/proto/api.go +++ b/common/types/mapper/proto/api.go @@ -1274,6 +1274,7 @@ func FromDiagnoseWorkflowExecutionRequest(t *types.DiagnoseWorkflowExecutionRequ return &apiv1.DiagnoseWorkflowExecutionRequest{ Domain: t.GetDomain(), WorkflowExecution: FromWorkflowExecution(t.GetWorkflowExecution()), + Identity: t.GetIdentity(), } } @@ -1284,7 +1285,7 @@ func ToDiagnoseWorkflowExecutionRequest(t *apiv1.DiagnoseWorkflowExecutionReques return &types.DiagnoseWorkflowExecutionRequest{ Domain: t.GetDomain(), WorkflowExecution: ToWorkflowExecution(t.GetWorkflowExecution()), - Identity: t.Identity, + Identity: t.GetIdentity(), } } diff --git a/common/types/mapper/thrift/shared.go b/common/types/mapper/thrift/shared.go index 1fa54f828d9..03be99ac165 100644 --- a/common/types/mapper/thrift/shared.go +++ b/common/types/mapper/thrift/shared.go @@ -1833,6 +1833,7 @@ func FromDiagnoseWorkflowExecutionRequest(t *types.DiagnoseWorkflowExecutionRequ return &shared.DiagnoseWorkflowExecutionRequest{ Domain: &t.Domain, WorkflowExecution: FromWorkflowExecution(t.GetWorkflowExecution()), + Identity: &t.Identity, } } @@ -1844,6 +1845,7 @@ func ToDiagnoseWorkflowExecutionRequest(t *shared.DiagnoseWorkflowExecutionReque return &types.DiagnoseWorkflowExecutionRequest{ Domain: t.GetDomain(), WorkflowExecution: ToWorkflowExecution(t.GetWorkflowExecution()), + Identity: t.GetIdentity(), } } diff --git a/common/types/testdata/service_frontend.go b/common/types/testdata/service_frontend.go index a9dd1102d34..14963793318 100644 --- a/common/types/testdata/service_frontend.go +++ b/common/types/testdata/service_frontend.go @@ -398,6 +398,7 @@ var ( DiagnoseWorkflowExecutionRequest = types.DiagnoseWorkflowExecutionRequest{ Domain: DomainName, WorkflowExecution: &WorkflowExecution, + Identity: Identity, } DiagnoseWorkflowExecutionResponse = types.DiagnoseWorkflowExecutionResponse{ Domain: DomainName,