request_response.pb.go ×5

Frontier kind: Code frontier

unlabeled · c_64357b6b5592

4 tests · 4624 LOC · 194 files · introduces 0 tests · 60 LOC · 3 files

Introduces — evidence that enters the hierarchy at this concept

Code
13 ranges60 lines · 3 files
Tests
0 tests

Contains — complete concept membership

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

3 files ranked by introduced lines: 60 introduced LOC across 13 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

go.temporal.io/server/api/historyservice/v1/request_response.pb.go 20 introduced LOC · 5 ranges

Open complete file

4953 }
4954
4955 > func (x *ActivitySyncInfo) GetVersion() int64 { request_response.pb.go
4956 > if x != nil {
4957 > return x.Version
4958 > }
4959 return 0
4960 }
4967 }
4968
4969 > func (x *ActivitySyncInfo) GetScheduledTime() *timestamppb.Timestamp { request_response.pb.go
4970 > if x != nil {
4971 > return x.ScheduledTime
4972 > }
4973 return nil
4974 }
4988 }
4989
4990 > func (x *ActivitySyncInfo) GetLastHeartbeatTime() *timestamppb.Timestamp { request_response.pb.go
4991 > if x != nil {
4992 > return x.LastHeartbeatTime
4993 > }
4994 return nil
4995 }
5002 }
5003
5004 > func (x *ActivitySyncInfo) GetAttempt() int32 { request_response.pb.go
5005 > if x != nil {
5006 > return x.Attempt
5007 > }
5008 return 0
5009 }
5058 }
5059
5060 > func (x *ActivitySyncInfo) GetStamp() int32 { request_response.pb.go
5061 > if x != nil {
5062 > return x.Stamp
5063 > }
5064 return 0
5065 }
go.temporal.io/server/service/history/interfaces/mutable_state_mock.go 20 introduced LOC · 4 ranges

Open complete file

3661
3662 // ShouldResetActivityTimerTaskMask mocks base method.
3663 > func (m *MockMutableState) ShouldResetActivityTimerTaskMask(current, incoming *persistence.ActivityInfo) bool { mutable_state_mock.go
3664 > m.ctrl.T.Helper()
3665 > ret := m.ctrl.Call(m, "ShouldResetActivityTimerTaskMask", current, incoming)
3666 > ret0, _ := ret[0].(bool)
3667 > return ret0
3668 > }
3669
3670 // ShouldResetActivityTimerTaskMask indicates an expected call of ShouldResetActivityTimerTaskMask.
3671 > func (mr *MockMutableStateMockRecorder) ShouldResetActivityTimerTaskMask(current, incoming any) *gomock.Call { mutable_state_mock.go
3672 > mr.mock.ctrl.T.Helper()
3673 > return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ShouldResetActivityTimerTaskMask", reflect.TypeOf((*MockMutableState)(nil).ShouldResetActivityTimerTaskMask), current, incoming)
3674 > }
3675
3676 // StartDeploymentTransition mocks base method.
3747
3748 // UpdateActivityInfo mocks base method.
3749 > func (m *MockMutableState) UpdateActivityInfo(arg0 *historyservice.ActivitySyncInfo, arg1 bool) error { mutable_state_mock.go
3750 > m.ctrl.T.Helper()
3751 > ret := m.ctrl.Call(m, "UpdateActivityInfo", arg0, arg1)
3752 > ret0, _ := ret[0].(error)
3753 > return ret0
3754 > }
3755
3756 // UpdateActivityInfo indicates an expected call of UpdateActivityInfo.
3757 > func (mr *MockMutableStateMockRecorder) UpdateActivityInfo(arg0, arg1 any) *gomock.Call { mutable_state_mock.go
3758 > mr.mock.ctrl.T.Helper()
3759 > return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateActivityInfo", reflect.TypeOf((*MockMutableState)(nil).UpdateActivityInfo), arg0, arg1)
3760 > }
3761
3762 // UpdateActivityProgress mocks base method.
go.temporal.io/server/service/history/ndc/activity_state_replicator.go 20 introduced LOC · 4 ranges

Open complete file

290 return false, nil
291 }
292 > if shouldApply := r.compareActivity( activity_state_replicator.go
293 > activitySyncInfo.GetVersion(),
294 > activitySyncInfo.GetAttempt(),
295 > activitySyncInfo.GetStamp(),
296 > timestamp.TimeValue(activitySyncInfo.GetLastHeartbeatTime()),
297 > activityInfo,
298 > ); !shouldApply {
299 return false, nil
300 }
301
302 // sync activity with empty started ID means activity retry
303 > eventTime := timestamp.TimeValue(activitySyncInfo.GetScheduledTime()) activity_state_replicator.go
304 > if activitySyncInfo.StartedEventId == common.EmptyEventID && activitySyncInfo.Attempt > activityInfo.GetAttempt() {
305 mutableState.AddTasks(&tasks.ActivityRetryTimerTask{
306 WorkflowKey: *workflowKey,
313 }
314
315 > if err := mutableState.UpdateActivityInfo( activity_state_replicator.go
316 > activitySyncInfo,
317 > mutableState.ShouldResetActivityTimerTaskMask(
318 > activityInfo,
319 > &persistencespb.ActivityInfo{
320 > Version: activitySyncInfo.GetVersion(),
321 > Attempt: activitySyncInfo.GetAttempt(),
322 > },
323 > ),
324 > ); err != nil {
325 return false, err
326 }
327
328 > return true, nil activity_state_replicator.go
329 }
330