client_v7.go ×3

Frontier kind: Joint frontier

unlabeled · c_9d6b9d33ef15

1 test · 264 LOC · 13 files · introduces 1 test · 27 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
3 ranges27 lines · 1 files
Tests
1 test

Contains — complete concept membership

All code (extent)
34 ranges264 lines · 13 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.

Introduced files, introduced tests, and structurally relevant concept specializationtags.go ×9 · 37 introduced LOCtags.go ×9cluster.pb.go ×2 · 200 introduced LOCcluster.pb.go ×2TestOperatorServiceMetadata, TestWorkflowServiceMetadata · 0 introduced LOCTestOperatorServiceMetad…go.temporal.io/server/api/enums/v1/cluster.pb.go · 233 LOCv1/cluster.pb.gogo.temporal.io/server/api/enums/v1/common.pb.go · 288 LOCv1/common.pb.gogo.temporal.io/server/api/enums/v1/dlq.pb.go · 211 LOCv1/dlq.pb.gogo.temporal.io/server/api/enums/v1/fairness_state.pb.go · 147 LOCv1/fairness_state.pb.gogo.temporal.io/server/api/enums/v1/nexus.pb.go · 182 LOCv1/nexus.pb.gogo.temporal.io/server/api/enums/v1/predicate.pb.go · 194 LOCv1/predicate.pb.gogo.temporal.io/server/api/enums/v1/replication.pb.go · 338 LOCv1/replication.pb.gogo.temporal.io/server/api/enums/v1/task.pb.go · 480 LOCv1/task.pb.gogo.temporal.io/server/api/enums/v1/workflow.pb.go · 299 LOCv1/workflow.pb.gogo.temporal.io/server/api/enums/v1/workflow_task_type.pb.go · 148 LOCv1/workflow_task_type.pb…go.temporal.io/server/common/log/tag/tags.go · 1039 LOCtag/tags.gogo.temporal.io/server/common/log/tag/zap_tag.go · 242 LOCtag/zap_tag.gogo.temporal.io/server/common/persistence/visibility/store/elasticsearch/client/client_v7.go · 451 LOCclient/client_v7.goTestOperatorServiceMetadata · introduced test · go.temporal.io/server/common/api/TestOperatorServiceMetadataTestOperatorServiceMetad…TestWorkflowServiceMetadata · introduced test · go.temporal.io/server/common/api/TestWorkflowServiceMetadataTestWorkflowServiceMetad…Test_BuildPutMappingBody · introduced test · go.temporal.io/server/common/persistence/visibility/store/elasticsearch/client/Test_BuildPutMappingBodyTest_BuildPutMappingBodyFocused concept · client_v7.go ×3 · 27 introduced LOCclient_v7.go ×3

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: 27 introduced LOC across 3 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

go.temporal.io/server/common/persistence/visibility/store/elasticsearch/client/client_v7.go 27 introduced LOC · 3 ranges

Open complete file

372 }
373
374 > func buildMappingBody(mapping map[string]enumspb.IndexedValueType) map[string]any { client_v7.go
375 > properties := make(map[string]any, len(mapping))
376 > for fieldName, fieldType := range mapping {
377 > var typeMap map[string]any
378 > switch fieldType {
379 > case enumspb.INDEXED_VALUE_TYPE_TEXT:
380 > typeMap = map[string]any{"type": "text"}
381 > case enumspb.INDEXED_VALUE_TYPE_KEYWORD, enumspb.INDEXED_VALUE_TYPE_KEYWORD_LIST:
382 > typeMap = map[string]any{"type": "keyword"}
383 > case enumspb.INDEXED_VALUE_TYPE_INT:
384 > typeMap = map[string]any{"type": "long"}
385 > case enumspb.INDEXED_VALUE_TYPE_DOUBLE:
386 > typeMap = map[string]any{
387 > "type": "scaled_float",
388 > "scaling_factor": 10000,
389 > }
390 > case enumspb.INDEXED_VALUE_TYPE_BOOL:
391 > typeMap = map[string]any{"type": "boolean"}
392 > case enumspb.INDEXED_VALUE_TYPE_DATETIME:
393 > typeMap = map[string]any{"type": "date_nanos"}
394 }
395 > if typeMap != nil { client_v7.go
396 > properties[fieldName] = typeMap
397 > }
398 }
399
400 > body := map[string]any{ client_v7.go
401 > "properties": properties,
402 > }
403 > return body
404 }
405