workflow_handler.go ×7

Frontier kind: Joint frontier

unlabeled · c_a385ed5db19c

1 test · 3975 LOC · 200 files · introduces 1 test · 36 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
7 ranges36 lines · 1 files
Tests
1 test

Contains — complete concept membership

All code (extent)
602 ranges3975 lines · 200 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.

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

go.temporal.io/server/service/frontend/workflow_handler.go 36 introduced LOC · 7 ranges

Open complete file

6164 }
6165
6166 > if !wh.config.EnableBatcher(request.Namespace) { workflow_handler.go
6167 return nil, errBatchAPINotAllowed
6168 }
6169
6170 > maxPageSize := int32(wh.config.VisibilityMaxPageSize(request.GetNamespace())) workflow_handler.go
6171 > if request.GetPageSize() <= 0 || request.GetPageSize() > maxPageSize {
6172 > request.PageSize = maxPageSize
6173 > }
6174
6175 > resp, err := wh.ListWorkflowExecutions(ctx, &workflowservice.ListWorkflowExecutionsRequest{ workflow_handler.go
6176 > Namespace: request.GetNamespace(),
6177 > PageSize: request.PageSize,
6178 > NextPageToken: request.GetNextPageToken(),
6179 > Query: fmt.Sprintf("%s = '%s'",
6180 > sadefs.TemporalNamespaceDivision,
6181 > batcher.NamespaceDivision,
6182 > ),
6183 > })
6184 > if err != nil {
6185 return nil, err
6186 }
6187
6188 > var operations []*batchpb.BatchOperationInfo workflow_handler.go
6189 > for _, execution := range resp.GetExecutions() {
6190 > // Batch operations started before the operation type was recorded in the
6191 > // memo do not have this field, so they default to the zero value
6192 > // BATCH_OPERATION_TYPE_UNSPECIFIED.
6193 > var operationType enumspb.BatchOperationType
6194 > if typePayload, ok := execution.GetMemo().GetFields()[batcher.BatchOperationTypeMemo]; ok {
6195 > var operationTypeString string
6196 > if err := payload.Decode(typePayload, &operationTypeString); err != nil {
6197 return nil, err
6198 }
6199 > operationType = batchOperationTypeFromString(operationTypeString) workflow_handler.go
6200 }
6201 > operations = append(operations, &batchpb.BatchOperationInfo{ workflow_handler.go
6202 > JobId: execution.GetExecution().GetWorkflowId(),
6203 > State: getBatchOperationState(execution.GetStatus()),
6204 > StartTime: execution.GetStartTime(),
6205 > CloseTime: execution.GetCloseTime(),
6206 > OperationType: operationType,
6207 > })
6208 }
6209 > return &workflowservice.ListBatchOperationsResponse{ workflow_handler.go
6210 > OperationInfo: operations,
6211 > NextPageToken: resp.NextPageToken,
6212 > }, nil
6213 }
6214