request_response.pb.go ×4

Frontier kind: Code frontier

unlabeled · c_f2acde845cb2

337 tests · 3030 LOC · 129 files · introduces 0 tests · 89 LOC · 4 files

Introduces — evidence that enters the hierarchy at this concept

Code
11 ranges89 lines · 4 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
411 ranges3030 lines · 129 files · Browse complete extent
All tests (intent)
337 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.

4 files ranked by introduced lines: 89 introduced LOC across 11 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

go.temporal.io/server/service/history/historybuilder/event_factory.go 58 introduced LOC · 3 ranges

Open complete file

36 firstRunID string,
37 originalRunID string,
38 > ) *historypb.HistoryEvent { event_factory.go
39 > event := b.createHistoryEvent(enumspb.EVENT_TYPE_WORKFLOW_EXECUTION_STARTED, startTime)
40 > req := request.StartRequest
41 >
42 > // Versioning override might be set on the workflow service request if a user passes it to
43 > // StartWorkflow options, or it might be set on the history service request if a workflow is
44 > // continuing-as-new and inheriting a Pinned override. Use whichever of the two is non-nil.
45 > nonNilVersioningOverride := req.GetVersioningOverride() // From user.
46 > if nonNilVersioningOverride == nil {
47 > nonNilVersioningOverride = request.GetVersioningOverride() // From server during continue-as-new.
48 > }
49
50 > attributes := &historypb.WorkflowExecutionStartedEventAttributes{ event_factory.go
51 > WorkflowType: req.WorkflowType,
52 > TaskQueue: req.TaskQueue,
53 > Header: req.Header,
54 > Input: req.Input,
55 > WorkflowRunTimeout: req.WorkflowRunTimeout,
56 > WorkflowExecutionTimeout: req.WorkflowExecutionTimeout,
57 > WorkflowTaskTimeout: req.WorkflowTaskTimeout,
58 > ContinuedExecutionRunId: prevRunID,
59 > PrevAutoResetPoints: resetPoints,
60 > Identity: req.Identity,
61 > RetryPolicy: req.RetryPolicy,
62 > Attempt: request.GetAttempt(),
63 > WorkflowExecutionExpirationTime: request.WorkflowExecutionExpirationTime,
64 > CronSchedule: req.CronSchedule,
65 > LastCompletionResult: request.LastCompletionResult,
66 > ContinuedFailure: request.GetContinuedFailure(),
67 > Initiator: request.ContinueAsNewInitiator,
68 > FirstWorkflowTaskBackoff: request.FirstWorkflowTaskBackoff,
69 > FirstExecutionRunId: firstRunID,
70 > OriginalExecutionRunId: originalRunID,
71 > // Filter nil values here rather than in the API layer because not all
72 > // creation paths go through the frontend (e.g. continue-as-new, child workflows, replication).
73 > Memo: payload.FilterNilMemo(req.Memo),
74 > SearchAttributes: payload.FilterNilSearchAttributes(req.SearchAttributes),
75 > WorkflowId: req.WorkflowId,
76 > SourceVersionStamp: request.SourceVersionStamp,
77 > CompletionCallbacks: req.CompletionCallbacks,
78 > RootWorkflowExecution: request.RootExecutionInfo.GetExecution(),
79 > InheritedBuildId: request.InheritedBuildId,
80 > VersioningOverride: worker_versioning.ConvertOverrideToV32(nonNilVersioningOverride),
81 > Priority: req.GetPriority(),
82 > InheritedPinnedVersion: request.InheritedPinnedVersion,
83 > // We expect the API handler to unset RequestEagerExecution if eager execution cannot be accepted.
84 > EagerExecutionAccepted: req.GetRequestEagerExecution(),
85 > InheritedAutoUpgradeInfo: request.InheritedAutoUpgradeInfo,
86 > DeclinedTargetVersionUpgrade: request.DeclinedTargetVersionUpgrade,
87 > TimeSkippingConfig: req.GetTimeSkippingConfig(),
88 > TimeSkippingStatePropagation: request.GetTimeSkippingStatePropagation(),
89 > }
90 >
91 > parentInfo := request.ParentExecutionInfo
92 > if parentInfo != nil {
93 attributes.ParentWorkflowNamespaceId = parentInfo.NamespaceId
94 attributes.ParentWorkflowNamespace = parentInfo.Namespace
98 }
99
100 > event.Attributes = &historypb.HistoryEvent_WorkflowExecutionStartedEventAttributes{ event_factory.go
101 > WorkflowExecutionStartedEventAttributes: attributes,
102 > }
103 > return event
104 }
105
go.temporal.io/server/api/historyservice/v1/request_response.pb.go 16 introduced LOC · 4 ranges

Open complete file

258 }
259
260 > func (x *StartWorkflowExecutionRequest) GetAttempt() int32 { request_response.pb.go
261 > if x != nil {
262 > return x.Attempt
263 > }
264 return 0
265 }
279 }
280
281 > func (x *StartWorkflowExecutionRequest) GetContinuedFailure() *v13.Failure { request_response.pb.go
282 > if x != nil {
283 > return x.ContinuedFailure
284 > }
285 return nil
286 }
321 }
322
323 > func (x *StartWorkflowExecutionRequest) GetVersioningOverride() *v15.VersioningOverride { request_response.pb.go
324 > if x != nil {
325 > return x.VersioningOverride
326 > }
327 return nil
328 }
356 }
357
358 > func (x *StartWorkflowExecutionRequest) GetTimeSkippingStatePropagation() *v14.TimeSkippingStatePropagation { request_response.pb.go
359 > if x != nil {
360 > return x.TimeSkippingStatePropagation
361 > }
362 return nil
363 }
go.temporal.io/server/service/history/historybuilder/history_builder.go 13 introduced LOC · 3 ranges

Open complete file

168 firstInChainRunID string,
169 originalRunID string,
170 > ) *historypb.HistoryEvent { history_builder.go
171 > event := b.CreateWorkflowExecutionStartedEvent(
172 > startTime,
173 > request,
174 > resetPoints,
175 > prevRunID,
176 > firstInChainRunID,
177 > originalRunID,
178 > )
179 > if request.StartRequest.GetUserMetadata() != nil {
180 event.UserMetadata = request.StartRequest.GetUserMetadata()
181 }
182 > if len(request.StartRequest.GetLinks()) > 0 { history_builder.go
183 event.Links = request.StartRequest.GetLinks()
184 }
185 > event, _ = b.add(event) history_builder.go
186 > return event
187 }
188
go.temporal.io/server/api/workflow/v1/message.pb.go 2 introduced LOC · 1 range

Open complete file

160 }
161
162 > func (x *RootExecutionInfo) GetExecution() *v1.WorkflowExecution { message.pb.go
163 > if x != nil {
164 return x.Execution
165 }