74
75
// TODO: this is invoked for non-ES validation code flow. Needs refactoring
76
>
func (ni *nameInterceptor) Name(name string, usage query.FieldNameUsage) (string, error) {
query_interceptors.go
77
>
mapper, err := ni.searchAttributesMapperProvider.GetMapper(ni.namespace)
78
>
if err != nil {
79
return "", err
80
}
81
>
fieldName, fieldType, err := query.ResolveSearchAttributeAlias(name, ni.namespace, mapper,
query_interceptors.go
82
>
ni.searchAttributesTypeMap, ni.chasmMapper)
83
>
if err != nil {
84
// Check for special aliases that require archetypeID context.
85
if ni.archetypeID != chasm.SchedulerArchetypeID || name != "TemporalSystemExecutionStatus" {