You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@helix.apache.org by GitBox <gi...@apache.org> on 2022/06/18 23:32:54 UTC

[GitHub] [helix] micahstubbs commented on a diff in pull request #2162: Update UI for Node Ideal State [helix-front]

micahstubbs commented on code in PR #2162:
URL: https://github.com/apache/helix/pull/2162#discussion_r901026332


##########
helix-front/client/app/resource/shared/resource.service.ts:
##########
@@ -109,4 +110,16 @@ export class ResourceService extends HelixService {
   public remove(clusterName: string, resourceName: string) {
     return this.delete(`/clusters/${clusterName}/resources/${resourceName}`);
   }
+
+  public setIdealState(
+    clusterName: string,
+    resourceName: string,
+    idealState: Node
+  ) {
+    return this.post(
+      `/clusters/${clusterName}/resources/${resourceName}/idealState?command=update`,
+      JSON.stringify(idealState)
+    );
+  }

Review Comment:
   This is the new method to make the network call to https://github.com/apache/helix/blob/master/helix-rest/src/main/java/org/apache/helix/rest/server/resources/helix/ResourceAccessor.java#L476



-- 
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: reviews-unsubscribe@helix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@helix.apache.org
For additional commands, e-mail: reviews-help@helix.apache.org