Skip to content

Commit

Permalink
Add Stubs for Workflow Rules
Browse files Browse the repository at this point in the history
  • Loading branch information
ychebotarev committed Feb 12, 2025
1 parent baf84d8 commit 1ab8065
Show file tree
Hide file tree
Showing 12 changed files with 274 additions and 3 deletions.
40 changes: 40 additions & 0 deletions client/frontend/client_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

56 changes: 56 additions & 0 deletions client/frontend/metric_client_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

60 changes: 60 additions & 0 deletions client/frontend/retryable_client_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions cmd/tools/getproto/files.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions common/api/metadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,10 @@ var (
"DeleteWorkerDeploymentVersion": {Scope: ScopeNamespace, Access: AccessWrite},
"UpdateWorkerDeploymentVersionMetadata": {Scope: ScopeNamespace, Access: AccessWrite},
"ListWorkerDeployments": {Scope: ScopeNamespace, Access: AccessReadOnly},
"CreateWorkflowRule": {Scope: ScopeNamespace, Access: AccessReadOnly},
"DescribeWorkflowRule": {Scope: ScopeNamespace, Access: AccessReadOnly},
"DeleteWorkflowRule": {Scope: ScopeNamespace, Access: AccessReadOnly},
"ListWorkflowRules": {Scope: ScopeNamespace, Access: AccessReadOnly},
}
operatorServiceMetadata = map[string]MethodMetadata{
"AddSearchAttributes": {Scope: ScopeNamespace, Access: AccessAdmin},
Expand Down
16 changes: 16 additions & 0 deletions common/rpc/interceptor/logtags/workflow_service_server_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions common/rpc/interceptor/redirection.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,11 @@ var (
"DeleteWorkerDeployment": func() any { return &workflowservice.DeleteWorkerDeploymentResponse{} },
"DeleteWorkerDeploymentVersion": func() any { return &workflowservice.DeleteWorkerDeploymentVersionResponse{} },
"UpdateWorkerDeploymentVersionMetadata": func() any { return &workflowservice.UpdateWorkerDeploymentVersionMetadataResponse{} },

"CreateWorkflowRule": func() any { return &workflowservice.CreateWorkflowRuleResponse{} },
"DescribeWorkflowRule": func() any { return &workflowservice.DescribeWorkflowRuleResponse{} },
"DeleteWorkflowRule": func() any { return &workflowservice.DeleteWorkflowRuleResponse{} },
"ListWorkflowRules": func() any { return &workflowservice.ListWorkflowRulesResponse{} },
}
)

Expand Down
4 changes: 4 additions & 0 deletions common/rpc/interceptor/redirection_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,10 @@ func (s *redirectionInterceptorSuite) TestGlobalAPI() {
"DeleteWorkerDeployment": {},
"DeleteWorkerDeploymentVersion": {},
"UpdateWorkerDeploymentVersionMetadata": {},
"CreateWorkflowRule": {},
"DescribeWorkflowRule": {},
"DeleteWorkflowRule": {},
"ListWorkflowRules": {},
}, apis)
}

Expand Down
Loading

0 comments on commit 1ab8065

Please sign in to comment.