api.go ×5

Frontier kind: Joint frontier

unlabeled · c_efc38c8bd624

1 test · 8615 LOC · 258 files · introduces 1 test · 26 LOC · 3 files

Introduces — evidence that enters the hierarchy at this concept

Code
7 ranges26 lines · 3 files
Tests
1 test

Contains — complete concept membership

All code (extent)
1829 ranges8615 lines · 258 files · Browse complete extent
All tests (intent)
1 testBrowse 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.

1 test introduced at this concept.

Introduced code

Every collected source range enters the hierarchy at exactly one concept.

3 files ranked by introduced lines: 26 introduced LOC across 7 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

go.temporal.io/server/service/history/api/refreshworkflow/api.go 14 introduced LOC · 5 ranges

Open complete file

18 shardContext historyi.ShardContext,
19 workflowConsistencyChecker api.WorkflowConsistencyChecker,
20 > ) (retError error) { api.go
21 > err := api.ValidateNamespaceUUID(namespace.ID(workflowKey.NamespaceID))
22 > if err != nil {
23 return err
24 }
25
26 > if archetypeID == chasm.UnspecifiedArchetypeID { api.go
27 archetypeID = chasm.WorkflowArchetypeID
28 }
29
30 > chasmLease, err := workflowConsistencyChecker.GetChasmLease( api.go
31 > ctx,
32 > nil,
33 > workflowKey,
34 > archetypeID,
35 > locks.PriorityLow,
36 > )
37 > if err != nil {
38 return err
39 }
40 > defer func() { chasmLease.GetReleaseFn()(retError) }() api.go
41
42 > return chasmLease.GetContext().RefreshTasks(ctx, shardContext) api.go
43 }
go.temporal.io/server/service/history/history_engine.go 9 introduced LOC · 1 range

Open complete file

1012 execution *commonpb.WorkflowExecution,
1013 archetypeID chasm.ArchetypeID,
1014 > ) (retError error) { history_engine.go
1015 > return refreshworkflow.Invoke(
1016 > ctx,
1017 > definition.NewWorkflowKey(namespaceUUID.String(), execution.WorkflowId, execution.RunId),
1018 > archetypeID,
1019 > e.shardContext,
1020 > e.workflowConsistencyChecker,
1021 > )
1022 > }
1023
1024 func (e *historyEngineImpl) GenerateLastHistoryReplicationTasks(
go.temporal.io/server/service/history/api/consistency_checker.go 3 introduced LOC · 1 range

Open complete file

158 archetypeID chasm.ArchetypeID,
159 lockPriority locks.Priority,
160 > ) (WorkflowLease, error) { consistency_checker.go
161 > return c.getWorkflowLeaseImpl(ctx, reqClock, nil, workflowKey, archetypeID, lockPriority)
162 > }
163
164 func (c *WorkflowConsistencyCheckerImpl) GetChasmLeaseWithConsistencyCheck(