mutable_state_impl.go ×8

Frontier kind: Code frontier

unlabeled · c_3e6dd16316bf

7 tests · 4537 LOC · 194 files · introduces 0 tests · 19 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
8 ranges19 lines · 1 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
717 ranges4537 lines · 194 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.

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: 19 introduced LOC across 8 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

go.temporal.io/server/service/history/workflow/mutable_state_impl.go 19 introduced LOC · 8 ranges

Open complete file

6949 }
6950
6951 > func (ms *MutableStateImpl) buildTemporalPauseInfoEntries() []string { mutable_state_impl.go
6952 > var entries []string
6953 >
6954 > // Add workflow pause entries if workflow is paused
6955 > if ms.executionInfo.PauseInfo != nil {
6956 entries = append(entries, fmt.Sprintf("Workflow:%s", ms.GetWorkflowKey().WorkflowID))
6957 if reason := ms.executionInfo.PauseInfo.Reason; reason != "" {
6961
6962 // Add activity pause entries for paused activities
6963 > pausedActivityTypes := make(map[string]struct{}) mutable_state_impl.go
6964 > for _, ai := range ms.GetPendingActivityInfos() {
6965 if ai.Paused {
6966 pausedActivityTypes[ai.ActivityType.Name] = struct{}{}
6968 }
6969
6970 > for activityType := range pausedActivityTypes { mutable_state_impl.go
6971 entries = append(entries, fmt.Sprintf("property:activityType=%s", activityType))
6972 }
6973
6974 > return entries mutable_state_impl.go
6975 }
6976
6977 > func (ms *MutableStateImpl) updatePauseInfoSearchAttribute() error { mutable_state_impl.go
6978 > allEntries := ms.buildTemporalPauseInfoEntries()
6979 >
6980 > pauseInfoPayload, err := sadefs.EncodeValue(allEntries, enumspb.INDEXED_VALUE_TYPE_KEYWORD_LIST)
6981 > if err != nil {
6982 return err
6983 }
6984
6985 > exeInfo := ms.executionInfo mutable_state_impl.go
6986 > if exeInfo.SearchAttributes == nil {
6987 exeInfo.SearchAttributes = make(map[string]*commonpb.Payload, 1)
6988 }
6989
6990 > if proto.Equal(exeInfo.SearchAttributes[sadefs.TemporalPauseInfo], pauseInfoPayload) { mutable_state_impl.go
6991 return nil // unchanged
6992 }
6993
6994 > ms.updateSearchAttributes(map[string]*commonpb.Payload{sadefs.TemporalPauseInfo: pauseInfoPayload}) mutable_state_impl.go
6995 > return ms.taskGenerator.GenerateUpsertVisibilityTask()
6996 }
6997