convert.go ×4

Frontier kind: Joint frontier

unlabeled · c_8d7c8410d7a9

1 test · 2727 LOC · 132 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)
435 ranges2727 lines · 132 files · Browse complete extent
All tests (intent)
1 testBrowse 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

113 case *predicates.OrImpl[tasks.Task]:
114 return ToPersistenceOrPredicate(predicate)
115 > case *predicates.NotImpl[tasks.Task]: convert.go
116 > return ToPersistenceNotPredicate(predicate)
117 case *tasks.NamespacePredicate:
118 return ToPersistenceNamespaceIDPredicate(predicate)
142 case enumsspb.PREDICATE_TYPE_OR:
143 return FromPersistenceOrPredicate(predicate.GetOrPredicateAttributes())
144 > case enumsspb.PREDICATE_TYPE_NOT: convert.go
145 > return FromPersistenceNotPredicate(predicate.GetNotPredicateAttributes())
146 case enumsspb.PREDICATE_TYPE_NAMESPACE_ID:
147 return FromPersistenceNamespaceIDPredicate(predicate.GetNamespaceIdPredicateAttributes())
249 func ToPersistenceNotPredicate(
250 notPredicate *predicates.NotImpl[tasks.Task],
251 > ) *persistencespb.Predicate { convert.go
252 > return &persistencespb.Predicate{
253 > PredicateType: enumsspb.PREDICATE_TYPE_NOT,
254 > Attributes: &persistencespb.Predicate_NotPredicateAttributes{
255 > NotPredicateAttributes: &persistencespb.NotPredicateAttributes{
256 > Predicate: ToPersistencePredicate(notPredicate.Predicate),
257 > },
258 > },
259 > }
260 > }
261
262 func FromPersistenceNotPredicate(
263 attributes *persistencespb.NotPredicateAttributes,
264 > ) tasks.Predicate { convert.go
265 > return predicates.Not(FromPersistencePredicate(attributes.Predicate))
266 > }
267
268 func ToPersistenceNamespaceIDPredicate(
go.temporal.io/server/api/persistence/v1/predicates.pb.go 5 introduced LOC · 1 range

Open complete file

124 }
125
126 > func (x *Predicate) GetNotPredicateAttributes() *NotPredicateAttributes { predicates.pb.go
127 > if x != nil {
128 > if x, ok := x.Attributes.(*Predicate_NotPredicateAttributes); ok {
129 > return x.NotPredicateAttributes
130 > }
131 }
132 return nil