convert.go ×4

Frontier kind: Joint frontier

unlabeled · c_bfdb494a0c97

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

117 case *tasks.NamespacePredicate:
118 return ToPersistenceNamespaceIDPredicate(predicate)
119 > case *tasks.TypePredicate: convert.go
120 > return ToPersistenceTaskTypePredicate(predicate)
121 case *tasks.DestinationPredicate:
122 return ToPersistenceDestinationPredicate(predicate)
146 case enumsspb.PREDICATE_TYPE_NAMESPACE_ID:
147 return FromPersistenceNamespaceIDPredicate(predicate.GetNamespaceIdPredicateAttributes())
148 > case enumsspb.PREDICATE_TYPE_TASK_TYPE: convert.go
149 > return FromPersistenceTaskTypePredicate(predicate.GetTaskTypePredicateAttributes())
150 case enumsspb.PREDICATE_TYPE_DESTINATION:
151 return FromPersistenceDestinationPredicate(predicate.GetDestinationPredicateAttributes())
287 func ToPersistenceTaskTypePredicate(
288 taskTypePredicate *tasks.TypePredicate,
289 > ) *persistencespb.Predicate { convert.go
290 > return &persistencespb.Predicate{
291 > PredicateType: enumsspb.PREDICATE_TYPE_TASK_TYPE,
292 > Attributes: &persistencespb.Predicate_TaskTypePredicateAttributes{
293 > TaskTypePredicateAttributes: &persistencespb.TaskTypePredicateAttributes{
294 > TaskTypes: expmaps.Keys(taskTypePredicate.Types),
295 > },
296 > },
297 > }
298 > }
299
300 func FromPersistenceTaskTypePredicate(
301 attributes *persistencespb.TaskTypePredicateAttributes,
302 > ) tasks.Predicate { convert.go
303 > return tasks.NewTypePredicate(attributes.TaskTypes)
304 > }
305
306 func ToPersistenceDestinationPredicate(
go.temporal.io/server/api/persistence/v1/predicates.pb.go 5 introduced LOC · 1 range

Open complete file

142 }
143
144 > func (x *Predicate) GetTaskTypePredicateAttributes() *TaskTypePredicateAttributes { predicates.pb.go
145 > if x != nil {
146 > if x, ok := x.Attributes.(*Predicate_TaskTypePredicateAttributes); ok {
147 > return x.TaskTypePredicateAttributes
148 > }
149 }
150 return nil