Skip to content

Commit fa0418d

Browse files
committed
update idl, fix unit test
1 parent b0df8d8 commit fa0418d

File tree

8 files changed

+30
-2
lines changed

8 files changed

+30
-2
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ require (
1515
github.com/robfig/cron v1.2.0
1616
github.com/stretchr/testify v1.9.0
1717
github.com/uber-go/tally v3.3.15+incompatible
18-
github.com/uber/cadence-idl v0.0.0-20250604213822-24397860b164
18+
github.com/uber/cadence-idl v0.0.0-20250616185004-cc6f52f87bc6
1919
github.com/uber/jaeger-client-go v2.22.1+incompatible
2020
github.com/uber/tchannel-go v1.32.1
2121
go.uber.org/atomic v1.11.0

go.sum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,8 @@ github.com/uber-go/tally v3.3.15+incompatible h1:9hLSgNBP28CjIaDmAuRTq9qV+UZY+9P
203203
github.com/uber-go/tally v3.3.15+incompatible/go.mod h1:YDTIBxdXyOU/sCWilKB4bgyufu1cEi0jdVnRdxvjnmU=
204204
github.com/uber/cadence-idl v0.0.0-20250604213822-24397860b164 h1:Awn9X7dqzz3xH7N5ydEsrFrnlm9/tDW4srT9Sl+PISs=
205205
github.com/uber/cadence-idl v0.0.0-20250604213822-24397860b164/go.mod h1:oyUK7GCNCRHCCyWyzifSzXpVrRYVBbAMHAzF5dXiKws=
206+
github.com/uber/cadence-idl v0.0.0-20250616185004-cc6f52f87bc6 h1:YJlEu9Unzifwdn6SuE4rrl4zJ5lop5gBfSX8AyodTww=
207+
github.com/uber/cadence-idl v0.0.0-20250616185004-cc6f52f87bc6/go.mod h1:oyUK7GCNCRHCCyWyzifSzXpVrRYVBbAMHAzF5dXiKws=
206208
github.com/uber/jaeger-client-go v2.22.1+incompatible h1:NHcubEkVbahf9t3p75TOCR83gdUHXjRJvjoBh1yACsM=
207209
github.com/uber/jaeger-client-go v2.22.1+incompatible/go.mod h1:WVhlPFC8FDjOFMMWRy2pZqQJSXxYSwNYOkTr/Z6d3Kk=
208210
github.com/uber/jaeger-lib v2.2.0+incompatible/go.mod h1:ComeNDZlWwrWnDv8aPp0Ba6+uUTzImX/AauajbLI56U=

internal/common/auth/service_wrapper.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -511,3 +511,8 @@ func (w *workflowServiceAuthWrapper) RestartWorkflowExecution(ctx context.Contex
511511
opts = append(opts, *tokenHeader)
512512
return w.service.RestartWorkflowExecution(ctx, request, opts...)
513513
}
514+
515+
func (w *workflowServiceAuthWrapper) DeleteDomain(ctx context.Context, DeleteRequest *shared.DeleteDomainRequest, opts ...yarpc.CallOption) error {
516+
//TODO implement me
517+
return nil
518+
}

internal/common/isolationgroup/service_wrapper.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,3 +311,8 @@ func (w *workflowServiceIsolationGroupWrapper) RestartWorkflowExecution(ctx cont
311311
opts = append(opts, w.getIsolationGroupIdentifier())
312312
return w.service.RestartWorkflowExecution(ctx, request, opts...)
313313
}
314+
315+
func (w *workflowServiceIsolationGroupWrapper) DeleteDomain(ctx context.Context, DeleteRequest *shared.DeleteDomainRequest, opts ...yarpc.CallOption) error {
316+
//TODO implement me
317+
return nil
318+
}

internal/common/metrics/service_wrapper.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ const (
9393
scopeRefreshWorkflowTasks = CadenceMetricsPrefix + "RefreshWorkflowTasks"
9494
scopeNameGetTaskListsByDomain = CadenceMetricsPrefix + "GetTaskListsByDomain"
9595
scopeRestartWorkflowExecution = CadenceMetricsPrefix + "RestartWorkflowExecution"
96+
scopeDeleteDomain = CadenceMetricsPrefix + "DeleteDomain"
9697
)
9798

9899
// NewWorkflowServiceWrapper creates a new wrapper to WorkflowService that will emit metrics for each service call.
@@ -444,3 +445,11 @@ func (w *workflowServiceMetricsWrapper) RestartWorkflowExecution(ctx context.Con
444445
scope.handleError(err)
445446
return resp, err
446447
}
448+
449+
func (w *workflowServiceMetricsWrapper) DeleteDomain(ctx context.Context, request *shared.DeleteDomainRequest, opts ...yarpc.CallOption) error {
450+
//TODO implement me
451+
scope := w.getOperationScope(scopeDeleteDomain)
452+
err := w.service.DeleteDomain(ctx, request, opts...)
453+
scope.handleError(err)
454+
return err
455+
}

internal/compatibility/adapter.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,11 @@ func (a thrift2protoAdapter) RestartWorkflowExecution(ctx context.Context, reque
268268
return thrift.RestartWorkflowExecutionResponse(response), proto.Error(err)
269269
}
270270

271+
func (a thrift2protoAdapter) DeleteDomain(ctx context.Context, DeleteRequest *shared.DeleteDomainRequest, opts ...yarpc.CallOption) error {
272+
//TODO implement me
273+
return nil
274+
}
275+
271276
type domainAPIthriftAdapter struct {
272277
service workflowserviceclient.Interface
273278
}

internal/internal_workflow_client_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2539,6 +2539,7 @@ func TestGetWorkflowStartRequest(t *testing.T) {
25392539
DecisionTaskStartToCloseTimeout: 5 * time.Second,
25402540
DelayStart: 0 * time.Second,
25412541
JitterStart: 0 * time.Second,
2542+
CronOverlapPolicy: shared.CronOverlapPolicyBufferone,
25422543
},
25432544
workflowFunc: func(ctx Context) {},
25442545
wantRequest: &shared.StartWorkflowExecutionRequest{
@@ -2558,6 +2559,7 @@ func TestGetWorkflowStartRequest(t *testing.T) {
25582559
CronSchedule: common.StringPtr(""),
25592560
Header: &shared.Header{Fields: map[string][]byte{}},
25602561
WorkflowIdReusePolicy: shared.WorkflowIdReusePolicyAllowDuplicateFailedOnly.Ptr(),
2562+
CronOverlapPolicy: shared.CronOverlapPolicyBufferone.Ptr(),
25612563
},
25622564
},
25632565
{

0 commit comments

Comments
 (0)