Is your feature request related to a problem? Please describe.
tctl workflow reset supports reset_type argument. The ResetWorkflowExecution gRPC API accepts only workflow_task_finish_event_id. So all the logic of finding reset point resides in the tctl. This makes the logic not reusable when SDKs invoke reset operation directly.
Describe the solution you'd like
Move logic of finding reset point to the service by adding reset_type argument to ResetWorkflowExecutionRequest.
Is your feature request related to a problem? Please describe.
tctl workflow resetsupportsreset_typeargument. The ResetWorkflowExecution gRPC API accepts onlyworkflow_task_finish_event_id. So all the logic of finding reset point resides in the tctl. This makes the logic not reusable when SDKs invoke reset operation directly.Describe the solution you'd like
Move logic of finding reset point to the service by adding reset_type argument to ResetWorkflowExecutionRequest.