encode_value.go ×1

Frontier kind: Code frontier

unlabeled · c_3b098e9c5c35

45 tests · 726 LOC · 33 files · introduces 0 tests · 2 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
1 range2 lines · 1 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
60 ranges726 lines · 33 files · Browse complete extent
All tests (intent)
45 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 specializationvisibility_store.go ×17 · 171 introduced LOCvisibility_store.go ×17workflow_task_completed_handler.go ×1 · 6 introduced LOCworkflow_task_completed_…valid_SA_alias · 0 introduced LOCvalid_SA_aliasvalid_SA_field · 0 introduced LOCvalid_SA_fieldadmin_handler.go ×3 · 6 introduced LOCadmin_handler.go ×3command_attr_validator.go ×4 · 8 introduced LOCcommand_attr_validator.g…Search_attribute_with_no_embedded_type_information · 0 introduced LOCSearch_attribute_with_no…input_-_exceeds_warning_limit_but_within_hard_limit · 0 introduced LOCinput_-_exceeds_warning_…schedule_to_start_timeout_-_caps_to_defaulted_schedule_to_close_timeout · 0 introduced LOCschedule_to_start_timeou…start_to_close_timeout_-_caps_to_defaulted_schedule_to_close_timeout · 0 introduced LOCstart_to_close_timeout_-…schedule_to_close_timeout_-_caps_exceeding_max · 0 introduced LOCschedule_to_close_timeou…search_attributes_-_value_exceeds_size_limit · 0 introduced LOCsearch_attributes_-_valu…validator.go ×1 · 2 introduced LOCvalidator.go ×1validator.go ×1 · 2 introduced LOCvalidator.go ×1schedule_to_close_timeout_-_preserves_within_max, start_to_close_timeout_-_preserves_value_within_schedule_to_close_timeout, +1 · 0 introduced LOCschedule_to_close_timeou…TestParseESDoc_SearchAttributes · 0 introduced LOCTestParseESDoc_SearchAtt…validator.go ×1 · 1 introduced LOCvalidator.go ×1valid_request, id_policies_-_defaults_unspecified, +1 · 0 introduced LOCvalid_request, id_polici…validator.go ×2 · 4 introduced LOCvalidator.go ×2id_policies_-_preserves_explicit_values · 0 introduced LOCid_policies_-_preserves_…validator.go ×3 · 3 introduced LOCvalidator.go ×3TestRecordWorkflowExecutionClosed · 0 introduced LOCTestRecordWorkflowExecut…TestRecordWorkflowExecutionStarted · 0 introduced LOCTestRecordWorkflowExecut…validator.go ×1 · 1 introduced LOCvalidator.go ×1visibility_store.go ×7 · 11 introduced LOCvisibility_store.go ×7TestListExecutions_WithTaskQueueSearchAttribute · 0 introduced LOCTestListExecutions_WithT…registered_TaskQueue_override_is_surfaced · 0 introduced LOCregistered_TaskQueue_ove…validator.go ×1 · 3 introduced LOCvalidator.go ×1TestSearchAttributesValidate_Mapper · 0 introduced LOCTestSearchAttributesVali…visibility_value.go ×1 · 12 introduced LOCvisibility_value.go ×1KeywordStringContainingBracket_DoesNotRecordMetric · 0 introduced LOCKeywordStringContainingB…Test_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 ×2Test_Decode_Success · 0 introduced LOCTest_Decode_Successstringify.go ×2 · 4 introduced LOCstringify.go ×2constants.go ×1 · 4 introduced LOCconstants.go ×1stringify.go ×1 · 2 introduced LOCstringify.go ×1allowList=true, allowList=false · 0 introduced LOCallowList=true, allowLis…allowList=true, allowList=false · 0 introduced LOCallowList=true, allowLis…encode_value.go ×1 · 2 introduced LOCencode_value.go ×1allowList=true, allowList=false · 0 introduced LOCallowList=true, allowLis…allowList=true, allowList=false · 0 introduced LOCallowList=true, allowLis…encode_value.go ×2 · 4 introduced LOCencode_value.go ×2encode_value.go ×2 · 2 introduced LOCencode_value.go ×2encode_value.go ×1 · 2 introduced LOCencode_value.go ×1constants.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/matchingservice/v1/service_grpc.pb.go · 1911 LOCv1/service_grpc.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/lib/nexusoperation/validator.go · 340 LOCnexusoperation/validator…go.temporal.io/server/chasm/visibility_value.go · 181 LOCchasm/visibility_value.g…go.temporal.io/server/common/client_cache.go · 146 LOCcommon/client_cache.gogo.temporal.io/server/common/namespace/namespace.go · 377 LOCnamespace/namespace.gogo.temporal.io/server/common/payload/payload.go · 127 LOCpayload/payload.gogo.temporal.io/server/common/persistence/sql/sqlplugin/sqlite/visibility.go · 207 LOCsqlite/visibility.gogo.temporal.io/server/common/persistence/sql/sqlplugin/visibility.go · 336 LOCsqlplugin/visibility.gogo.temporal.io/server/common/persistence/visibility/store/elasticsearch/visibility_store.go · 1523 LOCelasticsearch/visibility…go.temporal.io/server/common/persistence/visibility/store/sql/query_converter_legacy.go · 677 LOCsql/query_converter_lega…go.temporal.io/server/common/persistence/visibility/store/sql/query_converter_legacy_factory.go · 32 LOCsql/query_converter_lega…go.temporal.io/server/common/persistence/visibility/store/sql/query_converter_legacy_sqlite.go · 334 LOCsql/query_converter_lega…go.temporal.io/server/common/persistence/visibility/store/sql/visibility_store.go · 968 LOCsql/visibility_store.gogo.temporal.io/server/common/persistence/visibility/visibility_manager_impl.go · 619 LOCvisibility/visibility_ma…go.temporal.io/server/common/searchattribute/encode.go · 101 LOCsearchattribute/encode.g…go.temporal.io/server/common/searchattribute/event_gen.go · 42 LOCsearchattribute/event_ge…go.temporal.io/server/common/searchattribute/mapper.go · 243 LOCsearchattribute/mapper.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/stringify.go · 210 LOCsearchattribute/stringif…go.temporal.io/server/common/searchattribute/validator.go · 266 LOCsearchattribute/validato…go.temporal.io/server/service/frontend/admin_handler.go · 2629 LOCfrontend/admin_handler.g…go.temporal.io/server/service/history/api/command_attr_validator.go · 688 LOCapi/command_attr_validat…go.temporal.io/server/service/history/api/respondworkflowtaskcompleted/workflow_task_completed_handler.go · 1625 LOCrespondworkflowtaskcompl…go.temporal.io/server/service/matching/pri_matcher.go · 702 LOCmatching/pri_matcher.gogo.temporal.io/server/service/matching/task.go · 394 LOCmatching/task.gogo.temporal.io/server/temporaltest/server.go · 172 LOCtemporaltest/server.goMultipleValueTypes · introduced test · go.temporal.io/server/chasm/TestNewSearchAttributesMapFromProto/MultipleValueTypesMultipleValueTypesid_policies_-_defaults_unspecified · introduced test · go.temporal.io/server/chasm/lib/nexusoperation/TestValidateStartNexusOperationExecutionRequest/id_policies_-_defaults_unspecifiedid_policies_-_defaults_u…id_policies_-_preserves_explicit_values · introduced test · go.temporal.io/server/chasm/lib/nexusoperation/TestValidateStartNexusOperationExecutionRequest/id_policies_-_preserves_explicit_valuesid_policies_-_preserves_…input_-_exceeds_warning_limit_but_within_hard_limit · introduced test · go.temporal.io/server/chasm/lib/nexusoperation/TestValidateStartNexusOperationExecutionRequest/input_-_exceeds_warning_limit_but_within_hard_limitinput_-_exceeds_warning_…request_id_-_defaults_empty_to_UUID · introduced test · go.temporal.io/server/chasm/lib/nexusoperation/TestValidateStartNexusOperationExecutionRequest/request_id_-_defaults_empty_to_UUIDrequest_id_-_defaults_em…schedule_to_close_timeout_-_caps_exceeding_max · introduced test · go.temporal.io/server/chasm/lib/nexusoperation/TestValidateStartNexusOperationExecutionRequest/schedule_to_close_timeout_-_caps_exceeding_maxschedule_to_close_timeou…schedule_to_close_timeout_-_caps_unset_to_max · introduced test · go.temporal.io/server/chasm/lib/nexusoperation/TestValidateStartNexusOperationExecutionRequest/schedule_to_close_timeout_-_caps_unset_to_maxschedule_to_close_timeou…schedule_to_close_timeout_-_preserves_within_max · introduced test · go.temporal.io/server/chasm/lib/nexusoperation/TestValidateStartNexusOperationExecutionRequest/schedule_to_close_timeout_-_preserves_within_maxschedule_to_close_timeou…schedule_to_start_timeout_-_caps_to_defaulted_schedule_to_close_timeout · introduced test · go.temporal.io/server/chasm/lib/nexusoperation/TestValidateStartNexusOperationExecutionRequest/schedule_to_start_timeout_-_caps_to_defaulted_schedule_to_close_timeoutschedule_to_start_timeou…schedule_to_start_timeout_-_caps_to_schedule_to_close_timeout · introduced test · go.temporal.io/server/chasm/lib/nexusoperation/TestValidateStartNexusOperationExecutionRequest/schedule_to_start_timeout_-_caps_to_schedule_to_close_timeoutschedule_to_start_timeou…schedule_to_start_timeout_-_preserves_value_within_schedule_to_close_timeout · introduced test · go.temporal.io/server/chasm/lib/nexusoperation/TestValidateStartNexusOperationExecutionRequest/schedule_to_start_timeout_-_preserves_value_within_schedule_to_close_timeoutschedule_to_start_timeou…search_attributes_-_value_exceeds_size_limit · introduced test · go.temporal.io/server/chasm/lib/nexusoperation/TestValidateStartNexusOperationExecutionRequest/search_attributes_-_value_exceeds_size_limitsearch_attributes_-_valu…start_to_close_timeout_-_caps_to_defaulted_schedule_to_close_timeout · introduced test · go.temporal.io/server/chasm/lib/nexusoperation/TestValidateStartNexusOperationExecutionRequest/start_to_close_timeout_-_caps_to_defaulted_schedule_to_close_timeoutstart_to_close_timeout_-…start_to_close_timeout_-_caps_to_schedule_to_close_timeout · introduced test · go.temporal.io/server/chasm/lib/nexusoperation/TestValidateStartNexusOperationExecutionRequest/start_to_close_timeout_-_caps_to_schedule_to_close_timeoutstart_to_close_timeout_-…start_to_close_timeout_-_preserves_value_within_schedule_to_close_timeout · introduced test · go.temporal.io/server/chasm/lib/nexusoperation/TestValidateStartNexusOperationExecutionRequest/start_to_close_timeout_-_preserves_value_within_schedule_to_close_timeoutstart_to_close_timeout_-…valid_request · introduced test · go.temporal.io/server/chasm/lib/nexusoperation/TestValidateStartNexusOperationExecutionRequest/valid_requestvalid_requestTestOperatorServiceMetadata · 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…registered_TaskQueue_override_is_surfaced · introduced test · go.temporal.io/server/common/persistence/visibility/TestConvertToChasmExecutionInfoSystemOverrides/registered_TaskQueue_override_is_surfacedregistered_TaskQueue_ove…TestParseESDoc_SearchAttributes · introduced test · go.temporal.io/server/common/persistence/visibility/store/elasticsearch/TestESVisibilitySuite/TestParseESDoc_SearchAttributesTestParseESDoc_SearchAtt…TestRecordWorkflowExecutionClosed · introduced test · go.temporal.io/server/common/persistence/visibility/store/elasticsearch/TestESVisibilitySuite/TestRecordWorkflowExecutionClosedTestRecordWorkflowExecut…TestRecordWorkflowExecutionStarted · introduced test · go.temporal.io/server/common/persistence/visibility/store/elasticsearch/TestESVisibilitySuite/TestRecordWorkflowExecutionStartedTestRecordWorkflowExecut…TestSearchAttributesValidate · introduced test · go.temporal.io/server/common/searchattribute/TestSearchAttributesValidatorSuite/TestSearchAttributesValidateTestSearchAttributesVali…KeywordStringContainingBracket_DoesNotRecordMetric · introduced test · go.temporal.io/server/common/searchattribute/TestSearchAttributesValidatorSuite/TestSearchAttributesValidate_EmitInvalidListValues/KeywordStringContainingBracket_DoesNotRecordMetricKeywordStringContainingB…TestSearchAttributesValidate_Mapper · introduced test · go.temporal.io/server/common/searchattribute/TestSearchAttributesValidatorSuite/TestSearchAttributesValidate_MapperTestSearchAttributesVali…Test_Stringify · introduced test · go.temporal.io/server/common/searchattribute/TestStringifySuite/Test_StringifyTest_StringifyTest_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…Test_Decode_Success · introduced test · go.temporal.io/server/common/searchattribute/Test_Decode_SuccessTest_Decode_Successlist_with_single_value_not_allowing_list · introduced test · go.temporal.io/server/common/searchattribute/sadefs/Test_DecodeValue_AllowList_BackwardsCompatibility/list_with_single_value_not_allowing_listlist_with_single_value_n…allowList=false · introduced test · go.temporal.io/server/common/searchattribute/sadefs/Test_DecodeValue_Success/keyword/setMetadata=false/allowList=falseallowList=falseallowList=true · introduced test · go.temporal.io/server/common/searchattribute/sadefs/Test_DecodeValue_Success/keyword/setMetadata=false/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/text/setMetadata=false/allowList=falseallowList=falseallowList=true · introduced test · go.temporal.io/server/common/searchattribute/sadefs/Test_DecodeValue_Success/text/setMetadata=false/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=trueTest_ValidateStrings · introduced test · go.temporal.io/server/common/searchattribute/sadefs/Test_ValidateStringsTest_ValidateStringsvalid_SA_alias · introduced test · go.temporal.io/server/service/frontend/TestAdminHandlerSuite/TestImportWorkflowExecution_WithAliasedSearchAttributes/valid_SA_aliasvalid_SA_aliasvalid_SA_field · introduced test · go.temporal.io/server/service/frontend/TestAdminHandlerSuite/TestImportWorkflowExecution_WithNonAliasedSearchAttributes/valid_SA_fieldvalid_SA_fieldTestRespondWorkflowTaskCompleted_StartChildWithSearchAttributes · introduced test · go.temporal.io/server/service/history/TestEngine2Suite/TestRespondWorkflowTaskCompleted_StartChildWithSearchAttributesTestRespondWorkflowTaskC…TestValidateUpsertWorkflowSearchAttributes · introduced test · go.temporal.io/server/service/history/api/TestCommandAttrValidatorSuite/TestValidateUpsertWorkflowSearchAttributesTestValidateUpsertWorkfl…Search_attribute_with_no_embedded_type_information · introduced test · go.temporal.io/server/service/history/archival/TestArchiver/Search_attribute_with_no_embedded_type_informationSearch_attribute_with_no…TestSearchAttributeRegistration · introduced test · go.temporal.io/server/temporaltest/TestSearchAttributeRegistrationTestSearchAttributeRegis…Focused concept · encode_value.go ×1 · 2 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.

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

go.temporal.io/server/common/searchattribute/sadefs/encode_value.go 2 introduced LOC · 1 range

Open complete file

77 // validate strings
78 switch value := anyValue.(type) {
79 > case string: encode_value.go
80 > if !utf8.ValidString(value) {
81 return nil, fmt.Errorf("%w: %s", ErrInvalidString, value)
82 }