delete_manager.go ×3

Frontier kind: Code frontier

unlabeled · c_63db5df834e0

4 tests · 3173 LOC · 142 files · introduces 0 tests · 36 LOC · 3 files

Introduces — evidence that enters the hierarchy at this concept

Code
6 ranges36 lines · 3 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
433 ranges3173 lines · 142 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: 36 introduced LOC across 6 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

go.temporal.io/server/service/history/deletemanager/delete_manager.go 22 introduced LOC · 3 ranges

Open complete file

169 retentionDelete bool,
170 metricsHandler metrics.Handler,
171 > ) error { delete_manager.go
172 >
173 > currentBranchToken, err := ms.GetCurrentBranchToken()
174 > if err != nil {
175 return err
176 }
177
178 > closeTime, err := ms.GetWorkflowCloseTime(ctx) delete_manager.go
179 > if err != nil {
180 return err
181 }
182
183 > executionInfo := ms.GetExecutionInfo() delete_manager.go
184 > if err := m.shardContext.DeleteWorkflowExecution(
185 > ctx,
186 > definition.WorkflowKey{
187 > NamespaceID: namespaceID.String(),
188 > WorkflowID: we.GetWorkflowId(),
189 > RunID: we.GetRunId(),
190 > },
191 > ms.ChasmTree().ArchetypeID(),
192 > currentBranchToken,
193 > executionInfo.GetCloseVisibilityTaskId(),
194 > closeTime,
195 > ms.GetExecutionState().GetStartTime().AsTime(),
196 > stage,
197 > retentionDelete,
198 > ); err != nil {
199 return err
200 }
go.temporal.io/server/service/history/interfaces/shard_context_mock.go 10 introduced LOC · 2 ranges

Open complete file

212
213 // DeleteWorkflowExecution mocks base method.
214 > func (m *MockShardContext) DeleteWorkflowExecution(ctx context.Context, workflowKey definition.WorkflowKey, archetypeID chasm.ArchetypeID, branchToken []byte, closeExecutionVisibilityTaskID int64, workflowCloseTime, workflowStartTime time.Time, stage *tasks.DeleteWorkflowExecutionStage, retentionDelete bool) error { shard_context_mock.go
215 > m.ctrl.T.Helper()
216 > ret := m.ctrl.Call(m, "DeleteWorkflowExecution", ctx, workflowKey, archetypeID, branchToken, closeExecutionVisibilityTaskID, workflowCloseTime, workflowStartTime, stage, retentionDelete)
217 > ret0, _ := ret[0].(error)
218 > return ret0
219 > }
220
221 // DeleteWorkflowExecution indicates an expected call of DeleteWorkflowExecution.
222 > func (mr *MockShardContextMockRecorder) DeleteWorkflowExecution(ctx, workflowKey, archetypeID, branchToken, closeExecutionVisibilityTaskID, workflowCloseTime, workflowStartTime, stage, retentionDelete any) *gomock.Call { shard_context_mock.go
223 > mr.mock.ctrl.T.Helper()
224 > return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteWorkflowExecution", reflect.TypeOf((*MockShardContext)(nil).DeleteWorkflowExecution), ctx, workflowKey, archetypeID, branchToken, closeExecutionVisibilityTaskID, workflowCloseTime, workflowStartTime, stage, retentionDelete)
225 > }
226
227 // EndpointRegistry mocks base method.
go.temporal.io/server/api/persistence/v1/executions.pb.go 4 introduced LOC · 1 range

Open complete file

886 }
887
888 > func (x *WorkflowExecutionInfo) GetCloseVisibilityTaskId() int64 { executions.pb.go
889 > if x != nil {
890 > return x.CloseVisibilityTaskId
891 > }
892 return 0
893 }