api.go ×5

Frontier kind: Code frontier

unlabeled · c_1204bebf2583

12 tests · 5346 LOC · 203 files · introduces 0 tests · 16 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
5 ranges16 lines · 1 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
943 ranges5346 lines · 203 files · Browse complete extent
All tests (intent)
12 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: 16 introduced LOC across 5 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

go.temporal.io/server/service/history/api/getworkflowexecutionhistory/api.go 16 introduced LOC · 5 ranges

Open complete file

258 continuationToken.IsWorkflowRunning = isWorkflowRunning
259 }
260 > } else { api.go
261 > continuationToken = &tokenspb.HistoryContinuation{}
262 > if !isCloseEventOnly {
263 queryNextEventID = common.FirstEventID
264 }
265 > continuationToken.BranchToken, runID, lastFirstEventID, nextEventID, isWorkflowRunning, continuationToken.VersionHistoryItem, continuationToken.VersionedTransition, cachedTransientTasks, err = api.go
266 > queryMutableState(namespaceID, execution, queryNextEventID, nil, nil, nil)
267 > if err != nil {
268 return nil, err
269 }
270
271 > execution.RunId = runID api.go
272 >
273 > continuationToken.RunId = runID
274 > continuationToken.FirstEventId = common.FirstEventID
275 > continuationToken.NextEventId = nextEventID
276 > continuationToken.IsWorkflowRunning = isWorkflowRunning
277 > continuationToken.PersistenceToken = nil
278 }
279
326 }
327 if isCloseEventOnly {
328 > if !isWorkflowRunning { api.go
329 > if sendRawWorkflowHistoryForNamespace || sendRawHistoryBetweenInternalServices {
330 historyBlob, _, err = api.GetRawHistory(
331 ctx,
390 history.Events = history.Events[len(history.Events)-1 : len(history.Events)]
391 }
392 > continuationToken = nil api.go
393 } else if isLongPoll {
394 // set the persistence token to be nil so next time we will query history for updates