admin_handler.go ×4

Frontier kind: Joint frontier

unlabeled · c_a0c605dcff0d

1 test · 3733 LOC · 192 files · introduces 1 test · 29 LOC · 2 files

Introduces — evidence that enters the hierarchy at this concept

Code
7 ranges29 lines · 2 files
Tests
1 test

Contains — complete concept membership

All code (extent)
598 ranges3733 lines · 192 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: 29 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 · 4 ranges

Open complete file

1103 ctx context.Context,
1104 request *adminservice.ListClustersRequest,
1105 > ) (_ *adminservice.ListClustersResponse, retError error) { admin_handler.go
1106 > defer log.CapturePanic(adh.logger, &retError)
1107 > if request == nil {
1108 return nil, errRequestNotSet
1109 }
1110 > if request.GetPageSize() <= 0 { admin_handler.go
1111 request.PageSize = listClustersPageSize
1112 }
1113
1114 > resp, err := adh.clusterMetadataManager.ListClusterMetadata(ctx, &persistence.ListClusterMetadataRequest{ admin_handler.go
1115 > PageSize: int(request.GetPageSize()),
1116 > NextPageToken: request.GetNextPageToken(),
1117 > })
1118 > if err != nil {
1119 return nil, err
1120 }
1121
1122 > var clusterMetadataList []*persistencespb.ClusterMetadata admin_handler.go
1123 > for _, clusterResp := range resp.ClusterMetadata {
1124 > clusterMetadataList = append(clusterMetadataList, clusterResp.ClusterMetadata)
1125 > }
1126 > return &adminservice.ListClustersResponse{
1127 > Clusters: clusterMetadataList,
1128 > NextPageToken: resp.NextPageToken,
1129 > }, nil
1130 }
1131
go.temporal.io/server/api/adminservice/v1/request_response.pb.go 12 introduced LOC · 3 ranges

Open complete file

2371 }
2372
2373 > func (x *ListClustersRequest) GetPageSize() int32 { request_response.pb.go
2374 > if x != nil {
2375 > return x.PageSize
2376 > }
2377 return 0
2378 }
2379
2380 > func (x *ListClustersRequest) GetNextPageToken() []byte { request_response.pb.go
2381 > if x != nil {
2382 > return x.NextPageToken
2383 > }
2384 return nil
2385 }
2430 }
2431
2432 > func (x *ListClustersResponse) GetNextPageToken() []byte { request_response.pb.go
2433 > if x != nil {
2434 > return x.NextPageToken
2435 > }
2436 return nil
2437 }