admin_handler.go ×4

Frontier kind: Code frontier

unlabeled · c_616a2b427072

2 tests · 3768 LOC · 193 files · introduces 0 tests · 29 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
4 ranges29 lines · 1 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
604 ranges3768 lines · 193 files · Browse complete extent
All tests (intent)
2 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.

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

go.temporal.io/server/service/frontend/admin_handler.go 29 introduced LOC · 4 ranges

Open complete file

2168 }
2169
2170 > workflowID := adh.getDLQWorkflowID(request.DlqKey) admin_handler.go
2171 > client := adh.sdkClientFactory.GetSystemClient()
2172 > run, err := client.ExecuteWorkflow(ctx, sdkclient.StartWorkflowOptions{
2173 > ID: workflowID,
2174 > TaskQueue: primitives.DefaultWorkerTaskQueue,
2175 > }, dlq.WorkflowName, dlq.WorkflowParams{
2176 > WorkflowType: dlq.WorkflowTypeDelete,
2177 > DeleteParams: dlq.DeleteParams{
2178 > Key: dlq.Key{
2179 > TaskCategoryID: int(request.DlqKey.TaskCategory),
2180 > SourceCluster: request.DlqKey.SourceCluster,
2181 > TargetCluster: request.DlqKey.TargetCluster,
2182 > },
2183 > MaxMessageID: request.InclusiveMaxTaskMetadata.MessageId,
2184 > },
2185 > })
2186 > if err != nil {
2187 return nil, err
2188 }
2429 func (adh *AdminHandler) getDLQWorkflowID(
2430 key *commonspb.HistoryDLQKey,
2431 > ) string { admin_handler.go
2432 > return fmt.Sprintf(
2433 > "manage-dlq-tasks-%s",
2434 > persistence.GetHistoryTaskQueueName(
2435 > int(key.TaskCategory),
2436 > key.SourceCluster,
2437 > key.TargetCluster,
2438 > ),
2439 > )
2440 > }
2441
2442 // validateAndResolveArchetypeID validates the archetype and archetypeID fields and returns the resolved archetype ID.
2488 }
2489
2490 > if len(key.TargetCluster) == 0 { admin_handler.go
2491 return errTargetClusterNotSet
2492 }
2495 // categoryID using task category registry
2496
2497 > return nil admin_handler.go
2498 }
2499