history_store.go ×3

Frontier kind: Code frontier

unlabeled · c_a614eb86e077

333 tests · 3120 LOC · 158 files · introduces 0 tests · 23 LOC · 2 files

Introduces — evidence that enters the hierarchy at this concept

Code
4 ranges23 lines · 2 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
490 ranges3120 lines · 158 files · Browse complete extent
All tests (intent)
333 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: 23 introduced LOC across 4 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

go.temporal.io/server/common/persistence/sql/history_store.go 20 introduced LOC · 3 ranges

Open complete file

25 ctx context.Context,
26 request *p.InternalAppendHistoryNodesRequest,
27 > ) error { history_store.go
28 > branchInfo := request.BranchInfo
29 > node := request.Node
30 >
31 > treeIDBytes, err := primitives.ParseUUID(branchInfo.GetTreeId())
32 > if err != nil {
33 return err
34 }
35 > branchIDBytes, err := primitives.ParseUUID(branchInfo.GetBranchId()) history_store.go
36 > if err != nil {
37 return err
38 }
39
40 > nodeRow := &sqlplugin.HistoryNodeRow{ history_store.go
41 > TreeID: treeIDBytes,
42 > BranchID: branchIDBytes,
43 > NodeID: node.NodeID,
44 > PrevTxnID: node.PrevTransactionID,
45 > TxnID: node.TransactionID,
46 > Data: node.Events.Data,
47 > DataEncoding: node.Events.EncodingType.String(),
48 > ShardID: request.ShardID,
49 > }
50 >
51 > if !request.IsNewBranch {
52 _, err = m.DB.InsertIntoHistoryNode(ctx, nodeRow)
53 switch err {
go.temporal.io/server/common/persistence/sql/execution.go 3 introduced LOC · 1 range

Open complete file

741 }
742
743 > func (m *sqlExecutionStore) GetHistoryBranchUtil() p.HistoryBranchUtil { execution.go
744 > return m.HistoryBranchUtil
745 > }
746
747 func getStartTimeFromState(state *persistencespb.WorkflowExecutionState) *time.Time {