workflow_handler.go ×3

Frontier kind: Joint frontier

unlabeled · c_aee71ef9064d

1 test · 3859 LOC · 198 files · introduces 1 test · 30 LOC · 2 files

Introduces — evidence that enters the hierarchy at this concept

Code
5 ranges30 lines · 2 files
Tests
1 test

Contains — complete concept membership

All code (extent)
564 ranges3859 lines · 198 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.

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

go.temporal.io/server/service/frontend/workflow_handler.go 19 introduced LOC · 3 ranges

Open complete file

6674 }
6675
6676 > historyArchiver, err := wh.archiverProvider.GetHistoryArchiver(URI.Scheme()) workflow_handler.go
6677 > if err != nil {
6678 return nil, err
6679 }
6680
6681 > resp, err := historyArchiver.Get(ctx, URI, &archiver.GetHistoryRequest{ workflow_handler.go
6682 > NamespaceID: namespaceID.String(),
6683 > WorkflowID: request.GetExecution().GetWorkflowId(),
6684 > RunID: request.GetExecution().GetRunId(),
6685 > NextPageToken: request.GetNextPageToken(),
6686 > PageSize: int(request.GetMaximumPageSize()),
6687 > })
6688 > if err != nil {
6689 return nil, err
6690 }
6691
6692 > history := &historypb.History{} workflow_handler.go
6693 > for _, batch := range resp.HistoryBatches {
6694 > history.Events = append(history.Events, batch.Events...)
6695 > }
6696 > return &workflowservice.GetWorkflowExecutionHistoryResponse{
6697 > History: history,
6698 > NextPageToken: resp.NextPageToken,
6699 > Archived: true,
6700 > }, nil
6701 }
6702
go.temporal.io/server/common/archiver/interface_mock.go 11 introduced LOC · 2 ranges

Open complete file

63
64 // Get mocks base method.
65 > func (m *MockHistoryArchiver) Get(ctx context.Context, url URI, request *GetHistoryRequest) (*GetHistoryResponse, error) { interface_mock.go
66 > m.ctrl.T.Helper()
67 > ret := m.ctrl.Call(m, "Get", ctx, url, request)
68 > ret0, _ := ret[0].(*GetHistoryResponse)
69 > ret1, _ := ret[1].(error)
70 > return ret0, ret1
71 > }
72
73 // Get indicates an expected call of Get.
74 > func (mr *MockHistoryArchiverMockRecorder) Get(ctx, url, request any) *gomock.Call { interface_mock.go
75 > mr.mock.ctrl.T.Helper()
76 > return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockHistoryArchiver)(nil).Get), ctx, url, request)
77 > }
78
79 // ValidateURI mocks base method.