visibility_store.go ×5

Frontier kind: Joint frontier

unlabeled · c_78c90c58297d

1 test · 2310 LOC · 95 files · introduces 1 test · 25 LOC · 2 files

Introduces — evidence that enters the hierarchy at this concept

Code
7 ranges25 lines · 2 files
Tests
1 test

Contains — complete concept membership

All code (extent)
406 ranges2310 lines · 95 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.

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

go.temporal.io/server/common/persistence/visibility/store/elasticsearch/visibility_store.go 14 introduced LOC · 5 ranges

Open complete file

545 ctx context.Context,
546 request *manager.GetWorkflowExecutionRequest,
547 > ) (*store.InternalGetWorkflowExecutionResponse, error) { visibility_store.go
548 > docID := GetDocID(request.WorkflowID, request.RunID)
549 > result, err := s.esClient.Get(ctx, s.index, docID)
550 > if err != nil {
551 > return nil, ConvertElasticsearchClientError("GetWorkflowExecution failed", err, s.logger)
552 > }
553
554 > typeMap, err := s.searchAttributesProvider.GetSearchAttributes(s.index, false) visibility_store.go
555 > if err != nil {
556 return nil, serviceerror.NewUnavailablef(
557 "unable to read search attribute types: %v", err,
559 }
560
561 > if !result.Found { visibility_store.go
562 return nil, serviceerror.NewNotFoundf(
563 "Workflow execution with RunId %s not found", request.RunID,
565 }
566
567 > workflowExecutionInfo, err := s.ParseESDoc(result.Id, result.Source, typeMap, request.Namespace, nil) visibility_store.go
568 > if err != nil {
569 return nil, err
570 }
571
572 > return &store.InternalGetWorkflowExecutionResponse{ visibility_store.go
573 > Execution: workflowExecutionInfo,
574 > }, nil
575 }
576
go.temporal.io/server/common/persistence/visibility/store/elasticsearch/client/client_mock.go 11 introduced LOC · 2 ranges

Open complete file

119
120 // Get mocks base method.
121 > func (m *MockClient) Get(ctx context.Context, index, docID string) (*elastic.GetResult, error) { client_mock.go
122 > m.ctrl.T.Helper()
123 > ret := m.ctrl.Call(m, "Get", ctx, index, docID)
124 > ret0, _ := ret[0].(*elastic.GetResult)
125 > ret1, _ := ret[1].(error)
126 > return ret0, ret1
127 > }
128
129 // Get indicates an expected call of Get.
130 > func (mr *MockClientMockRecorder) Get(ctx, index, docID any) *gomock.Call { client_mock.go
131 > mr.mock.ctrl.T.Helper()
132 > return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockClient)(nil).Get), ctx, index, docID)
133 > }
134
135 // GetMapping mocks base method.