visibility_manager_impl.go ×5

Frontier kind: Code frontier

unlabeled · c_8e54572778fd

51 tests · 3645 LOC · 176 files · introduces 0 tests · 27 LOC · 4 files

Introduces — evidence that enters the hierarchy at this concept

Code
10 ranges27 lines · 4 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
599 ranges3645 lines · 176 files · Browse complete extent
All tests (intent)
51 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: 27 introduced LOC across 10 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

go.temporal.io/server/common/persistence/visibility/visibility_manager_impl.go 14 introduced LOC · 5 ranges

Open complete file

146 ctx context.Context,
147 request *manager.ListWorkflowExecutionsRequestV2,
148 > ) (*manager.ListWorkflowExecutionsResponse, error) { visibility_manager_impl.go
149 > response, err := p.store.ListWorkflowExecutions(ctx, request)
150 > if err != nil {
151 return nil, err
152 }
153
154 > return p.convertInternalListResponse(response, request.Namespace) visibility_manager_impl.go
155 }
156
450 internalResponse *store.InternalListExecutionsResponse,
451 namespaceName namespace.Name,
452 > ) (*manager.ListWorkflowExecutionsResponse, error) { visibility_manager_impl.go
453 > if internalResponse == nil {
454 return nil, nil
455 }
456
457 > resp := &manager.ListWorkflowExecutionsResponse{} visibility_manager_impl.go
458 > resp.Executions = make([]*workflowpb.WorkflowExecutionInfo, len(internalResponse.Executions))
459 > for i, execution := range internalResponse.Executions {
460 > var err error
461 > resp.Executions[i], err = p.convertToWorkflowExecutionInfo(execution, namespaceName)
462 > if err != nil {
463 return nil, err
464 }
465 }
466
467 > resp.NextPageToken = internalResponse.NextPageToken visibility_manager_impl.go
468 > return resp, nil
469 }
470
go.temporal.io/server/common/persistence/visibility/visiblity_manager_metrics.go 8 introduced LOC · 2 ranges

Open complete file

124 ctx context.Context,
125 request *manager.ListWorkflowExecutionsRequestV2,
126 > ) (*manager.ListWorkflowExecutionsResponse, error) { visiblity_manager_metrics.go
127 > handler, startTime := m.tagScope(metrics.VisibilityPersistenceListWorkflowExecutionsScope)
128 > response, err := m.delegate.ListWorkflowExecutions(ctx, request)
129 > elapsed := time.Since(startTime)
130 > if elapsed > m.slowQueryThreshold() {
131 m.logger.Warn("List query exceeded threshold",
132 tag.Duration("duration", elapsed),
135 )
136 }
137 > metrics.VisibilityPersistenceLatency.With(handler).Record(elapsed) visiblity_manager_metrics.go
138 > metrics.ContextCounterAdd(ctx, metrics.TaskPersistenceLatency.Name(), elapsed.Nanoseconds())
139 > return response, m.updateErrorMetric(handler, err)
140 }
141
go.temporal.io/server/common/persistence/visibility/visibility_manager_rate_limited.go 3 introduced LOC · 2 ranges

Open complete file

111 ctx context.Context,
112 request *manager.ListWorkflowExecutionsRequestV2,
113 > ) (*manager.ListWorkflowExecutionsResponse, error) { visibility_manager_rate_limited.go
114 > if ok := allow(ctx, "ListWorkflowExecutions", m.readRateLimiter); !ok {
115 return nil, persistence.ErrPersistenceSystemLimitExceeded
116 }
117 > return m.delegate.ListWorkflowExecutions(ctx, request) visibility_manager_rate_limited.go
118 }
119
go.temporal.io/server/common/persistence/visibility/store/sql/visibility_store.go 2 introduced LOC · 1 range

Open complete file

197 ctx context.Context,
198 request *manager.ListWorkflowExecutionsRequestV2,
199 > ) (*store.InternalListExecutionsResponse, error) { visibility_store.go
200 > if s.enableUnifiedQueryConverter() {
201 return s.listWorkflowExecutions(ctx, request)
202 }