workflow_handler.go ×6

Frontier kind: Joint frontier

unlabeled · c_ef097332ef0a

1 test · 3847 LOC · 200 files · introduces 1 test · 21 LOC · 2 files

Introduces — evidence that enters the hierarchy at this concept

Code
7 ranges21 lines · 2 files
Tests
1 test

Contains — complete concept membership

All code (extent)
572 ranges3847 lines · 200 files · Browse complete extent
All tests (intent)
1 testBrowse complete intent

Neighbourhood graph

The orange circle is the focus. Violet and green circles are every ancestor and descendant, broader and narrower, at any distance; blue squares and pink diamonds are the introduced files and exact introduced tests of every visible concept, not only the focus's. Arrows point from broader to narrower concepts and bridge only concepts omitted from this view. Undirected links show source or test introduction. Concept and file size follows LOC; exact test nodes use test-count units.

Introduced files, introduced tests, and structurally relevant concept specialization

In the embedded map, ordinary wheel input scrolls the page; use the visible controls to zoom and drag to pan. Open the full-screen map for canvas navigation: wheel pans, Ctrl/Command plus wheel zooms, and arrow keys pan when this region is focused. On touch screens, open the full-screen map to pan or pinch. If JavaScript or WebGL is unavailable, use the native relationship evidence on this page.

Graph controls are ready.

Interactive rendering requires JavaScript and WebGL. Use the native relationship evidence on this page while the interactive map is unavailable.

Native relationship evidence

Every exact file and test below is linked only from the concept that introduces it.

Introduced tests

Every collected test enters the hierarchy at exactly one concept.

1 test introduced at this concept.

Introduced code

Every collected source range enters the hierarchy at exactly one concept.

2 files ranked by introduced lines: 21 introduced LOC across 7 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

go.temporal.io/server/service/frontend/workflow_handler.go 17 introduced LOC · 6 ranges

Open complete file

2381 // ResetWorkflowExecution reset an existing workflow execution to WorkflowTaskCompleted event(exclusive).
2382 // And it will immediately terminating the current execution instance.
2383 > func (wh *WorkflowHandler) ResetWorkflowExecution(ctx context.Context, request *workflowservice.ResetWorkflowExecutionRequest) (_ *workflowservice.ResetWorkflowExecutionResponse, retError error) { workflow_handler.go
2384 > defer log.CapturePanic(wh.logger, &retError)
2385 >
2386 > if request == nil {
2387 return nil, errRequestNotSet
2388 }
2389 > if request.GetRequestId() == "" { workflow_handler.go
2390 return nil, errRequestIDNotSet
2391 }
2392 > if len(request.GetRequestId()) > wh.config.MaxIDLengthLimit() { workflow_handler.go
2393 return nil, errRequestIDTooLong
2394 }
2395
2396 > if err := validateExecution(request.WorkflowExecution); err != nil { workflow_handler.go
2397 return nil, err
2398 }
2399
2400 > enums.SetDefaultResetReapplyType(&request.ResetReapplyType) workflow_handler.go
2401 > if _, validType := enumspb.ResetReapplyType_name[int32(request.GetResetReapplyType())]; !validType {
2402 return nil, serviceerror.NewInternalf("unknown reset reapply type: %v", request.GetResetReapplyType())
2403 }
2404
2405 > for _, postOp := range request.GetPostResetOperations() { workflow_handler.go
2406 > if updateOpts := postOp.GetUpdateWorkflowOptions(); updateOpts != nil {
2407 > if err := wh.validateTimeSkippingConfig(
2408 > updateOpts.GetWorkflowExecutionOptions().GetTimeSkippingConfig(),
2409 > namespace.Name(request.GetNamespace()),
2410 > ); err != nil {
2411 > return nil, err
2412 > }
2413 }
2414 }
go.temporal.io/server/common/enums/defaults.go 4 introduced LOC · 1 range

Open complete file

63 }
64
65 > func SetDefaultResetReapplyType(f *enumspb.ResetReapplyType) { defaults.go
66 > if *f == enumspb.RESET_REAPPLY_TYPE_UNSPECIFIED {
67 > *f = enumspb.RESET_REAPPLY_TYPE_ALL_ELIGIBLE
68 > }
69 }
70