nexus_commands.go ×2

Frontier kind: Code frontier

unlabeled · c_c28df1a2b12e

3 tests · 2586 LOC · 134 files · introduces 0 tests · 12 LOC · 4 files

Introduces — evidence that enters the hierarchy at this concept

Code
5 ranges12 lines · 4 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
399 ranges2586 lines · 134 files · Browse complete extent
All tests (intent)
3 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.

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

go.temporal.io/server/chasm/lib/workflow/nexus_commands.go 4 introduced LOC · 2 ranges

Open complete file

244 _, operationFound := wf.Operations[attrs.ScheduledEventId]
245 hasBufferedEvent := func() bool {
246 > return wf.HasAnyBufferedEvent(makeNexusOperationTerminalEventFilter(attrs.ScheduledEventId)) nexus_commands.go
247 > }
248
249 // Route by the tree that owns the operation instead of the enableChasmWorkflowOperations flag: an operation's tree
276 }
277
278 > func makeNexusOperationTerminalEventFilter(scheduledEventID int64) func(event *historypb.HistoryEvent) bool { nexus_commands.go
279 > return func(event *historypb.HistoryEvent) bool {
280 switch event.EventType {
281 case enumspb.EVENT_TYPE_NEXUS_OPERATION_COMPLETED:
go.temporal.io/server/chasm/lib/workflow/workflow.go 3 introduced LOC · 1 range

Open complete file

311
312 // HasAnyBufferedEvent returns true if the workflow has any buffered event matching the given filter.
313 > func (w *Workflow) HasAnyBufferedEvent(filter historybuilder.BufferedEventFilter) bool { workflow.go
314 > return w.MSPointer.HasAnyBufferedEvent(filter)
315 > }
316
317 func (w *Workflow) WorkflowTypeName() string {
go.temporal.io/server/chasm/ms_pointer.go 3 introduced LOC · 1 range

Open complete file

35
36 // HasAnyBufferedEvent returns true if there is at least one buffered event that matches the provided filter.
37 > func (m MSPointer) HasAnyBufferedEvent(filter func(*historypb.HistoryEvent) bool) bool { ms_pointer.go
38 > return m.backend.HasAnyBufferedEvent(filter)
39 > }
40
41 func (m MSPointer) GenerateEventLoadToken(event *historypb.HistoryEvent) ([]byte, error) {
go.temporal.io/server/chasm/node_backend_mock.go 2 introduced LOC · 1 range

Open complete file

212 }
213
214 > func (m *MockNodeBackend) HasAnyBufferedEvent(filter func(*historypb.HistoryEvent) bool) bool { node_backend_mock.go
215 > if m.HandleHasAnyBufferedEvent != nil {
216 return m.HandleHasAnyBufferedEvent(filter)
217 }