convert.go ×4

Frontier kind: Joint frontier

unlabeled · c_6ac185aba241

9 tests · 2529 LOC · 127 files · introduces 1 test · 22 LOC · 2 files

Introduces — evidence that enters the hierarchy at this concept

Code
5 ranges22 lines · 2 files
Tests
1 test

Contains — complete concept membership

All code (extent)
378 ranges2529 lines · 127 files · Browse complete extent
All tests (intent)
9 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.

1 test introduced at this concept.

Introduced code

Every collected source range enters the hierarchy at exactly one concept.

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

go.temporal.io/server/service/history/queues/convert.go 17 introduced LOC · 4 ranges

Open complete file

115 case *predicates.NotImpl[tasks.Task]:
116 return ToPersistenceNotPredicate(predicate)
117 > case *tasks.NamespacePredicate: convert.go
118 > return ToPersistenceNamespaceIDPredicate(predicate)
119 case *tasks.TypePredicate:
120 return ToPersistenceTaskTypePredicate(predicate)
144 case enumsspb.PREDICATE_TYPE_NOT:
145 return FromPersistenceNotPredicate(predicate.GetNotPredicateAttributes())
146 > case enumsspb.PREDICATE_TYPE_NAMESPACE_ID: convert.go
147 > return FromPersistenceNamespaceIDPredicate(predicate.GetNamespaceIdPredicateAttributes())
148 case enumsspb.PREDICATE_TYPE_TASK_TYPE:
149 return FromPersistenceTaskTypePredicate(predicate.GetTaskTypePredicateAttributes())
268 func ToPersistenceNamespaceIDPredicate(
269 namespaceIDPredicate *tasks.NamespacePredicate,
270 > ) *persistencespb.Predicate { convert.go
271 > return &persistencespb.Predicate{
272 > PredicateType: enumsspb.PREDICATE_TYPE_NAMESPACE_ID,
273 > Attributes: &persistencespb.Predicate_NamespaceIdPredicateAttributes{
274 > NamespaceIdPredicateAttributes: &persistencespb.NamespaceIdPredicateAttributes{
275 > NamespaceIds: expmaps.Keys(namespaceIDPredicate.NamespaceIDs),
276 > },
277 > },
278 > }
279 > }
280
281 func FromPersistenceNamespaceIDPredicate(
282 attributes *persistencespb.NamespaceIdPredicateAttributes,
283 > ) tasks.Predicate { convert.go
284 > return tasks.NewNamespacePredicate(attributes.NamespaceIds)
285 > }
286
287 func ToPersistenceTaskTypePredicate(
go.temporal.io/server/api/persistence/v1/predicates.pb.go 5 introduced LOC · 1 range

Open complete file

133 }
134
135 > func (x *Predicate) GetNamespaceIdPredicateAttributes() *NamespaceIdPredicateAttributes { predicates.pb.go
136 > if x != nil {
137 > if x, ok := x.Attributes.(*Predicate_NamespaceIdPredicateAttributes); ok {
138 > return x.NamespaceIdPredicateAttributes
139 > }
140 }
141 return nil