manager.go ×3

Frontier kind: Code frontier

unlabeled · c_64ed08cba32b

15 tests · 1892 LOC · 79 files · introduces 0 tests · 24 LOC · 3 files

Introduces — evidence that enters the hierarchy at this concept

Code
6 ranges24 lines · 3 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
265 ranges1892 lines · 79 files · Browse complete extent
All tests (intent)
15 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.

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.

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

go.temporal.io/server/common/searchattribute/manager.go 10 introduced LOC · 3 ranges

Open complete file

84 }
85 if indexSearchAttributes, ok := saCache.searchAttributes[indexName]; ok {
86 > result.customSearchAttributes = maps.Clone(indexSearchAttributes.customSearchAttributes) manager.go
87 > }
88 return result, nil
89 }
146
147 // clusterMetadata.Version <= saCache.dbVersion means DB is not changed.
148 > if clusterMetadata.Version <= saCache.dbVersion { manager.go
149 saCache.expireOn = now.Add(cacheRefreshInterval)
150 m.cache.Store(saCache)
152 }
153
154 > saCache = cache{ manager.go
155 > searchAttributes: buildIndexNameTypeMap(clusterMetadata.GetIndexSearchAttributes()),
156 > expireOn: now.Add(cacheRefreshInterval),
157 > dbVersion: clusterMetadata.Version,
158 > }
159 > m.cache.Store(saCache)
160 > return saCache, nil
161 }
162
go.temporal.io/server/api/persistence/v1/cluster_metadata.pb.go 8 introduced LOC · 2 ranges

Open complete file

105 }
106
107 > func (x *ClusterMetadata) GetIndexSearchAttributes() map[string]*IndexSearchAttributes { cluster_metadata.pb.go
108 > if x != nil {
109 > return x.IndexSearchAttributes
110 > }
111 return nil
112 }
212 }
213
214 > func (x *IndexSearchAttributes) GetCustomSearchAttributes() map[string]v11.IndexedValueType { cluster_metadata.pb.go
215 > if x != nil {
216 > return x.CustomSearchAttributes
217 > }
218 return nil
219 }
go.temporal.io/server/common/searchattribute/name_type_map.go 6 introduced LOC · 1 range

Open complete file

42 func buildIndexNameTypeMap(
43 indexSearchAttributes map[string]*persistencespb.IndexSearchAttributes,
44 > ) map[string]NameTypeMap { name_type_map.go
45 > indexNameTypeMap := make(map[string]NameTypeMap, len(indexSearchAttributes))
46 > for indexName, customSearchAttributes := range indexSearchAttributes {
47 > indexNameTypeMap[indexName] = NewNameTypeMap(customSearchAttributes.GetCustomSearchAttributes())
48 > }
49 > return indexNameTypeMap
50 }
51