workflow_handler.go ×8

Frontier kind: Code frontier

unlabeled · c_a509e57e290a

10 tests · 3927 LOC · 199 files · introduces 0 tests · 33 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
8 ranges33 lines · 1 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
592 ranges3927 lines · 199 files · Browse complete extent
All tests (intent)
10 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: 33 introduced LOC across 8 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

go.temporal.io/server/service/frontend/workflow_handler.go 33 introduced LOC · 8 ranges

Open complete file

771 }
772
773 > metrics.EventBlobSize.With(wh.metricsScope(ctx).WithTags(metrics.CommandTypeTag(enumspb.COMMAND_TYPE_UNSPECIFIED.String()))).Record(int64(request.Operations[1].GetUpdateWorkflow().GetRequest().GetInput().GetArgs().Size()), metrics.OperationTag("UpdateWorkflowExecution")) workflow_handler.go
774 >
775 > historyReq, err := wh.convertToHistoryMultiOperationRequest(ctx, namespaceID, request)
776 > if err != nil {
777 return nil, err
778 }
800 namespaceID namespace.ID,
801 request *workflowservice.ExecuteMultiOperationRequest,
802 > ) (*historyservice.ExecuteMultiOperationRequest, error) { workflow_handler.go
803 > var lastWorkflowID string
804 > ops := make([]*historyservice.ExecuteMultiOperationRequest_Operation, len(request.Operations))
805 >
806 > var hasError bool
807 > errs := make([]error, len(request.Operations))
808 >
809 > for i, op := range request.Operations {
810 > convertedOp, opWorkflowID, err := wh.convertToHistoryMultiOperationItem(ctx, namespaceID, namespace.Name(request.Namespace), op)
811 > if err != nil {
812 hasError = true
813 > } else { workflow_handler.go
814 > // set to default in case the whole MultOp request
815 > err = errMultiOpAborted
816 >
817 > switch {
818 > case lastWorkflowID == "":
819 > lastWorkflowID = opWorkflowID
820 case lastWorkflowID != opWorkflowID:
821 err = errMultiOpWorkflowIdInconsistent
823 }
824 }
825 > errs[i] = err workflow_handler.go
826 > ops[i] = convertedOp
827 }
828
829 > if hasError { workflow_handler.go
830 return nil, serviceerror.NewMultiOperationExecution("Update-with-Start could not be executed.", errs)
831 }
843 namespaceName namespace.Name,
844 op *workflowservice.ExecuteMultiOperationRequest_Operation,
845 > ) (*historyservice.ExecuteMultiOperationRequest_Operation, string, error) { workflow_handler.go
846 > var workflowId string
847 > var opReq *historyservice.ExecuteMultiOperationRequest_Operation
848 >
849 > if startReq := op.GetStartWorkflow(); startReq != nil {
850 > if startReq.Namespace != "" && startReq.Namespace != namespaceName.String() {
851 return nil, "", errMultiOpNamespaceMismatch
852 }
877 },
878 }
879 > } else if updateReq := op.GetUpdateWorkflow(); updateReq != nil { workflow_handler.go
880 > if updateReq.Namespace != "" && updateReq.Namespace != namespaceName.String() {
881 return nil, "", errMultiOpNamespaceMismatch
882 }