api.go ×6

Frontier kind: Joint frontier

unlabeled · c_e03d764665c1

1 test · 2785 LOC · 127 files · introduces 1 test · 66 LOC · 4 files

Introduces — evidence that enters the hierarchy at this concept

Code
13 ranges66 lines · 4 files
Tests
1 test

Contains — complete concept membership

All code (extent)
494 ranges2785 lines · 127 files · Browse complete extent
All tests (intent)
1 testBrowse 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.

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

go.temporal.io/server/service/history/api/listtasks/api.go 38 introduced LOC · 6 ranges

Open complete file

42 }
43 }
44 > if taskRange.ExclusiveMaxTaskKey != nil { api.go
45 > maxTaskKey = tasks.NewKey(
46 > timestamp.TimeValue(taskRange.ExclusiveMaxTaskKey.FireTime),
47 > taskRange.ExclusiveMaxTaskKey.TaskId,
48 > )
49 > if err := tasks.ValidateKey(maxTaskKey); err != nil {
50 return nil, &serviceerror.InvalidArgument{
51 Message: fmt.Sprintf("invalid maxTaskKey: %v", err.Error()),
54 }
55
56 > resp, err := executionManager.GetHistoryTasks(ctx, &persistence.GetHistoryTasksRequest{ api.go
57 > ShardID: adminRequest.ShardId,
58 > TaskCategory: taskCategory,
59 > InclusiveMinTaskKey: minTaskKey,
60 > ExclusiveMaxTaskKey: maxTaskKey,
61 > BatchSize: int(adminRequest.BatchSize),
62 > NextPageToken: adminRequest.NextPageToken,
63 > })
64 > if err != nil {
65 return nil, err
66 }
67
68 > return &historyservice.ListTasksResponse{ api.go
69 > Response: &adminservice.ListHistoryTasksResponse{
70 > Tasks: toAdminTask(resp.Tasks),
71 > NextPageToken: resp.NextPageToken,
72 > },
73 > }, nil
74 }
75
76 > func toAdminTask(historyTasks []tasks.Task) []*adminservice.Task { api.go
77 > var adminTasks []*adminservice.Task
78 > for _, historyTask := range historyTasks {
79 > historyTaskVersion := common.EmptyVersion
80 > if taskWithVersion, ok := historyTask.(tasks.HasVersion); ok {
81 > historyTaskVersion = taskWithVersion.GetVersion()
82 > }
83
84 > adminTasks = append(adminTasks, &adminservice.Task{ api.go
85 > NamespaceId: historyTask.GetNamespaceID(),
86 > WorkflowId: historyTask.GetWorkflowID(),
87 > RunId: historyTask.GetRunID(),
88 > TaskId: historyTask.GetTaskID(),
89 > TaskType: historyTask.GetType(),
90 > FireTime: timestamppb.New(historyTask.GetKey().FireTime),
91 > Version: historyTaskVersion,
92 > })
93 }
94 > return adminTasks api.go
95 }
go.temporal.io/server/api/adminservice/v1/request_response.pb.go 14 introduced LOC · 3 ranges

Open complete file

867 mi := &file_temporal_server_api_adminservice_v1_request_response_proto_msgTypes[13]
868 if x != nil {
869 > ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) request_response.pb.go
870 > if ms.LoadMessageInfo() == nil {
871 > ms.StoreMessageInfo(mi)
872 > }
873 > return ms
874 }
875 return mi.MessageOf(x)
921 func (*Task) ProtoMessage() {}
922
923 > func (x *Task) ProtoReflect() protoreflect.Message { request_response.pb.go
924 > mi := &file_temporal_server_api_adminservice_v1_request_response_proto_msgTypes[14]
925 > if x != nil {
926 > ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
927 > if ms.LoadMessageInfo() == nil {
928 > ms.StoreMessageInfo(mi)
929 > }
930 > return ms
931 }
932 > return mi.MessageOf(x) request_response.pb.go
933 }
934
go.temporal.io/server/service/history/tasks/fake_task.go 9 introduced LOC · 3 ranges

Open complete file

40 }
41
42 > func (f *FakeTask) GetVersion() int64 { fake_task.go
43 > return f.Version
44 > }
45
46 > func (f *FakeTask) SetVersion(version int64) { fake_task.go
47 > f.Version = version
48 > }
49
50 > func (f *FakeTask) GetTaskID() int64 { fake_task.go
51 > return f.TaskID
52 > }
53
54 func (f *FakeTask) SetTaskID(id int64) {
go.temporal.io/server/api/historyservice/v1/request_response.pb.go 5 introduced LOC · 1 range

Open complete file

8721 mi := &file_temporal_server_api_historyservice_v1_request_response_proto_msgTypes[133]
8722 if x != nil {
8723 > ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) request_response.pb.go
8724 > if ms.LoadMessageInfo() == nil {
8725 > ms.StoreMessageInfo(mi)
8726 > }
8727 > return ms
8728 }
8729 return mi.MessageOf(x)