request_response.pb.go ×5

Frontier kind: Code frontier

unlabeled · c_512c02d5099f

2 tests · 8622 LOC · 253 files · introduces 0 tests · 71 LOC · 3 files

Introduces — evidence that enters the hierarchy at this concept

Code
11 ranges71 lines · 3 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
1804 ranges8622 lines · 253 files · Browse complete extent
All tests (intent)
2 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.

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

go.temporal.io/server/service/history/api/queryworkflow/api.go 47 introduced LOC · 5 ranges

Open complete file

322 metricsHandler metrics.Handler,
323 priority *commonpb.Priority,
324 > ) (resp *historyservice.QueryWorkflowResponse, retError error) { api.go
325 >
326 > startTime := time.Now().UTC()
327 > defer func() {
328 > metrics.DirectQueryDispatchLatency.With(metricsHandler).Record(time.Since(startTime))
329 > emitWorkflowQueryMetrics(
330 > metricsHandler,
331 > nsEntry,
332 > msResp,
333 > queryRequest.GetQuery().GetQueryType(),
334 > retError,
335 > )
336 > }()
337
338 > directive := worker_versioning.MakeDirectiveForWorkflowTask( api.go
339 > msResp.GetInheritedBuildId(),
340 > msResp.GetAssignedBuildId(),
341 > msResp.GetMostRecentWorkerVersionStamp(),
342 > msResp.GetPreviousStartedEventId() != common.EmptyEventID,
343 > workflow.GetEffectiveVersioningBehavior(msResp.GetVersioningInfo()),
344 > workflow.GetEffectiveDeployment(msResp.GetVersioningInfo()),
345 > msResp.GetVersioningInfo().GetRevisionNumber(),
346 > // False for query, because it is not an initial workflow task.
347 > false,
348 > )
349 >
350 > if msResp.GetIsStickyTaskQueueEnabled() &&
351 > len(msResp.GetStickyTaskQueue().GetName()) != 0 &&
352 > shard.GetConfig().EnableStickyQuery(queryRequest.GetNamespace()) {
353
354 stickyMatchingRequest := &matchingservice.QueryWorkflowRequest{
394 }
395
396 > if err := common.IsValidContext(ctx); err != nil { api.go
397 metrics.DirectQueryDispatchTimeoutBeforeNonStickyCount.With(metricsHandler).Record(1)
398 return nil, err
399 }
400
401 > nonStickyMatchingRequest := &matchingservice.QueryWorkflowRequest{ api.go
402 > NamespaceId: namespaceID,
403 > QueryRequest: queryRequest,
404 > TaskQueue: msResp.TaskQueue,
405 > VersionDirective: directive,
406 > Priority: priority,
407 > }
408 >
409 > nonStickyStartTime := time.Now().UTC()
410 > matchingResp, err := matchingClient.QueryWorkflow(ctx, nonStickyMatchingRequest)
411 > metrics.DirectQueryDispatchNonStickyLatency.With(metricsHandler).Record(time.Since(nonStickyStartTime))
412 > if err != nil {
413 return nil, err
414 }
415 > metrics.DirectQueryDispatchNonStickySuccessCount.With(metricsHandler).Record(1) api.go
416 > return &historyservice.QueryWorkflowResponse{
417 > Response: &workflowservice.QueryWorkflowResponse{
418 > QueryResult: matchingResp.GetQueryResult(),
419 > QueryRejected: matchingResp.GetQueryRejected(),
420 > }}, err
421 }
422
go.temporal.io/server/api/historyservice/v1/request_response.pb.go 20 introduced LOC · 5 ranges

Open complete file

630 }
631
632 > func (x *GetMutableStateResponse) GetPreviousStartedEventId() int64 { request_response.pb.go
633 > if x != nil {
634 > return x.PreviousStartedEventId
635 > }
636 return 0
637 }
693 }
694
695 > func (x *GetMutableStateResponse) GetIsStickyTaskQueueEnabled() bool { request_response.pb.go
696 > if x != nil {
697 > return x.IsStickyTaskQueueEnabled
698 > }
699 return false
700 }
714 }
715
716 > func (x *GetMutableStateResponse) GetMostRecentWorkerVersionStamp() *v14.WorkerVersionStamp { request_response.pb.go
717 > if x != nil {
718 > return x.MostRecentWorkerVersionStamp
719 > }
720 return nil
721 }
722
723 > func (x *GetMutableStateResponse) GetAssignedBuildId() string { request_response.pb.go
724 > if x != nil {
725 > return x.AssignedBuildId
726 > }
727 return ""
728 }
729
730 > func (x *GetMutableStateResponse) GetInheritedBuildId() string { request_response.pb.go
731 > if x != nil {
732 > return x.InheritedBuildId
733 > }
734 return ""
735 }
go.temporal.io/server/api/matchingservice/v1/request_response.pb.go 4 introduced LOC · 1 range

Open complete file

1314 }
1315
1316 > func (x *QueryWorkflowResponse) GetQueryRejected() *v12.QueryRejected { request_response.pb.go
1317 > if x != nil {
1318 > return x.QueryRejected
1319 > }
1320 return nil
1321 }