admin_handler.go ×5

Frontier kind: Code frontier

unlabeled · c_53507d7097a0

2 tests · 3770 LOC · 192 files · introduces 0 tests · 38 LOC · 3 files

Introduces — evidence that enters the hierarchy at this concept

Code
9 ranges38 lines · 3 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
607 ranges3770 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.

3 files ranked by introduced lines: 38 introduced LOC across 9 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

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

Open complete file

1791 ctx context.Context,
1792 request *adminservice.DescribeTaskQueuePartitionRequest,
1793 > ) (_ *adminservice.DescribeTaskQueuePartitionResponse, err error) { admin_handler.go
1794 > defer log.CapturePanic(adh.logger, &err)
1795 >
1796 > // validate request
1797 > if request == nil {
1798 return nil, errRequestNotSet
1799 }
1800 > if len(request.Namespace) == 0 { admin_handler.go
1801 return nil, errNamespaceNotSet
1802 }
1803
1804 > namespaceID, err := adh.namespaceRegistry.GetNamespaceID(namespace.Name(request.GetNamespace())) admin_handler.go
1805 > if err != nil {
1806 return nil, err
1807 }
1808
1809 > resp, err := adh.matchingClient.DescribeTaskQueuePartition(ctx, &matchingservice.DescribeTaskQueuePartitionRequest{ admin_handler.go
1810 > NamespaceId: namespaceID.String(),
1811 > TaskQueuePartition: request.GetTaskQueuePartition(),
1812 > Versions: request.GetBuildIds(),
1813 > ReportStats: true,
1814 > ReportPollers: true,
1815 > ReportInternalTaskQueueStatus: true,
1816 > })
1817 >
1818 > if err != nil {
1819 return nil, err
1820 }
1821
1822 > return &adminservice.DescribeTaskQueuePartitionResponse{ admin_handler.go
1823 > VersionsInfoInternal: resp.VersionsInfoInternal,
1824 > ScaleInfo: resp.ScaleInfo,
1825 > }, nil
1826 }
1827
go.temporal.io/server/api/adminservice/v1/request_response.pb.go 12 introduced LOC · 3 ranges

Open complete file

5195 }
5196
5197 > func (x *DescribeTaskQueuePartitionRequest) GetNamespace() string { request_response.pb.go
5198 > if x != nil {
5199 > return x.Namespace
5200 > }
5201 return ""
5202 }
5203
5204 > func (x *DescribeTaskQueuePartitionRequest) GetTaskQueuePartition() *v114.TaskQueuePartition { request_response.pb.go
5205 > if x != nil {
5206 > return x.TaskQueuePartition
5207 > }
5208 return nil
5209 }
5210
5211 > func (x *DescribeTaskQueuePartitionRequest) GetBuildIds() *v115.TaskQueueVersionSelection { request_response.pb.go
5212 > if x != nil {
5213 > return x.BuildIds
5214 > }
5215 return nil
5216 }
go.temporal.io/server/api/taskqueue/v1/message.pb.go 4 introduced LOC · 1 range

Open complete file

450 }
451
452 > func (x *PhysicalTaskQueueInfo) GetPollers() []*v13.PollerInfo { message.pb.go
453 > if x != nil {
454 > return x.Pollers
455 > }
456 return nil
457 }