visibility_manager_impl.go ×8

Frontier kind: Code frontier

unlabeled · c_2789b2285eca

83 tests · 2330 LOC · 114 files · introduces 0 tests · 39 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
8 ranges39 lines · 1 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
359 ranges2330 lines · 114 files · Browse complete extent
All tests (intent)
83 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.

1 file ranked by introduced lines: 39 introduced LOC across 8 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

go.temporal.io/server/common/persistence/visibility/visibility_manager_impl.go 39 introduced LOC · 8 ranges

Open complete file

394 func (p *visibilityManagerImpl) newInternalVisibilityRequestBase(
395 request *manager.VisibilityRequestBase,
396 > ) (*store.InternalVisibilityRequestBase, error) { visibility_manager_impl.go
397 > if request == nil {
398 return nil, nil
399 }
400 > memoBlob, err := serializeMemo(request.Memo) visibility_manager_impl.go
401 > if err != nil {
402 return nil, err
403 }
404
405 > var searchAttrs *commonpb.SearchAttributes visibility_manager_impl.go
406 > if len(request.SearchAttributes.GetIndexedFields()) > 0 {
407 // Remove any system search attribute from the map.
408 // This is necessary because the validation can supress errors when trying
418 }
419
421 > parentWorkflowID *string
422 > parentRunID *string
423 > )
424 > if request.ParentExecution != nil {
425 parentWorkflowID = &request.ParentExecution.WorkflowId
426 parentRunID = &request.ParentExecution.RunId
427 }
428
429 > return &store.InternalVisibilityRequestBase{ visibility_manager_impl.go
430 > NamespaceID: request.NamespaceID.String(),
431 > WorkflowID: request.Execution.GetWorkflowId(),
432 > RunID: request.Execution.GetRunId(),
433 > WorkflowTypeName: request.WorkflowTypeName,
434 > StartTime: request.StartTime,
435 > Status: request.Status,
436 > ExecutionTime: request.ExecutionTime,
437 > TaskID: request.TaskID,
438 > ShardID: request.ShardID,
439 > TaskQueue: request.TaskQueue,
440 > Memo: memoBlob,
441 > SearchAttributes: searchAttrs,
442 > ParentWorkflowID: parentWorkflowID,
443 > ParentRunID: parentRunID,
444 > RootWorkflowID: request.RootExecution.GetWorkflowId(),
445 > RootRunID: request.RootExecution.GetRunId(),
446 > }, nil
447 }
448
556 }
557
558 > func serializeMemo(memo *commonpb.Memo) (*commonpb.DataBlob, error) { visibility_manager_impl.go
559 > if memo == nil {
560 > memo = &commonpb.Memo{}
561 > }
562
563 > data, err := proto.Marshal(memo) visibility_manager_impl.go
564 > if err != nil {
565 return nil, serviceerror.NewInternalf("Unable to serialize memo to data blob: %v", err)
566 }
567
568 > return &commonpb.DataBlob{ visibility_manager_impl.go
569 > Data: data,
570 > EncodingType: MemoEncoding,
571 > }, nil
572 }
573