epugh commented on code in PR #4952:
URL: https://github.com/apache/solr/pull/4952#discussion_r4113416798


##########
solr/webapp/web/js/angular/services.js:
##########
@@ -162,10 +162,9 @@ solrAdminServices.factory('Metrics',
     })
 .factory('Collections',
   ['$resource', function ($resource) {
-    // v2 ClusterAPI (/api/cluster) delegates straight through to the same v1 
CollectionsHandler
-    // that v1's CLUSTERSTATUS action used, so the response shape is 
byte-identical -- no
-    // generated solrApi client class exists for it (old-style @EndPoint API, 
predates the
-    // OpenAPI-based v2 framework), so this stays a plain $resource, like 
Threads/ParamSet.
+    // GET /api/cluster returns {cluster: {collections: ...}}, the 
collections, shards, and
+    // replicas tree. Live nodes, the alias map, and cluster properties are 
not in this payload.
+    // This stays a plain $resource, like Threads/ParamSet.
     return $resource('/api/cluster', {'wt':'json', '_':Date.now()}, {

Review Comment:
   COuldn't we just use the strongly type JS object here?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to