admin_handler.go ×5

Frontier kind: Code frontier

unlabeled · c_924316091981

2 tests · 3745 LOC · 192 files · introduces 0 tests · 25 LOC · 2 files

Introduces — evidence that enters the hierarchy at this concept

Code
7 ranges25 lines · 2 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
602 ranges3745 lines · 192 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.

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

go.temporal.io/server/service/frontend/admin_handler.go 17 introduced LOC · 5 ranges

Open complete file

1830 ctx context.Context,
1831 request *adminservice.ForceUnloadTaskQueuePartitionRequest,
1832 > ) (_ *adminservice.ForceUnloadTaskQueuePartitionResponse, err error) { admin_handler.go
1833 > defer log.CapturePanic(adh.logger, &err)
1834 >
1835 > // validate request
1836 > if request == nil {
1837 return nil, errRequestNotSet
1838 }
1839 > if len(request.Namespace) == 0 { admin_handler.go
1840 return nil, errNamespaceNotSet
1841 }
1842
1843 > namespaceID, err := adh.namespaceRegistry.GetNamespaceID(namespace.Name(request.GetNamespace())) admin_handler.go
1844 > if err != nil {
1845 return nil, err
1846 }
1847
1848 > resp, err := adh.matchingClient.ForceUnloadTaskQueuePartition(ctx, &matchingservice.ForceUnloadTaskQueuePartitionRequest{ admin_handler.go
1849 > NamespaceId: namespaceID.String(),
1850 > TaskQueuePartition: request.GetTaskQueuePartition(),
1851 > })
1852 >
1853 > if err != nil {
1854 return nil, err
1855 }
1856
1857 // The response returned is for multiple build Id's
1858 > return &adminservice.ForceUnloadTaskQueuePartitionResponse{ admin_handler.go
1859 > WasLoaded: resp.WasLoaded,
1860 > }, nil
1861 }
1862
go.temporal.io/server/api/adminservice/v1/request_response.pb.go 8 introduced LOC · 2 ranges

Open complete file

5307 }
5308
5309 > func (x *ForceUnloadTaskQueuePartitionRequest) GetNamespace() string { request_response.pb.go
5310 > if x != nil {
5311 > return x.Namespace
5312 > }
5313 return ""
5314 }
5315
5316 > func (x *ForceUnloadTaskQueuePartitionRequest) GetTaskQueuePartition() *v114.TaskQueuePartition { request_response.pb.go
5317 > if x != nil {
5318 > return x.TaskQueuePartition
5319 > }
5320 return nil
5321 }