api.go ×3

Frontier kind: Code frontier

unlabeled · c_3372d451d028

25 tests · 2628 LOC · 134 files · introduces 0 tests · 27 LOC · 2 files

Introduces — evidence that enters the hierarchy at this concept

Code
5 ranges27 lines · 2 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
387 ranges2628 lines · 134 files · Browse complete extent
All tests (intent)
25 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 5 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

go.temporal.io/server/service/history/api/recordworkflowtaskstarted/api.go 19 introduced LOC · 3 ranges

Open complete file

41 persistenceVisibilityMgr manager.VisibilityManager,
42 workflowConsistencyChecker api.WorkflowConsistencyChecker,
43 > ) (*historyservice.RecordWorkflowTaskStartedResponseWithRawHistory, error) { api.go
44 > namespaceEntry, err := api.GetActiveNamespace(shardContext, namespace.ID(req.GetNamespaceId()), req.WorkflowExecution.WorkflowId)
45 > if err != nil {
46 return nil, err
47 }
48
49 > scheduledEventID := req.GetScheduledEventId() api.go
50 > requestID := req.GetRequestId()
51 >
52 > var workflowKey definition.WorkflowKey
53 > var resp *historyservice.RecordWorkflowTaskStartedResponseWithRawHistory
54 >
55 > err = api.GetAndUpdateWorkflowWithNew(
56 > ctx,
57 > req.Clock,
58 > definition.NewWorkflowKey(
59 > req.NamespaceId,
60 > req.WorkflowExecution.WorkflowId,
61 > req.WorkflowExecution.RunId,
62 > ),
63 > func(workflowLease api.WorkflowLease) (res *api.UpdateWorkflowAction, retErr error) {
64 mutableState := workflowLease.GetMutableState()
65 if !mutableState.IsWorkflowExecutionRunning() {
237 )
238
239 > if err != nil { api.go
240 return nil, err
241 }
go.temporal.io/server/api/historyservice/v1/request_response.pb.go 8 introduced LOC · 2 ranges

Open complete file

1233 }
1234
1235 > func (x *RecordWorkflowTaskStartedRequest) GetNamespaceId() string { request_response.pb.go
1236 > if x != nil {
1237 > return x.NamespaceId
1238 > }
1239 return ""
1240 }
1254 }
1255
1256 > func (x *RecordWorkflowTaskStartedRequest) GetRequestId() string { request_response.pb.go
1257 > if x != nil {
1258 > return x.RequestId
1259 > }
1260 return ""
1261 }