encode_value.go ×1

Frontier kind: Code frontier

unlabeled · c_dc932f9bb384

30 tests · 728 LOC · 34 files · introduces 0 tests · 5 LOC · 2 files

Introduces — evidence that enters the hierarchy at this concept

Code
2 ranges5 lines · 2 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
60 ranges728 lines · 34 files · Browse complete extent
All tests (intent)
30 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.

Introduced files, introduced tests, and structurally relevant concept specializationarchiver.go ×1 · 2 introduced LOCarchiver.go ×1TestListExecutions_WithTaskQueueSearchAttribute · 0 introduced LOCTestListExecutions_WithT…visibility_value.go ×1 · 12 introduced LOCvisibility_value.go ×1Test_Decode_SkipsUnknownSAWithNoMetadataType · 0 introduced LOCTest_Decode_SkipsUnknown…Test_Decode_FallsBackToMetadataTypeForUnknownSA · 0 introduced LOCTest_Decode_FallsBackToM…Test_Decode_NilMap · 0 introduced LOCTest_Decode_NilMapencode.go ×2 · 12 introduced LOCencode.go ×2stringify.go ×2 · 6 introduced LOCstringify.go ×2stringify.go ×2 · 4 introduced LOCstringify.go ×2search_attribute.go ×2 · 5 introduced LOCsearch_attribute.go ×2encode.go ×1 · 3 introduced LOCencode.go ×1search_attribute.go ×1 · 4 introduced LOCsearch_attribute.go ×1stringify.go ×1 · 4 introduced LOCstringify.go ×1search_attribute.go ×1 · 9 introduced LOCsearch_attribute.go ×1allowList=true, allowList=false · 0 introduced LOCallowList=true, allowLis…allowList=true, allowList=false · 0 introduced LOCallowList=true, allowLis…allowList=true, allowList=false · 0 introduced LOCallowList=true, allowLis…allowList=true, allowList=false · 0 introduced LOCallowList=true, allowLis…incorrect_metadata_type · 0 introduced LOCincorrect_metadata_typeallowList=true, allowList=false · 0 introduced LOCallowList=true, allowLis…allowList=true, allowList=false · 0 introduced LOCallowList=true, allowLis…allowList=true, allowList=false · 0 introduced LOCallowList=true, allowLis…allowList=true, allowList=false · 0 introduced LOCallowList=true, allowLis…util.go ×1 · 1 introduced LOCutil.go ×1encode_value.go ×1 · 4 introduced LOCencode_value.go ×1encode_value.go ×2 · 3 introduced LOCencode_value.go ×2constants.go ×1 · 6 introduced LOCconstants.go ×1message.pb.go ×2 · 442 introduced LOCmessage.pb.go ×2message.pb.go ×2 · 49 introduced LOCmessage.pb.go ×2cluster.pb.go ×2 · 200 introduced LOCcluster.pb.go ×2message.pb.go ×2 · 20 introduced LOCmessage.pb.go ×2payload.go ×1 · 3 introduced LOCpayload.go ×1TestOperatorServiceMetadata, TestWorkflowServiceMetadata · 0 introduced LOCTestOperatorServiceMetad…go.temporal.io/server/api/clock/v1/message.pb.go · 217 LOCv1/message.pb.gogo.temporal.io/server/api/deployment/v1/message.pb.go · 4650 LOCv1/message.pb.gogo.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/api/history/v1/message.pb.go · 522 LOCv1/message.pb.gogo.temporal.io/server/api/persistence/v1/chasm.pb.go · 1215 LOCv1/chasm.pb.gogo.temporal.io/server/api/persistence/v1/chasm_visibility.pb.go · 170 LOCv1/chasm_visibility.pb.g…go.temporal.io/server/api/persistence/v1/cluster_metadata.pb.go · 313 LOCv1/cluster_metadata.pb.g…go.temporal.io/server/api/persistence/v1/executions.pb.go · 5768 LOCv1/executions.pb.gogo.temporal.io/server/api/persistence/v1/history_tree.pb.go · 298 LOCv1/history_tree.pb.gogo.temporal.io/server/api/persistence/v1/hsm.pb.go · 929 LOCv1/hsm.pb.gogo.temporal.io/server/api/persistence/v1/namespaces.pb.go · 560 LOCv1/namespaces.pb.gogo.temporal.io/server/api/persistence/v1/nexus.pb.go · 509 LOCv1/nexus.pb.gogo.temporal.io/server/api/persistence/v1/predicates.pb.go · 864 LOCv1/predicates.pb.gogo.temporal.io/server/api/persistence/v1/queue_metadata.pb.go · 129 LOCv1/queue_metadata.pb.gogo.temporal.io/server/api/persistence/v1/queues.pb.go · 641 LOCv1/queues.pb.gogo.temporal.io/server/api/persistence/v1/task_queues.pb.go · 924 LOCv1/task_queues.pb.gogo.temporal.io/server/api/persistence/v1/tasks.pb.go · 870 LOCv1/tasks.pb.gogo.temporal.io/server/api/persistence/v1/update.pb.go · 455 LOCv1/update.pb.gogo.temporal.io/server/api/persistence/v1/workflow_mutable_state.pb.go · 560 LOCv1/workflow_mutable_stat…go.temporal.io/server/api/taskqueue/v1/message.pb.go · 1363 LOCv1/message.pb.gogo.temporal.io/server/api/workflow/v1/message.pb.go · 302 LOCv1/message.pb.gogo.temporal.io/server/chasm/search_attribute.go · 525 LOCchasm/search_attribute.g…go.temporal.io/server/chasm/visibility_value.go · 181 LOCchasm/visibility_value.g…go.temporal.io/server/common/payload/payload.go · 127 LOCpayload/payload.gogo.temporal.io/server/common/searchattribute/encode.go · 101 LOCsearchattribute/encode.g…go.temporal.io/server/common/searchattribute/sadefs/constants.go · 396 LOCsadefs/constants.gogo.temporal.io/server/common/searchattribute/sadefs/encode_value.go · 168 LOCsadefs/encode_value.gogo.temporal.io/server/common/searchattribute/sadefs/util.go · 33 LOCsadefs/util.gogo.temporal.io/server/common/searchattribute/stringify.go · 210 LOCsearchattribute/stringif…go.temporal.io/server/service/history/archival/archiver.go · 269 LOCarchival/archiver.goInvalidPayload · introduced test · go.temporal.io/server/chasm/TestNewSearchAttributesMapFromProto/InvalidPayloadInvalidPayloadMultipleValueTypes · introduced test · go.temporal.io/server/chasm/TestNewSearchAttributesMapFromProto/MultipleValueTypesMultipleValueTypesSingleBoolValue · introduced test · go.temporal.io/server/chasm/TestNewSearchAttributesMapFromProto/SingleBoolValueSingleBoolValueTestOperatorServiceMetadata · introduced test · go.temporal.io/server/common/api/TestOperatorServiceMetadataTestOperatorServiceMetad…TestWorkflowServiceMetadata · introduced test · go.temporal.io/server/common/api/TestWorkflowServiceMetadataTestWorkflowServiceMetad…TestListExecutions_WithTaskQueueSearchAttribute · introduced test · go.temporal.io/server/common/persistence/visibility/TestChasmVisibilitySuite/TestListExecutions_WithTaskQueueSearchAttributeTestListExecutions_WithT…Test_Stringify · introduced test · go.temporal.io/server/common/searchattribute/TestStringifySuite/Test_StringifyTest_StringifyTest_Stringify_Array · introduced test · go.temporal.io/server/common/searchattribute/TestStringifySuite/Test_Stringify_ArrayTest_Stringify_ArrayTest_Decode_Error · introduced test · go.temporal.io/server/common/searchattribute/Test_Decode_ErrorTest_Decode_ErrorTest_Decode_FallsBackToMetadataTypeForUnknownSA · introduced test · go.temporal.io/server/common/searchattribute/Test_Decode_FallsBackToMetadataTypeForUnknownSATest_Decode_FallsBackToM…Test_Decode_NilMap · introduced test · go.temporal.io/server/common/searchattribute/Test_Decode_NilMapTest_Decode_NilMapTest_Decode_SkipsUnknownSAWithNoMetadataType · introduced test · go.temporal.io/server/common/searchattribute/Test_Decode_SkipsUnknownSAWithNoMetadataTypeTest_Decode_SkipsUnknown…incorrect_metadata_type · introduced test · go.temporal.io/server/common/searchattribute/sadefs/Test_DecodeValue_Error/incorrect_metadata_typeincorrect_metadata_typeinvalid_metadata_type · introduced test · go.temporal.io/server/common/searchattribute/sadefs/Test_DecodeValue_Error/invalid_metadata_typeinvalid_metadata_typeno_value_type_set · introduced test · go.temporal.io/server/common/searchattribute/sadefs/Test_DecodeValue_Error/no_value_type_setno_value_type_setallowList=false · introduced test · go.temporal.io/server/common/searchattribute/sadefs/Test_DecodeValue_Success/bool/setMetadata=true/allowList=falseallowList=falseallowList=true · introduced test · go.temporal.io/server/common/searchattribute/sadefs/Test_DecodeValue_Success/bool/setMetadata=true/allowList=trueallowList=trueallowList=false · introduced test · go.temporal.io/server/common/searchattribute/sadefs/Test_DecodeValue_Success/datetime/setMetadata=true/allowList=falseallowList=falseallowList=true · introduced test · go.temporal.io/server/common/searchattribute/sadefs/Test_DecodeValue_Success/datetime/setMetadata=true/allowList=trueallowList=trueallowList=false · introduced test · go.temporal.io/server/common/searchattribute/sadefs/Test_DecodeValue_Success/double/setMetadata=true/allowList=falseallowList=falseallowList=true · introduced test · go.temporal.io/server/common/searchattribute/sadefs/Test_DecodeValue_Success/double/setMetadata=true/allowList=trueallowList=trueallowList=false · introduced test · go.temporal.io/server/common/searchattribute/sadefs/Test_DecodeValue_Success/int/setMetadata=true/allowList=falseallowList=falseallowList=true · introduced test · go.temporal.io/server/common/searchattribute/sadefs/Test_DecodeValue_Success/int/setMetadata=true/allowList=trueallowList=trueallowList=false · introduced test · go.temporal.io/server/common/searchattribute/sadefs/Test_DecodeValue_Success/keyword/setMetadata=true/allowList=falseallowList=falseallowList=true · introduced test · go.temporal.io/server/common/searchattribute/sadefs/Test_DecodeValue_Success/keyword/setMetadata=true/allowList=trueallowList=trueallowList=false · introduced test · go.temporal.io/server/common/searchattribute/sadefs/Test_DecodeValue_Success/keyword_list/setMetadata=true/allowList=falseallowList=falseallowList=true · introduced test · go.temporal.io/server/common/searchattribute/sadefs/Test_DecodeValue_Success/keyword_list/setMetadata=true/allowList=trueallowList=trueallowList=false · introduced test · go.temporal.io/server/common/searchattribute/sadefs/Test_DecodeValue_Success/nil/setMetadata=true/allowList=falseallowList=falseallowList=true · introduced test · go.temporal.io/server/common/searchattribute/sadefs/Test_DecodeValue_Success/nil/setMetadata=true/allowList=trueallowList=trueallowList=false · introduced test · go.temporal.io/server/common/searchattribute/sadefs/Test_DecodeValue_Success/text/setMetadata=true/allowList=falseallowList=falseallowList=true · introduced test · go.temporal.io/server/common/searchattribute/sadefs/Test_DecodeValue_Success/text/setMetadata=true/allowList=trueallowList=trueSearch_attribute_missing_in_type_map · introduced test · go.temporal.io/server/service/history/archival/TestArchiver/Search_attribute_missing_in_type_mapSearch_attribute_missing…Focused concept · encode_value.go ×1 · 5 introduced LOCencode_value.go ×1

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.

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

go.temporal.io/server/common/searchattribute/sadefs/util.go 3 introduced LOC · 1 range

Open complete file

12 )
13
14 > func GetMetadataType(p *commonpb.Payload) enumspb.IndexedValueType { util.go
15 > t, err := enumspb.IndexedValueTypeFromString(string(p.Metadata[MetadataType]))
16 > if err != nil {
17 return enumspb.INDEXED_VALUE_TYPE_UNSPECIFIED
18 }
go.temporal.io/server/common/searchattribute/sadefs/encode_value.go 2 introduced LOC · 1 range

Open complete file

44 ) (any, error) {
45 if t == enumspb.INDEXED_VALUE_TYPE_UNSPECIFIED {
46 > t = GetMetadataType(value) encode_value.go
47 > }
48 if t == enumspb.INDEXED_VALUE_TYPE_UNSPECIFIED {
49 return nil, fmt.Errorf("%w: %v", ErrInvalidType, t)