api.go ×5

Frontier kind: Code frontier

unlabeled · c_155b5fbf5770

6 tests · 8462 LOC · 261 files · introduces 0 tests · 27 LOC · 2 files

Introduces — evidence that enters the hierarchy at this concept

Code
6 ranges27 lines · 2 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
1732 ranges8462 lines · 261 files · Browse complete extent
All tests (intent)
6 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.

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

go.temporal.io/server/service/history/api/startworkflow/api.go 25 introduced LOC · 5 ranges

Open complete file

370 }
371
372 > if err := s.createAsCurrent(ctx, creationParams, currentWorkflowConditionFailed); err != nil { api.go
373 return nil, StartErr, err
374 }
375 > resp, err := s.generateResponse( api.go
376 > creationParams.runID,
377 > creationParams.runID, // brand-new chain after replacing current
378 > creationParams.workflowTaskInfo,
379 > extractHistoryEvents(creationParams.workflowEventBatches),
380 > )
381 > return resp, startOutcome, err
382 }
383
387 creationParams *creationParams,
388 currentWorkflowConditionFailed *persistence.CurrentWorkflowConditionFailedError,
389 > ) error { api.go
390 > // TODO(stephanos): remove this hack
391 > // This is here for Update-with-Start to reapply the Update after it was aborted previously.
392 > if _, err := s.createOrUpdateLeaseFn(creationParams.workflowLease, s.shardContext, nil); err != nil {
393 return err
394 }
395 > return creationParams.workflowLease.GetContext().CreateWorkflowExecution( api.go
396 > ctx,
397 > s.shardContext,
398 > persistence.CreateWorkflowModeUpdateCurrent,
399 > currentWorkflowConditionFailed.RunID,
400 > currentWorkflowConditionFailed.LastWriteVersion,
401 > creationParams.workflowLease.GetMutableState(),
402 > creationParams.workflowSnapshot,
403 > creationParams.workflowEventBatches,
404 > historyi.TransactionPolicyActive,
405 > )
406 }
407
473 case err != nil:
474 return nil, StartErr, err
475 > case currentExecutionUpdateAction == nil: api.go
476 > return nil, StartNew, nil
477 }
478
go.temporal.io/server/service/history/api/create_workflow_util.go 2 introduced LOC · 1 range

Open complete file

134 // TODO(stephanos): remove this hack
135 if existingLease != nil {
136 > return existingLease, nil create_workflow_util.go
137 > }
138 return NewWorkflowLease(
139 workflow.NewContext(