api.go ×5

Frontier kind: Code frontier

unlabeled · c_82753b290beb

3 tests · 2867 LOC · 140 files · introduces 0 tests · 29 LOC · 2 files

Introduces — evidence that enters the hierarchy at this concept

Code
6 ranges29 lines · 2 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
464 ranges2867 lines · 140 files · Browse complete extent
All tests (intent)
3 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: 29 introduced LOC across 6 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

go.temporal.io/server/service/history/api/addtasks/api.go 23 introduced LOC · 5 ranges

Open complete file

92
93 // group by namespaceID + execution businessID + archetypeID
94 > archetypeID := chasm.WorkflowArchetypeID api.go
95 > if hasArchetypeID, ok := deserializedTask.(tasks.HasArchetypeID); ok {
96 archetypeID = hasArchetypeID.GetArchetypeID()
97 }
98 > if archetypeID == chasm.UnspecifiedArchetypeID { api.go
99 archetypeID = chasm.WorkflowArchetypeID
100 }
101 > groupKey := taskGroupKey{ api.go
102 > namespaceID: deserializedTask.GetNamespaceID(),
103 > businessID: deserializedTask.GetWorkflowID(),
104 > archetypeID: archetypeID,
105 > }
106 >
107 > if _, ok := taskGroups[groupKey]; !ok {
108 > taskGroups[groupKey] = make(map[tasks.Category][]tasks.Task, 1)
109 > }
110
111 > taskGroups[groupKey][category] = append(taskGroups[groupKey][category], deserializedTask) api.go
112 }
113
114 > for groupKey, taskGroup := range taskGroups { api.go
115 > err := shardContext.AddTasks(ctx, &persistence.AddHistoryTasksRequest{
116 > ShardID: shardContext.GetShardID(),
117 > RangeID: shardContext.GetRangeID(),
118 > NamespaceID: groupKey.namespaceID,
119 > WorkflowID: groupKey.businessID,
120 > ArchetypeID: groupKey.archetypeID,
121 > Tasks: taskGroup,
122 > })
123 > if err != nil {
124 return nil, err
125 }
go.temporal.io/server/service/history/interfaces/shard_context_mock.go 6 introduced LOC · 1 range

Open complete file

585
586 // GetRangeID mocks base method.
587 > func (m *MockShardContext) GetRangeID() int64 { shard_context_mock.go
588 > m.ctrl.T.Helper()
589 > ret := m.ctrl.Call(m, "GetRangeID")
590 > ret0, _ := ret[0].(int64)
591 > return ret0
592 > }
593
594 // GetRangeID indicates an expected call of GetRangeID.