workflow_handler.go ×6

Frontier kind: Joint frontier

unlabeled · c_3dc028d9b650

1 test · 3993 LOC · 199 files · introduces 1 test · 35 LOC · 2 files

Introduces — evidence that enters the hierarchy at this concept

Code
8 ranges35 lines · 2 files
Tests
1 test

Contains — complete concept membership

All code (extent)
610 ranges3993 lines · 199 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: 35 introduced LOC across 8 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

go.temporal.io/server/service/frontend/workflow_handler.go 24 introduced LOC · 6 ranges

Open complete file

2788 }
2789
2790 > URI, err := archiver.NewURI(entry.VisibilityArchivalState().URI) workflow_handler.go
2791 > if err != nil {
2792 return nil, err
2793 }
2794
2795 > visibilityArchiver, err := wh.archiverProvider.GetVisibilityArchiver(URI.Scheme()) workflow_handler.go
2796 > if err != nil {
2797 return nil, err
2798 }
2799
2800 > archiverRequest := &archiver.QueryVisibilityRequest{ workflow_handler.go
2801 > NamespaceID: entry.ID().String(),
2802 > PageSize: int(request.GetPageSize()),
2803 > NextPageToken: request.NextPageToken,
2804 > Query: request.GetQuery(),
2805 > }
2806 >
2807 > searchAttributes, err := wh.saProvider.GetSearchAttributes(wh.visibilityMgr.GetIndexName(), false)
2808 > if err != nil {
2809 return nil, serviceerror.NewUnavailablef(errUnableToGetSearchAttributesMessage, err)
2810 }
2811
2812 > archiverResponse, err := visibilityArchiver.Query( workflow_handler.go
2813 > ctx,
2814 > URI,
2815 > archiverRequest,
2816 > searchAttributes)
2817 > if err != nil {
2818 return nil, err
2819 }
2820
2821 // special handling of ExecutionTime for cron or retry
2822 > for _, execution := range archiverResponse.Executions { workflow_handler.go
2823 if execution.ExecutionTime == nil || execution.ExecutionTime.AsTime().IsZero() {
2824 execution.ExecutionTime = execution.GetStartTime()
2826 }
2827
2828 > return &workflowservice.ListArchivedWorkflowExecutionsResponse{ workflow_handler.go
2829 > Executions: archiverResponse.Executions,
2830 > NextPageToken: archiverResponse.NextPageToken,
2831 > }, nil
2832 }
2833
go.temporal.io/server/common/archiver/interface_mock.go 11 introduced LOC · 2 ranges

Open complete file

135
136 // Query mocks base method.
137 > func (m *MockVisibilityArchiver) Query(ctx context.Context, uri URI, request *QueryVisibilityRequest, saTypeMap searchattribute.NameTypeMap) (*QueryVisibilityResponse, error) { interface_mock.go
138 > m.ctrl.T.Helper()
139 > ret := m.ctrl.Call(m, "Query", ctx, uri, request, saTypeMap)
140 > ret0, _ := ret[0].(*QueryVisibilityResponse)
141 > ret1, _ := ret[1].(error)
142 > return ret0, ret1
143 > }
144
145 // Query indicates an expected call of Query.
146 > func (mr *MockVisibilityArchiverMockRecorder) Query(ctx, uri, request, saTypeMap any) *gomock.Call { interface_mock.go
147 > mr.mock.ctrl.T.Helper()
148 > return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Query", reflect.TypeOf((*MockVisibilityArchiver)(nil).Query), ctx, uri, request, saTypeMap)
149 > }
150
151 // ValidateURI mocks base method.