workflow_handler.go ×7

Frontier kind: Code frontier

unlabeled · c_c74b7946a1fc

9 tests · 3940 LOC · 200 files · introduces 0 tests · 8 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
7 ranges8 lines · 1 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
603 ranges3940 lines · 200 files · Browse complete extent
All tests (intent)
9 testsBrowse 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.

No tests are introduced at this concept. Its intent tests are introduced by other concepts.

Introduced code

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

1 file ranked by introduced lines: 8 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 8 introduced LOC · 7 ranges

Open complete file

881 return nil, "", errMultiOpNamespaceMismatch
882 }
883 > if err := wh.prepareUpdateWorkflowRequest(updateReq); err != nil { workflow_handler.go
884 return nil, "", err
885 }
5400 func (wh *WorkflowHandler) prepareUpdateWorkflowRequest(
5401 request *workflowservice.UpdateWorkflowExecutionRequest,
5402 > ) error { workflow_handler.go
5403 > if request == nil {
5404 return errRequestNotSet
5405 }
5406
5407 > if err := validateExecution(request.GetWorkflowExecution()); err != nil { workflow_handler.go
5408 return err
5409 }
5410
5411 > if request.GetRequest().GetMeta() == nil { workflow_handler.go
5412 return errUpdateMetaNotSet
5413 }
5414
5415 > if len(request.GetRequest().GetMeta().GetUpdateId()) > wh.config.MaxIDLengthLimit() { workflow_handler.go
5416 return errUpdateIDTooLong
5417 }
5418
5419 > if request.GetRequest().GetMeta().GetUpdateId() == "" { workflow_handler.go
5420 request.GetRequest().GetMeta().UpdateId = uuid.NewString()
5421 }
5422
5423 > if request.GetRequest().GetInput() == nil { workflow_handler.go
5424 return errUpdateInputNotSet
5425 }