chasm_engine.go ×7

Frontier kind: Code frontier

unlabeled · c_2a4737231ba9

4 tests · 6319 LOC · 233 files · introduces 0 tests · 18 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
7 ranges18 lines · 1 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
1215 ranges6319 lines · 233 files · Browse complete extent
All tests (intent)
4 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.

1 file ranked by introduced lines: 18 introduced LOC across 7 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

go.temporal.io/server/service/history/chasm_engine.go 18 introduced LOC · 7 ranges

Open complete file

710 return nil, err
711 }
712 > defer executionLease.GetReleaseFn()(nil) //nolint:revive chasm_engine.go
713 >
714 > ref, err := e.predicateSatisfied(ctx, monotonicPredicate, requestRef, executionLease)
715 > if err != nil {
716 return nil, err
717 }
718 > if ref != nil { chasm_engine.go
719 > return ref, nil
720 > }
721 // Predicate not satisfied; subscribe before releasing the lock.
722 workflowKey := executionLease.GetContext().GetWorkflowKey()
754 ref chasm.ComponentRef,
755 executionLease api.WorkflowLease,
756 > ) ([]byte, error) { chasm_engine.go
757 > chasmTree, err := chasmTreeFromMutableState(e.logger, executionLease.GetMutableState())
758 > if err != nil {
759 return nil, err
760 }
761
762 > chasmContext := e.setContextMetadata(ctx, chasmTree) chasm_engine.go
763 >
764 > component, err := chasmTree.Component(chasmContext, ref)
765 > if err != nil {
766 return nil, err
767 }
768 > satisfied, err := predicate(chasmContext, component) chasm_engine.go
769 > if err != nil {
770 return nil, err
771 }
772 > if !satisfied { chasm_engine.go
773 return nil, nil
774 }
775 > return chasmContext.Ref(component) chasm_engine.go
776 }
777